We are running our automated UI tests using Appium 1.6.0 and Cucumber JVM on our Jenkins machine (Mac OS X).
While the tests are running, for some reason, while the application is open, it is sent to background and therefore the remaining tests fail.
I was able to identify this behavior using ScreenShare and connecting to the machine remotely. I know I was the only one connected when this happened, so there is no chance that someone was messing with the emulator while the test was running.
I did go through the console log but couldn't find any lead of why this would happen so I still couldn't figure out a way of always reproducing this.
Any idea of what could cause this? Is there maybe a setting in the default emulator that could cause this?
Thank you.