Appium from Scratch – Installing on Windows – Part 3: Install Appium

If you have successfully completed everything outlined in Part 1 and Part 2 of this guide, then you are ready to install Appium proper. Hopefully it wasn’t too difficult for you to get to this point, and maybe you already had a lot of the required software installed. I hope that you were able to get to this point quite quickly, because I found that it took me a while of searching around various different documentations to get to this point… Anyway, start by going to the official Appium site and click the ‘Download Appium’ button to download the latest stable version:

Unzip the file and run the appium-installer. I installed it to: C:\Program Files\Appium on my computer, but you might want to put it somewhere else. In that folder, run Appium.exe . Appium is launched, how easy was that!?

Now just to mention, if you are pretty new to all this stuff then running Appium through the executable is probably going to be fine for you, but for me personally I always like to have a separate installation of Appium that runs from the command line as well. The reason is that if you start to get serious about mobile automation testing later on, you will want to run from the command line sooner or later, and we have actually done most of the leg work already above to do so, so lets go ahead and install another version of Appium for the command line!

Open a command prompt and type :> npm install -g appium . This will install the latest version of Appium using the node package manager.

NOTE! at the time of writing, using the above command installed the latest version of Appium (1.5) for me. I actually had some problems running my automated tests with that version, and downgraded to an earlier version that I knew was working (1.4.13). So to install this version, I instead ran :> npm install -g appium@1.4.13 . Chances are, version 1.5 (or whatever the latest is) will work fine for you, but I thought it was worth mentioning

Now we need to make sure to set the PATH environment variable for where Appium gets installed through node package manager. If you need a refresher on how to set path environment variables, see PART 1 of this series (LINK TO PART 1). In my case, my path is “C:\Users\XXX\AppData\Roaming\npm\node_modules\appium“, so I append that to my ‘Path‘ system variable, as in the screenshot:

 

Now open a new command prompt and type :> appium & . If all is well, then the Appium server will launch from the command line! Congratulations!

So…. you might be feeling a lot bit underwhelmed at this point. All of this work, just to get here? What now? We haven’t even written any tests or done any automation or anything!? Well I have good news, now that we have gone through the laborious process of getting Appium installed (or hopefully it wasn’t too bad for you…!), in the next posts I am going to take you through how we actually go about using Appium and how we can start writing some automated tests. Stay tuned!