Appium-desktop Installation and use

Source: Internet
Author: User
Tags appium

what is Appium-desktop?

Project Description:

Appium Server and Inspector in Desktop GUIs for Mac, Windows, and Linux.

Appium There's a very re-component in the mobile test. Appium-server , it is mainly used to monitor our mobile devices (real or simulator), and then write different programming languages Appium The test script parses and then drives the mobile device to run the test.

Appium-server:https://bitbucket.org/appium/appium.app/downloads/

But Appium-server has not been updated for a year or two. Window version at the end of 2015 Appiumforwindows_1_4_16_1.zip

So, the new tool appium-desktop come! It comes to continuing the mission of Appium-server, of course, Appium-server is still available at the moment.

Download and install:

Appium-desktop Project Address:https://github.com/appium/appium-desktop

:https://github.com/appium/appium-desktop/releases

Select the relevant package for download according to your platform. This article takes windows as an example, so select the Appium-desktop-setup-1.2.4.exe file to download.

The installation process is too simple, double-click the exe file, and then wait for the installation finished, there is no need for you to set any options. So, this is not a map.

Run and use:

the desktop will generate a purple appium icon and double-click to open the installation.

The default is to display the monitored host and port, which is consistent with the appium-server. Click the "start Server V 1.7.1" button to start the service.

start now Start your mobile device (real machine or simulator), write Appium Automated test scripts that can be run by appium-desktop .

The following is a test script written by the Python + appium-python-client library.

#Coding=utf-8 fromAppiumImportWebdriverdesired_caps={}desired_caps['PlatformName'] ='Android'desired_caps['platformversion'] ='6.0'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 ("1"). Click () driver.find_element_by_name ("5"). Click () driver.find_element_by_name ("9"). Click () driver.find_element_by_name ("Delete"). Click () driver.find_element_by_name ("9"). Click () driver.find_element_by_name ("5"). Click () driver.find_element_by_name ("+"). Click () driver.find_element_by_name ("6"). Click () driver.find_element_by_name ("="). Click () driver.quit ()

The run effect is the right half.

If you don't understand this article, please refer to my "appium beginners "

http://www.testclass.net/appium/

Appium-desktop Installation and use

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.