How To Run Your First Appium Test | Appium Testing Tutorial | Part VI
In this Part 6 of the Appium Testing tutorial series, Siddharth Shukla (@sidharthshukla4), founder and author of Automaters: Full Stack QA_SDET, guides through a step-by-step process to create an Appium demo script. Appium is a popular open-source automation framework used for mobile app testing. By following this walkthrough, you will learn how to set up the necessary software, create a test script, define capabilities, write automation steps, and execute the script.
00:00 Introduction
01:54 Set Desired Capabilities For The Android Device
06:13 Create An Instance Of The Appium Driver
08:01 Perform Some Actions On The App
18:34 Quit The Driver And Close The App
21:10 Execute The Demo Script
25:05 Conclusion
Introduction to Appium Demo Script:
Overview of the session’s goal: creating and executing an Appium demo script on an Android emulator.
Four key steps are covered:
Setting desired capabilities for the Android device.
Creating an instance of the Appium driver.
Performing actions on the application.
Quitting the driver and closing the application.
Setting Desired Capabilities:
Explanation of how to set up the desired capabilities for the Android emulator using Appium.
Discussion on how to fetch device-specific capabilities such as platform version, device name, and APK path.
Creating an Instance of the Appium Driver:
Guide on how to instantiate the Appium driver for Android using the provided desired capabilities.
Overview of the Appium server’s role in executing the test script on the emulator.
Executing Test Steps:
Example test case: automating interactions on a sample APK app, such as clicking on a geolocation button, entering a URL (google.com), and validating the Google logo.
Use of Appium Inspector to identify mobile elements for automation.
Writing assertions to verify elements (e.g., verifying the presence of the "Find" button and the Google logo).
Validating the Script and Performing Error Handling:
Running the script and validating both positive and negative scenarios (handling element identification failure).
Explanation of debugging steps to fix locator issues when elements are not found.
Appium Inspector and Element Identification:
Demonstration of using Appium Inspector to identify UI elements (e.g., buttons, text fields) by their XPath, ID, and other attributes.
Verification of locators in the Inspector tool before adding them to the script.
Conclusion and Next Steps:
Encouragement to try executing the script on local setups and test with both positive and negative scenarios.
Preview of the next session, which will cover a more advanced approach using the Page Object Model (POM) in test automation.
Appium Testing Tutorial For Mobile Applications
Complete Tutorial On Appium Parallel Testing [With Examples]
Sidharth Shukla
Sidharth Shukla is a skilled Software Development Engineer in Test (SDET) currently contributing to Amazon in Canada. With a robust background in API, UI, and Mobile Automation, Sidharth is a key player in the realm of DevOps. Beyond his technical prowess, Sidharth is a prolific writer and video creator.