APPIUM+JAVA+TESTNG Automatic frame building-first quarter

Source: Internet
Author: User

App automation is getting more and more hot, as mobile apps continue to evolve, mobile phone-side testing is becoming increasingly popular, to become a senior software testing engineers must master, then we today to build appium+java+testng automated testing framework.

Appium Environment Building (Windows edition)

See a lot of tutorials on the network, today installs the Appium, the installation process detailed record again, such as:

My computer environment is Win7 64-bit

Note: Appium installs to C drive, node. JS installs to C drive

I. Installing node. js

1. Install node. js

Nodejs Official website: https://nodejs.org/en/download/

2, get to the installation file, directly double-click the installation file, according to the program prompts, complete the installation of Nodejs.

3, after the installation is complete, run cmd, enter Node–v, if the installation is successful, will output the following version information:

Second, configure the Android SDK environment

1. SDK Environment configuration: https://www.cnblogs.com/fangwei2015/p/9151145.html

2. Ensure that version API with level 17 or above is installed

3. Set the Android_home system variable to your Android SDK path (these paths are ready if the Android SDK environment variable is configured above, you do not need to configure it below.) Be sure to configure your local directory. )

F:\Program Files (x86) \ANDROID\ANDROID-SDK

4. Add tools and Platform-tools two directories to the path of the system

    ; F:\Program Files (x86) \android\android-sdk\platform-tools; F:\Program Files (x86) \android\android-sdk\tools

Third, install the mobile phone driver and test the connection to the real machine

After you complete the above steps, to enable the phone to connect to the PC side for the real machine test. You will also need to install the driver for your test phone. Download the appropriate offline driver and install it according to the phone model, then connect the phone to the PC via USB cable. Enter the following command in CMD, if you can see the device, it means that the installation was successful.

iv. installation of Appium

1. Download the installation file:https://bitbucket.org/appium/appium.app/downloads/

2. Directly double-click the Appium-installer.exe file to install, the desktop will generate a appium icon

Follow the prompts to install the step-by-step

Eventually generate the appium icon on the desktop, double-click Start, the Appium server interface is as follows.

The Appium-server is ready to open. As for the use of appium we put it in the later chapters to introduce.

Finally, open the Windows command prompt, enter the "appium-doctor" command, and if you get the following prompt, the environment you appium is ready to complete.

The following errors were encountered:

The Appium path is not configured under path.

Note: If you are prompted:"Appium-doctor" is not an internal or external command , locate the Appium installation directory, for example:

C:\Program Files\appium\node_modules\.bin

Add to the environment variable path below (refer to the settings for the Java environment).

The reason is that there is more than one semicolon. Let's check again.

Open the Windows command prompt, enter the "appium-doctor" command, and if you get the following prompt, the environment you appium is ready to complete.

Appium installation and pre-construction of the environment has been completed, the next section we continue to study it.

APPIUM+JAVA+TESTNG Automatic frame building-first quarter

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.