Appium mobile terminal automation test (2): app uninstallation and installation

After the environment is set up, you can use appium for code testing

1. Install the app


Just add the installation path

2. Uninstall the app


3. Cycle uninstall and install 20 times


There is a problem: you need to click Allow during installation, this has to be manually clicked, which is very inconvenient

4. Other commands are invalid after testing, ┭┮﹏┭┮

driver.close_app() # close the app

driver.launch_app() # Launch app

driver.background_app(5) # Put it in the background


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325854908&siteId=291194637