We already have seen what is Appium in our previous article and also about the Appium Architecture. Now we’re going to set up Appium for running the test automation for the mobile application and in the mobile browser.
Before moving ahead for the pre-requisites, you should already have installed Android Studio or Android SDK on your machine.
- Let’s start with download Appium from the URL: http://appium.io/downloads.html
2. Select the .exe file for windows installation and wait for the download to complete.
3. After successfully download, go to download folder and double click on the exe file to start the installation.
4. It’ll take around 5-10 minutes for the installation the files depending on your system configurations.
5. After successful installation, you’ll see the icon in your desktop of Appium.
6. Double click on Appium icon to start the Appium, it will open Appium with new UI screen.
7. New Appium comes with great UI and functional changes. You can start the session directly via clicking on the Start Server v1.6.5, and if you want to change the capabilities and other profiles click on ‘Advanced’ tab.
8. From the Advanced, you can add log file path and other parameters of wait and session override and etc. Also if you are testing website via the browser in mobile, it also provides the preset to add chrome driver path as well.
9. After successfully configured, you can also save your configuration as preset as well for the future use. This one is good feature Appium added as you want to test two different os with the different version you can save the preset for same.
You can see few values for empty fields are display null. It might be an Appium bug you can say! 😀
10. You can also delete the presets which are not in use. Just select the preset you want to delete and click on Delete Preset. You will receive a confirmation for delete.
11. Click on Start Server after setting all the arguments will start the Appium server and redirect to Appium Console.
12. In case you need to save the logs of the application, Appium now also give you option to save the logs as well. Just click on the second icon (Download like icon) on the top right corner will save your logs in the notepad file.
13. Click on Last icon (Pause) will kill your Appium server session.
14. Now One of the best and my favorite feature is Appium Session configuration. Click on first icon (Search look like) will redirect you to the new Appium screen.
15. In here, you can add all the Capabilities you want to use in your app. So far a question might come in your mind is where is upload app feature gone. You can add your app path here directly in Capabilities. Enter ‘app’ in Name and select file-path from drop down. Later you can browse the app and select it. So on you can also add other capabilities as well.
16. You will notice above in screenshot, there’s also on section display “JSON Representation”, don’t worry about that as it’s automatically generated as soon as you’ll set the desired capabilities. You can also edit that representation in case you need anytime.
17. Like before we saw the Preset Save, You can also save the Capabilities configuration for the future use of other devices as well. Just click on “Save As..” button and it’ll save the capabilities.
18. Another great feature for Appium is they have added SauceLabs integration. Yes, now you can directly integrate your SauceLabs test with Appium. You don’t need to add the SauceLabs capabilities anymore in your code. Just add SauceLabs username and API key, you can directly run your cases in SauceLabs with defined capabilities.
19. Like SauceLabs, you can also connect TestObject with Appium as well so you also don’t need the same code of TestObject in your Appium Test cases.
So, this is it about Installing and setting up the Latest Appium v1.6.5. Soon I’ll also update how to run the tests via latest Appium as there’re many changes they have already introduced. Follow us and get updated with latest articles.