Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automation of multiple apps in one session using appium in android

Tags:

appium

How to automate multiple apps in one session using appium in android say want to automate one calculator app followed by a settings app

like image 778
user2032200 Avatar asked Nov 11 '22 03:11

user2032200


1 Answers

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).

like image 97
qazimusab Avatar answered Jan 04 '23 02:01

qazimusab