In our company we are using the following setup to execute our Appium Android tests:
Appium Version: 1.17.1
Java: OpenJDK 11
Cucumber JVM: 5.4.0
Appium Java Client: 7.3.0
IDE: IntelliJ 2019.3
Device: Pixel 2 emuatlor
Android OS: 9
At this current moment we use the
fullReset capabilty to ensure that we have a clean slate before each test starts. For some unknown reason this capability has stopped working this afternoon. More to the point none of the reset strategies appear to be taking effect after the first test has been executed (including the default one)
To try and triage what’s going on I’ve ran the same 2 tests from 2 separate branches in our codebase (master and my dev branch) On Master the capability works whereas on my dev branch it doesn’t. I was therefore confident that it is something in our code but when I trawl through the logs I can see that the reset call on the dev branch (something like this
2020-05-26 21:53:48:379 [W3C (436d74fe)] Calling AppiumDriver.reset() with args: ["436d74fe-b867-4b51-a545-be68def10854"]) is completely non existent between when the first test finishes and the second one starts. Appium is therefore thinking that the test hasn’t finished hence all following tests start to fail.
After seeing the above I can no longer be sure that the issue relies in our code. I was therefore wondering if someone with more Appium experience than I could be so kind as to look through the attached logs to see if I’ve missed something obvious.
Master works and dev doesn’t. The capabilties used on both branches are:
Many thanks in advance.