Appium Run Demo Simple example explanation

Source: Internet
Author: User
Tags appium

Install Appium, set

demo.py from appium import webdriver #要装webdriver, method View http://www.cnblogs.com/sincoolvip/p/ 4532743.html from time import sleep

Desired_caps={}desired_caps['PlatformName'] ='Android'desired_caps['platformversion'] ='4.3'desired_caps['devicename'] ='gt-n7100' #appium自己定义, this is the name of my real machinedesired_caps['app'] ='c:\\users\\liujuan\\desktop\\apk\\app-release (+). APK' #要测试的apk包desired_caps['Apppackage'] ='Cn.com.pclady.yimei' #appium中配置desired_caps['appactivity'] ='cn.com.pclady.yimei.module.launcher.LauncherActivity' #appium中配置
Specific methods See: Http://www.cnblogs.com/sincoolvip/p/4535839.htm
= Webdriver. Remote ('http://127.0.0.1:4723/wd/hub', Desired_caps) #连接appiumsleep (3)

Use the Python GUI to open, press F5 to execute, check the results

Appium output:

Appium Run Demo Simple example explanation

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.