Automation of multiple apps in one session using appium in android

回眸只為那壹抹淺笑 提交于 2019-12-23 18:09:30

问题


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


回答1:


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




回答2:


Refer the answer in the below link.

Automating two apps in one session in appium



来源:https://stackoverflow.com/questions/25155650/automation-of-multiple-apps-in-one-session-using-appium-in-android

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!