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

Fail of step "When I terminate application with bundle identifier com.apple.mobilesafari" stops all the test and presented in "Broken" state #4665

Closed
ValeryRudko opened this issue Dec 14, 2023 · 0 comments · Fixed by #4707
Labels
bug Something isn't working
Milestone

Comments

@ValeryRudko
Copy link
Contributor

PRIORITY 1

Describe the bug
I have an expected behavior to open 3rd application once user execute tap on exact place. For next steps execution, this 3rd application need to be closed. And once test fails due to not opend 3rd application, it is presented as BROKEN and it fails all the rests of tests execution.
According to testing expectations it is not valid to broke everything, while only 3rd party component doesn't open.

To Reproduce
Given I start mobile application
When I terminate application with bundle identifier com.apple.mobilesafari

Expected behavior
My expectation is to see this step as FAILED and continue testing execution.
Possibly it can be creation of some separate step specified for 3rd applications, but not one in testing

Artifacts
image
java.lang.IllegalArgumentException: Application with the bundle identifier 'com.apple.mobilesafari' is not installed or not running on the device
at org.apache.commons.lang3.Validate.isTrue(Validate.java:155)
at org.vividus.mobileapp.action.ApplicationActions.terminateApp(ApplicationActions.java:56)
at org.vividus.mobileapp.steps.ApplicationSteps.terminateApp(ApplicationSteps.java:123)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.jbehave.core.steps.StepCreator$ParametrisedStep.perform(StepCreator.java:894)
at org.jbehave.core.steps.StepCreator$ReportingAbstractStep.perform(StepCreator.java:638)
at org.vividus.steps.SubSteps$DecoratingResultStep.lambda$perform$0(SubSteps.java:117)
at org.vividus.steps.SubSteps$DecoratingResultStep.withStepContextInfo(SubSteps.java:142)
at org.vividus.steps.SubSteps$DecoratingResultStep.perform(SubSteps.java:117)
at org.jbehave.core.embedder.PerformableTree$FineSoFar.run(PerformableTree.java:379)
at org.vividus.steps.SubSteps.executeStep(SubSteps.java:79)
at org.vividus.steps.SubSteps.execute(SubSteps.java:60)
at org.vividus.steps.ExecutableSteps.performAllStepsIfConditionIsTrue(ExecutableSteps.java:82)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.jbehave.core.steps.StepCreator$ParametrisedStep.perform(StepCreator.java:894)
at org.jbehave.core.steps.StepCreator$ReportingAbstractStep.perform(StepCreator.java:638)
at org.jbehave.core.embedder.PerformableTree$FineSoFar.run(PerformableTree.java:379)
at org.jbehave.core.embedder.PerformableTree$FineSoFar.run(PerformableTree.java:397)
at org.jbehave.core.embedder.PerformableTree$PerformableSteps.perform(PerformableTree.java:1442)
at org.jbehave.core.embedder.PerformableTree$AbstractPerformableScenario.lambda$performScenario$0(PerformableTree.java:1284)
at org.jbehave.core.embedder.PerformableTree$PerformableEntity.performWithStopExecutionExceptionHandling(PerformableTree.java:966)
at org.jbehave.core.embedder.PerformableTree$AbstractPerformableScenario.performScenario(PerformableTree.java:1277)
at org.jbehave.core.embedder.PerformableTree$ExamplePerformableScenario.perform(PerformableTree.java:1354)
at org.jbehave.core.embedder.PerformableTree$PerformableScenario.perform(PerformableTree.java:1221)
at org.jbehave.core.embedder.PerformableTree$PerformableStory.lambda$perform$0(PerformableTree.java:1091)
at org.jbehave.core.embedder.PerformableTree$PerformableEntity.performWithStopExecutionExceptionHandling(PerformableTree.java:966)
at org.jbehave.core.embedder.PerformableTree$PerformableStory.perform(PerformableTree.java:1083)
at org.jbehave.core.embedder.PerformableTree.performCancellable(PerformableTree.java:521)
at org.jbehave.core.embedder.PerformableTree.perform(PerformableTree.java:488)
at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:305)
at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:278)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

Execution environment (please complete the following information):

  • Vividus version: 0.6.0
  • OS: macOS Sonoma 14.1.2
  • Java: 17

Execution on Mobitru iOS device

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
2 participants