Automating multiple applications in one session with appium in android

How to automate multiple apps in one session using appium in android let's say you want to automate one calculator app and then settings app

+3


source to share


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


See the answer in the link below.



Automating two applications in one session in appium

0


source







All Articles