Table of contents
1.
Introduction
2.
Prepare the iOS Application file
3.
iOS Sample Project Components
3.1.
Custom Keywords
3.2.
Test Cases
3.3.
Test Suites
3.4.
Execute selected test suites/cases
4.
Frequently Asked Questions     
4.1.
What are the critical features of Katalon?
4.2.
What is meant by Mobile Testing?
4.3.
What different purposes does a Sample project in Katalon Studio fulfill?
5.
Conclusion
Last Updated: Mar 27, 2024

Sample iOS Mobile tests project in Katalon Studio

Author Anmol Punetha
0 upvote
Career growth poll
Do you think IIT Guwahati certified course can help you in your career?
OG image

Introduction

In this article, we will see about the iOS mobile testing fundamentals in the Katalon Studio.

 

  1. Open the sample test product
     
  2. To open up an iOS sample project, go to File -> New Sample Project -> Sample iOS mobile tests project.

 

New Sample Project

 

Prepare the iOS Application file

The Coffee Timer application, i.e., the Application Under Test located in the App folder of the sample project, is pre-built and signed so that it runs only on Katalon devices.

To run the sample test cases with an iOS device, we must build and sign the Coffee Timer app for our iOS device. To do so, follow the below steps:

To carry out mobile testing with an actual iOS device, we need to prepare a .ipa file.

1. Open CoffeeTimer.xcodeproj file with Xcode. To find the saved project, go to the project folder -> App -> Your-First-iOS-App -> Coffee TImer, and then double-click on the CoffeeTimer.xcodeproj file.
 

2. Once the project is opened in Xcode, select a registered iOS device to launch the apps. 
 

3. Set the deployment iOS version and the device type in the Deployment Info section from the General tab.

 

General Settings Application File

 

4. In the Signing & Capabilities tab, check the Automatically manage signing box and choose the team with your device registered in the Apple Developer Portal.

 

5. To build .ipa file, go to Product -> Build

 

6. To archive a .ipa file, go to Product -> Archive, and to open the archive organizers click on Windows -> Organizer and then Archives.

 

7. To verify the .ipa file:-

  • Go to Window -Devices and Simulators in Xcode.
  • Choose the device from the Devices list
  • Click “+” to browse the .ipa file

 

8. Finally, place the Coffee Time.ipa into the App folder of the sample project.

 

iOS Sample Project Components

Custom Keywords

We have the option to use custom keywords in our test cases. 

Katalon Studio creates the sample.Common.startApplication to define the absolute path for initializing the iOS application. 

To spot the custom keywords, go to Keywords -> sample -> Common.groovy.

Test Cases

To retrieve test cases of a sample project, go to the Test Cases folder in the panel of Test Explorer.

 

Tests Explorer

 

We are provided with two test cases for contrasting purposes:

 

1. The test case of the Mexican Coffee Timer starts and stops the timer for making Mexican coffee.

  • Initialize the Coffee Timer.ipa application. We use the sample.Common.startApplication custom keyword to run our application.
  • Click Mexican & we set the timeout for 0 seconds.
  • Click Start & we set the timeout for 0 seconds.
  • Click 3:19 & we set the timeout for 0 seconds.
  • Click Sto & we set the timeout for 0 seconds.
  • Click Back & we set the timeout for 0 seconds.
  • Close the application.

 

2. The test case of Verify the main list verifies the list of the coffee name in the application.

  • Initialize the Coffee Timer.ipa application. We use the sample.Common.startApplication custom keyword to run our application.
  • Verify if the application shows the Mexican item.
  • Verify if the application shows the Colombian item.
  • Verify if the application shows the Coffees item.
  • Close the application.

 

Test Suites

To retrieve the test suite for a sample project, go to Test Suites -> Smoke Tests folder in the Text Explorer panel.

Execute selected test suites/cases

  1. Choose the test case that you want to be executed.
  2. From the main toolbar, choose iOS in the dropdown list next to Run.
  3. From the displayed iOS devices, select the desired iOS device or XCode simulator and press OK.
  4. Use the Log Viewer tab to observe the test results.

Frequently Asked Questions     

What are the critical features of Katalon?

The key features of Katalon include: 

Test Management

Test Planning

Test Execution

What is meant by Mobile Testing?

Mobile Testing is a procedure for testing applications for necessary functionality, quality, compatibility, usability, performance, and other characteristics.

What different purposes does a Sample project in Katalon Studio fulfill?

A sample project can be used for various purposes:
Web UI Testing
API Testing
Mobile Testing
Web UI testing with data-driven testing

Conclusion

So, with this, we saw the iOS mobile tests project in Katalon Studio. I hope that the blog was informative.

See Basics of C++ with Data StructureDBMS, and Operating System by Coding Ninjas, and keep practicing on our platform Coding Ninjas Studio.

If you think you are ready for the tech giants company, check out the mock test series on code studio.

You can also refer to our Guided Path on Coding Ninjas Studio to upskill yourself in domains like Data Structures and AlgorithmsCompetitive ProgrammingAptitude, and many more! You can also prepare for tech giants companies like Amazon, Microsoft, Uber, etc., by looking for the questions asked by them in recent interviews. If you want to prepare for placements, refer to the interview bundle. If you are nervous about your interviews, you can see interview experiences to get ideas about these companies' questions.

Nevertheless, you may consider our premium courses to give your career an edge over others!

Do upvote our blogs if you find them helpful and engaging!

Happy Learning!

 

Thank you image

Live masterclass