Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Could not find test class" exception when capture screenshot from main thread #411

Closed
Nikitae57 opened this issue Nov 7, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Nikitae57
Copy link
Collaborator

Description
When captureScreenshot() method is called from the main thread Kaspresso fails to find test class name because there's no such class in stack trace

Steps to reproduce
Put captureScreenshot() inside activityRule.scenario.onActivity lambda in any doc loc dest

Expected behavior
Test passes

Actual result
Test fails with "Could not find test class" exception

@Nikitae57 Nikitae57 added the bug Something isn't working label Nov 7, 2022
@Nikitae57 Nikitae57 self-assigned this Nov 7, 2022
Nikitae57 added a commit that referenced this issue Nov 7, 2022
AzamatCherchesov added a commit that referenced this issue Nov 7, 2022
…d_test_class_in_main_thread

#411: Fix test class not found in main thread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant