I am automating a mobile application and the test cases will be executed in device farm. The idea is to run a set of test cases in various devices by passing the device name as parameter.
I want to execute all the test cases in a device before moving on the the other device because the device farm will reset the device state once the connection to device terminates. This will not work for me since the test cases are related to one another and the app state needs to be preserved.
I am not sure how to do this because passing the device name as a test data will execute a test case in all devices before moving on to the next test case. Kindly help.