We have written this Appium tutorial to give a complete picture of Appium mobile automation. We will discuss all the major topics here.
Introduction
It is an open-source tool. It supports Android, iOS, windows OS. We can execute same code in different os versions like Android, iOS.It reduces redundant code and helps to increase code reusability. It has implemented the Selenium webDriver, which connects through Apple’s XCUITest(iOS 9.3 and above) or UIAutomation(iOS 9.3 and lower) or UiAutomator/UiAutomator2 (Android) or WinAppDriver(Windows) dependent on the type of devices.
We will cover the below topics in this Appium tutorial:
Advantages of Appium
Disadvantages of Appium
Types of Mobile applications
There are three types of applications supported :
Native Application
Native applications are written using Windows, Android, iOS SDKs.
Hybrid Application
Hybrid applications are a mix of web and native applications. Here native applications have control, and it interacts with mobile web applications.
Mobile Application
Mobile web applications are web-based applications. These are accessible using chrome(Android), Safari(iOS) browser. We can develop this type of application by HTML, CSS, JavaScript, AngularJS.
Appium Architecture :
How It works on the iOS platform
How It works on the Android platform
Prerequisite for setup
Appium tutorial for installing Appium Desktop on Windows
- Please go to http://appium.io/, and you will see the below screen. Please click on the below-highlighted button.
- Once you have clicked the above button, you will see the below page. Please click on the highlighted .exe file or .zip file to get it downloaded in your system.
- Here We have taken the .zip file to install it. Please unzip the file. After that, you will see the image below. Please click on Appium.exe.
- Now you can see the image below, and you are ready to start your server.
- Now you can see the image below, and your server is ready.
Appium tutorial for installing Appium Desktop on Mac
- Please go to http://appium.io/, and you will see the below screen. Please click on the highlighted button shown below.
- Once you have clicked the above button, you will see the below page. Please click on the highlighted dmg file to get it downloaded in your system.
- Please click on the dmg file, which got downloaded recently, and you will see the below screen. Please the instruction mentioned in the below image.
- It will start copying in the Application folder.
- Suppose you have already installed another version in your system. You will get below pop up. It is your choice to keep both or replace the older one.
- Once it is installed in your system, you can go to the launchpad and search with Appium, and you will get below icon and click on the icon. Alternatively, you can go to the Application folder and click on the icon.
- Many times after launching it, you can get below error messages. No need to worry; we can solve this issue.
- To solve the above issue, you have to go to system preference from the apple icon shown on the top left corner and then click on Security and privacy. You will see the screen below. Please click on “Open Anyway.”
- Now click on the icon once again and this time, choose to open it. Please follow the below image.
- Now you can see the image below, and you are ready to start your server.
- Please click on the start server to start the server. Your screen will look like below.
conclusion
Till now We have covered the basics of Appium mobile testing in this Appium Tutorial. In the next topic, We will write about top 20 most used methods to automate native application. For more details on this topic, please refer to this link.
Hi, I am Himadri Das, I am a blogger, and an open source contributor. I have about 11 years of experience in the Information Technology domain. Currently I am working in a Startup Company as Quality Assurance Manager. I have hands-on experience on Appium, Selenium, QTP, Locust, Automation framework, Performance Testing, Functional Testing, Java, python, Shell scripting, MySql, Redis, Kafka etc. Apart from my work and writing blogs, I love to play guitar, love to travel and love to watch cricket and football. If you want to know more about me, please visit my linkedin profile .