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

Kaspresso runner doen't hande crashes #628

Open
sergeev-roman opened this issue Jan 29, 2024 · 1 comment
Open

Kaspresso runner doen't hande crashes #628

sergeev-roman opened this issue Jan 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sergeev-roman
Copy link

Describe the bug
After switch from allurejunitrunner to kaspressorunner tests runs stop handling crashes. Before switch runner+orchestrator work well if any app crashed. Now after crash they doesnt continue run other tests just stop command.

To Reproduce
Steps to reproduce the behavior:
Make tests where 1) target app crashes 2) tests app crashes
Run tests with shell command
CLASSPATH=$(pm path androidx.test.services) app_process / androidx.test.services.shellexecutor.ShellMain am instrument -r -w -e targetInstrumentation {target_package}/com.kaspersky.kaspresso.runner.KaspressoRunner -e debug false -e class '{test_to_run}' androidx.test.orchestrator/androidx.test.orchestrator.AndroidTestOrchestrator

Expected behavior
After crashes run other tests

Smartphone (please complete the following information):

  • Device: samsung
  • OS: API31-32

Message in log for crashes
INSTRUMENTATION_STATUS_CODE: 1
INSTRUMENTATION_RESULT: shortMsg=Process crashed.
INSTRUMENTATION_CODE: 0

After this message shoud be run another tests, but it doens happen

@sergeev-roman sergeev-roman added the bug Something isn't working label Jan 29, 2024
@sergeev-roman
Copy link
Author

It ruins all allure-results also, because kaspresso runner moves dir to /sdcard/Documents/ after the run, if runner crashes - no results in /Documents

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