Do you think IIT Guwahati certified course can help you in your career?
No
Introduction
Have you ever worked with any automated testing software tools?
This article is focused on one of these automated testing software tools, i.e., Katalon Studio. Katalon Studio is built on the open-source Selenium and Appium automation frameworks. It has a specialized IDE interface for API, mobile, web, and desktop application testing. It is an automation tool for mobile and web application testing. It can be installed easily. It can quickly run, create, maintain and report its automated tests. Katalon Studio is designed to reuse and create automated test scripts without coding. It allows the execution of automated tests for UI elements. It includes iFrames, pop-ups, and wait time. Linux, macOS, and Microsoft Windows all support launching the tool.
Let's dive into the article to learn more about Mobile Automation Testing with Katalon Studio.
Handling Spinner in Mobile Automation Testing
In this article, we will learn about Mobile Automation Testing spinner handling with the help of an example. This action is common in software development for mobile. An example of this can be selecting a location from a US states and territory list.
Scenario
Let’s assume a scenario to proceed further. There is a Planet Spinner list. You have to scroll down in that list and choose "Pluto". You need to verify that the selected value is “Pluto”.
Manual Mode
Step 1: Select from the mobile keyword Start Application. Click on Input. A window will appear on the screen. Choose Value Type as a Variable in appFile. Pass the path as the variable name in Value.
Step 2: Add an item Wait For Element Present.
Step 3: From the mobile keyword, call Scroll To Text. Pass ‘Views’ as input. String type parameters are accepted by Scroll To Text (Text of the element that is to be scrolled).
Step 4: Pass the Views object after calling the Tap method.
Step 5: Pass Spinner as the input after calling from the mobile keyword Scroll To Text.
Step 6: Click on Spinner.
Step 7: After clicking/tapping, we have to wait till 'Views/Spinner' is displayed on the screen.
Step 8: Call the Tap method. Pass the 'Planet Spinner' option object.
Step 9: Call from mobile keyword Scroll To Text. Pass Pluto as input.
Step 10: Call the Tap method, and pass the Pluto option object.
Step 11: Now, it's time to verify whether the selected option is Pluto. We have to capture the selected object text by calling the keyword Get Text. Store this text into a variable.
Step 12: Call the keyword 'Verify Match'. It will validate whether the variable value (stored value) and the expected result are the same.
Script mode makes it possible to follow the step-by-step instructions above (Click on the Script tab to switch to Script Mode). We advise using Katalon's Script feature to speed up the procedure.
Note: Given scenario can also be handled or achieved by just capturing the list values and tapping from the spinner on the desired value.
Frequently Asked Questions
Does Katalon Studio support mobile testing?
Yes, Katalon Studio supports mobile testing. Currently, it supports only native mobile applications. But it is an absolute path for your mobile application file (.ipa file for iOS or .apk file for Android).
What language does Katalon use?
Katalon Studio uses Groovy, a language built on top of Java. It has to load many libraries for parsing test data, test objects, and logging.
Does Katalon support mobile automation?
Yes, Katalon Studio supports mobile automation. Katalon is built above Selenium and Appium. So, it is a ready-to-use vendor-based tool and ready-made test automation platform for web, API, mobile, and desktop (Windows) apps.
Can we automate mobile device testing?
Yes, we can automate mobile device testing. Katalon offers a ready-made testing platform for web, mobile, and desktop applications. It supports both iOS and Android testing.
Does Katalon use Appium?
Katalon acts as a Self-regulation tool for both Web and Mobile Applications. It does the e job of both Selenium and Appium.
Conclusion
This complete article has helped us to learn about all the concepts and steps for handling spinning in mobile automation testing. We have learned step-by-step procedures for handling spinners in mobile automation testing using Katalon Studio.