Appium Beginner Tutorial 3 | How to install appium on Windows

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] [Applause] hello and welcome to this session today we are going to see how to install APM on windows and this is going to be very easy very interesting and I am going to start from scratch from very basics and go up step by step so do not worry if this is the first time you are using APM this is going to be very easy and in this session we are going to learn how to install a PM with node.js and then how to install a PM with a PM desktop client so these are the two ways that you can use to install APM on Windows and I will show you both of these phase and then you can see which is the better way for you we will then see how to check the installation and dependencies using the APM dr and then finally we will see how can we uninstall a PM if required so let's get started and then let us see the very first way which is installing a PM with node dot J's so this is the very first thing that we are going to see and here I will go to my Windows and you can see this is my windows or there is no node.js no APM here so we are going to start from very basic so the step number one here will be check if no dot GS is installed on your system so for that what you will do is go to your command line on your Windows so let us go to the command line and you can either start your command line as an administrator or you can just start as any user and then you can say node space - - version so when you click enter if you are getting this kind of a message that note is not recognized as an internal or external command that means node is not installed you can also check NPM and if node is not installed NPM is also not installed on your system and you can check with this command so this means node an NPM is not installed so the very first thing is you have to check if node is installed by using nodes B - - version and the same thing you can say npm space - hyphen version instead of - - version you can also say - V or - V which is one and the same thing and we'll give you the result so in our case this is not installed so what I'm going to do is now we are going to install node yes so step number two will be download no dot GS installer so I will go to my browser and here I will say download no dot J's and hit enter so the very first option you will get here is this node JS dot o-r-g en download let us go here and here you can see the installer of node.js and you can select the installer and by default it will show you for example I am on Windows so it is showing me this Windows installer for 64-bit and also you can check your bit size if you go to your folders and here just to a right click on my computer this pc and go to properties here you can see your system type so - 64-bit so you can just go and click on this Windows installer and it will download the node.js installer and you can see this is getting downloaded so let me also copy this URL and all these nodes will be available for you so I am just adding the URLs here I will see it downloaded from here and then once this is downloaded step number 3 will be we have to run the Installer and install node dot GS and NPM so NPM is the package manager for node and by default with node you will 10:00 p.m. as well so let us see now you can see this is now downloaded let me go to the folder and yes here it is I will just double click on this Installer and run node Installer and you can see this is here so let me minimize other things and say next accept the terms and license so you can just read this agreement and then accept it and say next and here you will get the location where you want to have node so by default it will be c program files no GS so I will not change it I will just say next and keep it as it is and say next so here you can just see what all will be you will be getting you will be getting no GS you will be getting NPM and all these things some documentation say next and now I will click on install so that installation will begin so this will install node and NPM on my system and yes click on finish so now this is done now let us run the same commands again if I say node space - hyphen version as of now I am still not getting so that means I will have to start a new command line so I will exit from here and I will start a new command prompt and now I will say node space - - in version and you can see I am getting the version for node I can also use - V instead of - - version and that should also work and yes this is working similarly for NPM I will say NPM - - version or NPM - V and it will show me the version for NPM the other comment that you can use is you can say where node so it will show you the location of node and you can see it as c program files node GS and i will say where npm and here you can see the location of NPM so our step number four is check if node dot GS and NPM are installed and these are the commands again that you will use so I will just copy it here so I'm writing all these nodes so that these nodes will be available for you weird node and we're NPM these are the commands that you can use so now we have done installation of node and NPM so now step number five will be step number five is now we will install a PM with node GS and the command for that is we will say npm install - g - g option is for installing globally on your system and a PM so I will go to my Windows and say npm install - g APM and I will hit enter and I think there was some mistake I think a spelling mistake let me say yes I used three else here let me correct it yes npm install - CAPM and hit enter and you can see it is now downloading and will install a PM on this windows system so let's just do it and yes this is done and there may be some errors and some warnings but let us just check if our installation is successful so for that what we have to do is step number six will be we have to check if APM is installed properly on our system and for that we have some commands and the commands are you can use APM - - version or - v and you can also similarly use the command via APM so I will use these commands I will say APM - - version it will show me the APM version installed and let us just wait and you can see this is the version 1.1 zero and also I can say simple APM - v this should also show me the same result and yes this is fine and if I say we're a PM you can see this is the location of APM so whatever location you have that should be fine so this was step number six and now finally we have got APM so step number seven should be we have to check and start the APM and the command for that will be simple we have to run the command APM so let me do that I will say APM and hit enter and this should start the EPM server and yes you can see APM server is started and this is started on the port 4-7 - 3 which is the default port for APM so this is started if you want to stop the server you can press ctrl + C combination on your keyboard and it will shut down so that's it so that means APM is now available on your Windows system so this was the way how to install EPM with nodes GS and let us also see how to install a PM with a p.m. desktop client so this is very easy here step number one will be we have to download a PM desktop client so here if you go to your browser and go to a PM official website which is a PM dot io let me just go there it is a PM dot io yes so here you can see this is the official website for a PM and I will also copy this and have it here in my notes so here you can see if you go here you have the option to download a PM so I will click on download a PM and it will take you to this github page I will also copy this direct link of this github page here in the notes and here you can see the latest version is 1.8 dot 2 and for Windows you just have to take this exe file so a PM desktop setup.exe this is something I can take let me click here and it will start downloading and once this is downloaded we will start it so here step number two will be install a PM desktop client so a PM desktop client is a UI through which you can control it and let me just show you if we have the on the data page if you have some documentation you can see a PM server and inspector in desktop GUI s for Mac Windows and Linux so it provides us a GUI and you can handle and manage your a PM from there and you can see this is the a PM stop so this is how it will look like once you started and you there is a known issue as well so you can read this some Windows 10 users might experience path to long exception and here they have also given the solution here you can check this in case you face this issue and you can also read this documentation a PM desktop is an app for Mac Windows and Linux which gives you the power of APM automation server in a beautiful and flexible UI so this is what it is and now we have got the exe so let us run this exe to get our APM desktop client on our system so I will just run this and here it is and you can see so the very first thing is you can select if you have multiple users on your system if you just want to select for you only so as of now I am the administrator on this system so it is asking only for me or anyone so I want anyone on this system should should be able to use this APM and let us say install and this will start the installation process so this process may take some time so let us just wait for this process to be completed so now you can see this is completed and this process can take sometimes you do not worry if the installation takes some time and now finally I am going to click on finish and you can see this run APM is checked so this will now start APM I will say finish and this will start the EPM desktop client now let us just wait and you can see this EPM desktop is coming up and here you can see this is the UI and here is the host and here is the port so by default the host is 0 0 0 0 and port is 4 7 2 3 and you can now click on start server and this will start the APM server and you can see the APM server is running and now also you can see that I have on my system APM desktop client Vanessa APM installed through node.js so if I go to my command line and try to run a PM by saying a PM and hit enter you will see that it will not start and will say that because this port was already in use and the same thing you can see here if I stop it from here I will just stop the server and start a PM from the command line this time it will start and you can see it has started on the port 4-7 to 3 and if I try to start on the same port here which is for 7 to 3 I will get the message that error starting on this particular port 4-7 to 3 so you can see I cannot start on the same port and so we have done this second step installation of a PM desktop client and next step is starting of a PM desktop client which we have already done start apium through a PM desktop client and the system now the other topic that is very important is we have to check to check APM installation and requirements or dependencies we can install a PM dr. now what a PM doctor is let us go to our browser again and I will search for a PM doctor and let us search for this and you can see this is the data page for a PM doctor I will go here let me also copy this URL and provide it here in the notes and here you can see a PM doctor is a application and a tool to verify a PM installation and here this is how you can get it so you can get it through NPM so because we already have node installed I can just use this command I will copy this and you can see a temp to diagnose and fix common node iOS and Android configuration so I will tell you what this is in a moment let me go to my command line I will just stop the IAM server clear my screen and I will say npm install APM dr. minus G and this will install a p.m. dr. let me also put this here in the nodes and all these nodes will be available to you so here yes so you can see APM doctor is now installed and now I will run this command you can see the usage here you can see the help by running a p.m. dr. - edge and these are all the options that you can use with a PM doctor so I will run a PM dr. - search and it will show me the options available so if you want to check the version you can say - - version so I will say - - version and it will show you the version number so this is the version number in case I want to check that Android setup I have to use the flag - - and also I will say APM dr. - - Android and it will show me all the information and warning so you can see I have not yet set Android home so this is a warning it is saying adb could not be found because Android home is not set so this is going to be very useful whenever you have some issue you can always run this APM doctor and see what is the missing things that you need to do and this will be very useful there are a lot of things that you can use so you can also check it for iOS Android debug and so on so this is how you can use a p.m. doctor and now finally we will see how to uninstall a p.m. so now in case you have installed a p.m. through an p.m. or node you can just go to your command line and say npm uninstall - JEE APM and it will uninstall APM so you can see this is now uninstalling APM and just in case if you have used the APM desktop you can always go to your add and remove programs on Windows so on your control panel you will have add or remove programs I am directly going to here add and remove programs and you will find your APM here so in case you have added through APM the extra plant you can just uninstall it from here so this is how you can uninstall APM in case required and this is how you can install APM on Windows and I hope this session was very useful for you thank you for watching
Info
Channel: Automation Step by Step
Views: 129,180
Rating: undefined out of 5
Keywords: how to install appium on windows, appium beginner tutorial, appium tutorial for beginners, appium step by step, appium by raghav pal, appium on windows, how to isntall appium with node, what is appium, how to install appium desktop client, appium doctor, how to uninstall appium
Id: x-hBpgM5je8
Channel Id: undefined
Length: 20min 16sec (1216 seconds)
Published: Tue Apr 30 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.