Automating multiple applications in one session with appium in android
2 answers
If you are talking about automating multiple applications at the same time using the same session, this is not possible, since one session can only automate one application.
However, if you are talking about automating several applications in a row, then this is really 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 breaks the session after each test, so that when the next test is done, it can re-configure the session again for the next test (whose desired capabilities another application may indicate).
+1
source to share