Mobile automation testing framework--openatx

I have studied and used appium for mobile testing before. Are some of the experiences and feelings of using appium similar to mine?

1. Appium start service and app program is very slow

2. Appium build environment is more complicated

3. Appium must be connected to usb line for automated testing

Occasional opportunities were raised by mushita, and they began to contact the openatx framework.

The bottom layer is based on Google uiautomator. The uiautomator library provided by Google can obtain any control attribute of any APP on the screen and perform any operation on it, but it only supports JAVA language.

So the big guy developed uiautomator 2 on its basis to support the python language and the above problems were solved well.

One: installation

Command line CMD or Pycharm in your own venv environment 

pip install --upgrade --pre uiautomator2

Two: Initialize the device

Connect the phone to usb and run the initialization command

python -m uiautomator2 init

Three: Install the UI viewing tool

pip install -U weditor

After the installation is complete, the direct input of the command line  weditor will automatically open the browser, enter the ip or serial number of the device, and click Connect

After the above three steps are completed, you can play as happy as appium. Of course, this is only for Android. If you want to test ios, you need to download another framework,  facebook-wda , because there is no mac computer temporarily unavailable.

 

Guess you like

Origin www.cnblogs.com/hy546880109/p/12693808.html