Okay so, I have two emulators running. I want to write a test where one device calls the other device using VOIP. My goal is to automate VOIP testing.
A successCount
variable is defined inside the test class to validate whether the test was successful or not.
Steps I need to take in my test class:
- Login into the SIP server with device A.
- Login into the SIP server with device B.
- Device A calls device B (increase success count by 1).
- Device B answers the call (increase success count by 1).
- Device B hangsup after 5 seconds (increase success count by 1).
- Assert that success count is equal to 3.
Now the issue I have is the sequence of the steps on the devices. I need to tell device A to call device B after that device B has been logged into the SIP server for example. Currently I'm unable to accomplish this in an instrumented or unit test.
Does anyone know a solution to sequentially execute (unit/instrumented) test code in two device emulators in Android Studio? Is this even possible?