appium-Connecting Night God Simulator

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.