Appium is an open source mobile automation tool which is used to automation native and hybrid mobile apps. It can be used for Cross-platform testing i.e. Android and iOS using the JSON Wire protocol.
You can automate and test the apps using Appium server which acts as an intermediate between your java client and the mobile application. Appium is basically a node.js server and the best thing about Appium is that; it supports various languages – Ruby, Java, and JavaScript and C #. You could even run your test scripts on real devices and if not real devices then emulators and simulators.
Let’s understand How the Architecture of Appium Works
Appium is basically an HTTP server. This server is written in Node.js and it helps to create multiple web Driver session against different platforms. This Appium server receives request from java client which listens for commands from Appium Server.
Let’s have a look at Appium in detail with this video representation.
The way of working of Appium server is almost the same as in selenium RC. The way iOS and android interact with server is quite different. In case of Ios, an Appium proxy commands to a UIAutomation Script. This script would be running in MAC environment.
This application in Ios is called Instruments. In case of android almost everything is same where the server proxy commands to a UIAutomator test case. UIAutomator is a native UI Automation framework which supports junit test cases.
Now let us look at the command line way in which you can install Appium Server on your windows machine.
Through Command Line
The prerequisite for installing Appium server through command line would be installing Node.Js First, let’s look at the steps involved in installing node.js in your system.
Also Read: Why Appium is Impeccable in iOS and Android App Testing
When you will install node MSI from the official site using above steps NPM tool would also get installed which will be used in installing Appium using the command line. Appium is a node.js server hence it is mandatory to install node in your machine before installing Appium.
Now, let us see how npm can actually help you in downloading through the simple command line.
Now, you got to know how you can install Appium using the command line. It is a very simple process rather than doing headache of downloading from the internet. Once you are done with installing Appium using the command line, you could also invoke Appium server using the command line. To start Appium using command line; you have an open command prompt as an administrator and run command appium –a 127.0.0.1 -p 4723. A is the IP address and p is the port number. If the specified command ran successfully you would receive on command prompt a message which says “Welcome to Appium and Appium listener started on 127.0.0.1:4723 .
Also, the best part about npm is that if at any point of time you don’t want Appium in your server then you don’t need to take the headache of going to that particular folder and delete it.
You can simply install it using command: npm uninstall –g appium. It would remove all the Appium files from your system. Also, if you are having more than 1 version of Appium in your system then also you can uninstall a particular version number of Appium using command: npm uninstall –g appiu@1.6
Conclusion
Hence, now you got to know that installation of Appium is damn easy with command line rather than doing it manually. NPM is a wonderful package installer and makes your task easier. Install it and start the automation. All the best!!