Appium installation Process
- node. JS was installed first. Download the exe installation file on node's official website.
- Execute in node command line
npm install -g appium
to install Appium, error, invalid.
- Go to appium.io official website, download the Appium compression pack. In fact, this package already contains Appium executable files, no need to configure node. JS separately.
- After decompression appears appium.exe, double-click the run prompt to install the. Net Framework, click "Yes" to download immediately.
- After the download succeeds, run Appium.exe again, and you can see that the Appium server has been started.
- Python installs the Appium Development library
pip install Appium-Python-Client
.
Use
fromAppiumImportWebdriver des={} des['PlatformName'] ='Android'des['platformversion'] ='4.2'des['devicename'] ='Android Emulator'des['app'] ="c:\\users\administrator\\desktop\\testappium\\list1.2.apk"Webdriver. Remote ('Http://localhost:4723/wd/hub',"')
Once configured, the discovery prompt requires the Android SDK. After the good SDK. Run again.
- Prompt not found XXX, obviously is the problem of environment variables. Configure the Tools directory under the SDK directory and the Platform-tools directory. You will need to restart the Appium server here, or you will not be prompted to find the SDK.
Appium Connecting An Zuojin Machine
- On the basis above, connect the An Zuojin machine. After connecting the real computer via USB, use the
adb devices
command to discover that there are no devices.
- In the process of querying the problem, a command was found:
appium-doctor
You can check the basic path configuration of appium and the integrity of the environment variables.
- After discovering that
adb devices
no devices are being used, install the Samsung phone driver. Once installed, you will see a Samsung phone that has been identified in your computer------and device.
- Again
adb devices
, the device appears, but the device is identified as unauthorized. At this point, switch the connection mode on the phone: MTP PTP, or turn off USB and turn on USB, etc., similar to the effect of restart. It is now recognizable and connected.
Appium small white from zero installation, Appium connect the real machine test.