Order of TestSuits in Test Collection
TS1 > Device 1 >> Started Application
TS2 > Device 1 >> Facing “No Driver Found” if not using Start Application method for already opened application in device
TS3 > Device 2 >> Start application
TS4 > Device 1 >> Facing “No Driver Found” if not using Start Application method for already opened application in device
How to resolve this “No driver found” exception?
Hi @sejal.vala,
I think that each Test Suite is operating independently; they expect the application to be started for each suite. I am guessing that this is because Test Suites in a Collection can be run in parallel.
If you want to avoid a bunch of boilerplate code for starting the application, you could use Test Listeners to perform common code tasks before each test suite.
class MobileTestSuiteListener {
@BeforeTestSuite
def beforeMobileTestSuite(TestSuiteContext testSuiteContext) {
Mobile.startApplication('myapp.apk', false)
}
}
Hope this helps,
Chris
Thanks for the support. I will try this.