Refer to the new tutorial :

appium getting started (5)—— python-client Installation and testing

Continue to update .

--------------------------------------------

The fourth quarter,    install Appium Client

Appium Client It's right webdriver Native api Some extensions and encapsulation of . It can help us write use cases more easily , Write better use cases .

Appium Client It's original webdriver To use the , Therefore, both of them must be used together .

At the beginning of this document Appium Support a variety of programming languages to write automated test scripts , Because I'm personally familiar with Python Language , So choose Python Language to write automated test scripts .

visit Python Official website :https://www.Python.org/

Download the latest version of Python2, Deadline for Authors , The latest version is Python2.7.10 edition . Readers choose the appropriate version to download according to their own platform ; about Windows Users , If your system is 32 Please choose x86 edition , If it is 64 Bit system, please select 64 Version to download . When the download is complete, you will get a .msi A file with a suffix name , Double click to install . Pictured 2.1.

pip Is an installation and management Python Package tools , adopt pip To install Python The package will be very simple , We will save the search -- Find the version -- download -- Installation and other tedious process

Recommend to pass pip Installation “Appium-Python-Client”.

--------------------------------------------------------------------------------------

C:\package\setuptools-7.0>pip install Appium-Python-Client

--------------------------------------------------------------------------------------

Section 5    The first automated script

First start android Simulator .

The second step , start-up Appium.

Click in the upper left corner “ robot ” The button :

Then click... In the upper right corner “ Triangle ” Button on Appium.

The third step , adopt Python Write automated test scripts .

#coding=utf-8
from appium import webdriver desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '4.4.2'
desired_caps['deviceName'] = 'Android Emulator'
desired_caps['appPackage'] = 'com.android.calculator2'
desired_caps['appActivity'] = '.Calculator' driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps) driver.find_element_by_name("").click() driver.find_element_by_name("").click() driver.find_element_by_name("").click() driver.find_element_by_name("delete").click() driver.find_element_by_name("").click() driver.find_element_by_name("").click() driver.find_element_by_name("+").click() driver.find_element_by_name("").click() driver.find_element_by_name("=").click() driver.quit()

Level co., LTD. , The installation process is a little cumbersome , Maybe some tools don't have to be installed . however , According to my steps, I can take it step by step Appium The automatic test environment is built . As for the function of installing these tools , You can put it in the back and understand it slowly .

In the process of installation, we are involved in three programming languages ,Appium.exe Is based on .NET  Framework developed ,android Is based on JAVA Developed , and client We choose Python Language to write automation scripts . This requires testers to have a certain foundation and understanding of programming language , Otherwise, the road of learning will be very difficult .

Appium Mobile automation test ( Four )--one demo More articles about

  1. Appium Mobile automation test ( Four ) The element orientation of

    done UI Automated testing of children's shoes will be found , In the last article, there was no universal positioning method Xpath. It's a drop , Not really. ! ADT Self contained uiautomatorviewer There are no attributes in it xpath, If we need to , still need sth. ...

  2. Appium Mobile automation test ( Four )--one demo( turn )

    Appium Mobile automation test ( Four )--one demo 2015-06-15 20:41 by Insect division , 40514  read , 34  Comment on ,  Collection ,  edit Continue to update . ------------------- ...

  3. appium+Python Real machine running test demo Methods

    appium+Python Real machine running test demo Methods One ,     Turn on the phone USB Debug mode Two ,     Connect your phone to your computer Connect your phone to your computer with a data cable , And authorize USB Debug mode . See the effect of the connection , stay cmd It's my life ...

  4. Appium Mobile automation test ( 3、 ... and )-- install Android Simulator ( turn )

    Appium Mobile automation test ( 3、 ... and )-- install Android Simulator 2015-06-08 10:33 by Insect division , 30828  read , 9  Comment on ,  Collection ,  edit When Android SDK After installation , I don't mean ...

  5. Automated testing of mobile phones : build appium Mobile phone automatic test development environment

    Automated testing of mobile phones : build appium Mobile phone automatic test development environment   poptest It is the only training institution in China to train test and development engineers , Students are competent for automated testing , Performance testing , Test tool development and other work as the goal . If you're interested in the course , Please make it big ...

  6. First try jenkins+python+appium Building automated testing

    First try jenkins+python+appium Building automated testing Because I just tried to use it jenkins+python+appium Try , Just one. Demo It needs a lot of improvement , Record today's results first , Make persistent efforts First of all ...

  7. mac To build appium+IOS Automated test environment ( Two )

    Last one : mac To build appium+IOS Automated test environment ( One ) 9. install appium-xcuitest-driver rely on Get into WebDriverAgent The installation directory , function bootstrap First go to the directory ...

  8. Appium Mobile automation test ( One )-- Tool software installation

    Appium Mobile automation test ( One )-- Tool software installation Details refer to -- http://www.cnblogs.com/fnng/p/4552438.html Section 1   install node.js Appium Official website ...

  9. Guangshen Bruce Lee - be based on unittest、pytest Design of automated testing framework demo Come to study !!!

    be based on unittest.pytest Design of automated testing framework demo, Use it quickly , Let's study together ! demo It is divided into two frameworks :①pytest    ②unittest demo in contain web.api Automated testing framework ...

Random recommendation

  1. 032. asp.netWeb One of the user controls is to recognize the user control and customize its properties

    Web Advantages of user controls : The common content or control and the running program logic of the control can be changed , Design as a user control , You can reuse the user control in multiple pages later , So as to save a lot of repetitive work . Such as the navigation bar on a web page , Almost every page needs ...

  2. Reprint : The third bullet ! The world's first wechat app ( Application number ) Development tutorial ! Vomit blood all night , Daily update !

    Thank you for your support ! Bockajun has received a lot of support and comfort in the past two days , I also met many like-minded friends . At present, the tools and code released by wechat are not official versions , It can be adjusted at any time , Let's experience and learn first . I'm exhausted by this tutorial recently , Although it's hard , ...

  3. datagrid Move the line up and down

    <html> <head> <meta http-equiv="Content-Type" content="text/html; char ...

  4. NTP Principle and configuration

    One .NTP brief introduction 1.NTP brief introduction   NTP(Network Time Protocol, Network time protocol ) It is a protocol used to synchronize the time of each computer in the network . Its purpose is to synchronize the computer's clock to universal coordinated time UTC, Its essence ...

  5. qemu simulation -arm-mini2440 Development board - start-up u-boot,kernel and nfs file system 【 turn 】

    from :http://www.cnblogs.com/riskyer/p/3366001.html qemu This article describes how to compile u-boot.linux kernel, And then use qemu start-up u-boot and l ...

  6. Python Time module

    Module classification Standard library python The interpreter comes with , sys, os etc. Open source module such as selenium Test framework in Custom module For example, the test framework packaged by ourselves Time format Time stamp Subtract... From the current time 1970 year 1 month 1 Japan 00:0 ...

  7. Newly installed centos How to display Chinese interface

    The default display interface is in English , Even if it's selected from a variety of configurations chinese It's no use , The default display is still in English . To enter... At the terminal vim ~/.bashrc Edit this user profile Add the last line after opening export LANG=&quo ...

  8. Scan code to order FAQ

    1. Applicable scenarios : Alipay pay the wrong code Solution :1. Check whether the word of mouth authorization on the main account is invalid .( Reauthorize ) 2. Check the main account number PID Bind or not .( binding PID) Be careful :1. The sweep code of Alipay scan code is directly supported by Alipay and ants. ...

  9. Android Live view : use SurfaceView Realization

    For camera based Android application , Real time viewfinder is a basic premise , Capture the captured content continuously through the front or rear camera , It can be further processed ( Face detection . Skin care . Filters, etc ). The so-called real-time viewfinder , In short, it's called android 's camera , ...

  10. .NET Study diary 【1】

    Have to say , The contents of the previous year are basically covered in the first chapter , But also talked about a lot of don't know knowledge . After reading the first picture, I have more experience on polymorphism and inheritance . stay 1.4 In front of all very certified have seen , Also in the vs It's verified . And then I got it .NET to the end ...