How to automate multiple apps in one session using appium in android say want to automate one calculator app followed by a settings app
If you are talking about automating multiple apps at the same time using the same session then that is not possible since one session only can automate one app.
However, if you are talking about automating multiple apps in succession, then that is indeed possible. For example, if you have a class or project with many tests, then just run all tests in that project and as long as you have the following code in your class your Appium session should work fine after each test:
@After
public void tearDown(){
driver.quit();
}
This method tears down the session after each test so that when the next test is going to execute it can properly re-setup the session again for the next test (whose Desired capabilities may specify a different app).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With