We go on to the last article and say, this article we are appium to connect night God simulator to explain.
7.appium Connection Night God Simulator
8.AAPT environment variable configuration : D:\androidsdk\android-sdk-windows\build-tools\24.0.0 directory found Aapt.exe, set the PATH environment variable, add to the path-- -Open cmd. Input AAPT The following interface shows the environment OK
9. Find Package Name: aapt dump badging D:\test\xxx.ap cmd screen Drag to the middle to find the auncheractivity = number to the right is the launcheractivity value
10. (Copy the Adb.exe under the SDK to the night God Simulator Bin directory and change the name Nox_adb.exe the original Nox_adb.exe under the bin directory nox_adb.exe111)
11. Run the following code first, then the app installation and test script script
From time import sleepfrom appium Import webdriverdesired_caps = {' PlatformName ': ' Android ', ' devicename ': ' 127.0.0.1:62001 ', ' platformversion ': ' 3.8.3.1 ', ' apppackage ': ' Com.juyang.mall ', ' appactivity ': ' Com.shanjian.juyang.activity.home.Activity_Home '}driver=webdriver. Remote (' Http://127.0.0.1:4723/wd/hub ', Desired_caps) sleep (4)
After running this code, 2 Appium related icons are generated on the emulator, which means we can formally test them!
12. Mobile Appium Automated test scripting: Installing the app adb install D:\dmeo.apk via adb command, etc.
appium-Connecting Night God Simulator