Appium app automated testing---environment construction

1. Install python3.7

  Reference: https://blog.csdn.net/qq_19982677/article/details/106429676

2. Install the appium-python-client package

   cmd terminal: pip install Appium-Python-Client

   

3. Install the selenium package

   cmd terminal: pip install selenium -U

   

4. Install appium-server

 (1) Download address: https://github.com/appium/appium-desktop/releases/tag/v1.17.1-1 , version V1.17

 (2) Install, just step by step    

          

5. Install and configure jdk

(1) Download: https://www.oracle.com/java/technologies/javase-jdk14-downloads.html

(2) Install: step by step, you can customize the installation path

(3) Environmental configuration

        JAVA_HOME: The installation path of the variable value JDK

        CLASSPATH:.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar

        path:%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin

        Check if the configuration is correct, java -version,java,javac

        

        

        

(4) Copy jdk/lib/tools.jar to /jre/lib

6. Install and configure SDK

(1) Download AndroidSDK

          Link: https://pan.baidu.com/s/1yOvzXLxEnB91y0WLRg8ZwQ Extraction code: qx8g 

(2) Unzip

        

(3) Configure environment variables

         ANDROID_HOME: AndroidSDK directory

        path: add platform-tools path

        Verify the configuration:

       

7. Real machine verification

 (1) A mobile phone + PC + data cable

 (2) Turn on the developer mode on the phone and check debug

 (3) cmd terminal: adb devices

 (4) As follows, it proves that the configuration is OK

        

(5) If the device number is not displayed, check to see if the phone usb driver is not installed

 

 


 

   

Guess you like

Origin blog.csdn.net/qq_19982677/article/details/107514037