Appium automated testing is a technique that you would like to learn and study before, but it has never been a complete time to do this thing. It's finally there.
Anti-View the recruitment of various Internet mobile testing into the mainstream, if not to learn mobile automation testing technology will be eliminated.
====================
The roadmap for Web Automation testing is this: programming language Fundamentals---> Testing framework--->webdriver API---> Developing automated test Projects.
The course of testing for mobile automation is longer: programming language Fundamentals---> Testing frameworks--->android/ios development testing Fundamentals---->appium API-----> Develop mobile automation projects.
=====================
Appium test environment is relatively cumbersome to build, I believe that a lot of scholars have not started learning has died in the environment to build. So, first of all, I will introduce the whole process of environmental construction.
1, on the one hand installs many things, on the other hand by "the wall" the disturbance causes this process to be more troublesome.
2, I this process some steps do not have to do so, I temporarily not clear why, but then I do you must set up the environment.
3, my environment is Win7 64, the installation process only applies to my environment.
Section I installation Appium
Appium Official website: http://appium.io/
Easy setup process, run a test now.
> Brew Install Node # get node. js
> NPM install-g appium # get Appium
> NPM Install WD # get Appium Client
> Appium & # Start Appium
> Node Your-appium-test.js
The official homepage gives the installation steps of the Appium.
So, we need to install node. JS first. node. JS Official website: https://nodejs.org/
Select the appropriate version to download according to your operating system. Here I install with Windows 7 as an example, select the Windows Installer (. msi) 64-bit version to download.
Download complete, double-click to install, such as.
When the installation is complete, open the Windows Command prompt, and enter the "npm" command.
If such information appears, it indicates that node . JS installation succeeded.
NPM is a node package Management and distribution tool that has become an unofficial standard for publishing node modules (packages). With npm, you can quickly find the packages you want to use for a particular service, download, install, and manage the packages you have installed.
The following installs the Appium via NPM .
---------------------------------------------
c:\users\fnngj>npm install-g appium --
-----------------------------------------------------
Of course, this kind of Appium will be very slow, in order to respect the official online introduction, and most of the Appium Related Materials will also introduce this installation method.
It is suggested that the author lacks "VCBuid.exe".
If the component is not installed, do one of the following :
1) Install Microsoft Windows SDK for Windows Server and . NET Framework 3.5;
2) install Microsoft Visual Studio.
This is because Appium is developed by . NET , so it relies on . NET Framework - related components. You can of course follow the prompts to download installation 1) or 2) and try to install Appium again .
But in fact, we can download the corresponding Appium version of the operating system on the Appium official website .
https://bitbucket.org/appium/appium.app/downloads/
Currently the latest version for appiumforwindows_1_4_0_0.zip , note that this is a Windows version If your PC is MAC please download APPIUM-1.3.7.DMG . Although you have seen these downloads, I do not guarantee that you can download them down. The reason you understand!
So, to provide a link to download the Baidu network disk: Http://pan.baidu.com/s/1jGvAISu
Let's take Windows as an example and unzip the downloaded appiumforwindows_1_4_0_0.zip as follows:
Double-click "appium-installer.exe" to install. According to the prompt, step by step installation, here no longer verbose. Eventually generate the Appium icon on the desktop , and when I double-click the icon, then the problem comes.
This simple, Baidu ". NET Framework 4.0" , Baidu Software Center provides the framework for download, download and install it.
The ". NET Framework 4.0" Installation is complete, start appium again, and then pop up the prompt again:
Well, again Baidu ". NET Framework 4. 5 "for download and installation. Start Appium again.
All right! Appium it can finally start up. As for the principle of Appium and use we put it in the following chapters to introduce.
--------------
Do you think the environment is ready? That's just the beginning.
Appium Mobile Automation test (i)