In the following article, we will learn how to create your first Native iOS Application Test Case and to execute the same on Testsigma Labs.

The Application under Test(AUT) is the Wordpress iOS App v8.3 - Download the Wordpress IPA here

Create and Run your first iOS Native Application Test Case on Testsigma Labs

Please follow the below steps to create and run your iOS Native Application Test Case.

1. Create a Project, Application and Version
From Testsigma Dashboard page, click on the Create New button and then click on Project to create a new Project as shown below:

Enter the required details: Project Name, Application Name, Version Name and Application Type.

Note: Enable the checkboxes if you need multi-Application and multi-Version tracking in a single Project. You may leave it unchecked if you are not sure.

Clicking on Create button creates the Project, Application and Version in a single Step and takes you to the Test Cases page.

2. Import the UI Identifiers

UI Identifiers in Testsigma are used to locate the Elements on your Application Screen/Page such as buttons, fields e.t.c.

For this guide, we have already created the UI Identifiers required in this Test Case for you in importable format. Let us import the UI Identifiers now.

Download - UI Identifiers Export File

Click on UI Identifiers link on the left context menu to go to UI Identifiers page. Click on Import button to import the UI identifiers as shown below:

How to Import UI Identifiers?

You can also get to UI Identifiers page from Test Development > UI Identifiers

In this case, we have already created the UI Identifier for you. Please check the below article to know how to create UI Identifiers for your iOS App:

iOS Native App - How to create UI Identifiers?

3. Create the Test Case.

Click on Test Cases link on left context menu once again to go back to the Test Cases page. Click on + Test Case to create a Test Case as shown below:

How to add/edit/delete an automated Test Case?

Enter a Test Case name and click on Create button to Create the Test Case. We will be taken to Test Case details page.

4. Add First Test Step

The first step is to Launch the WordPress App.

Click on the Add First Step button to open the Test Step Creation Wizard.

Type 'launch' in Action Text box and select 'Launch App' from suggested NLP Statements. Now, click on Create & Continue to add the Step and continue onto adding next Test Step.

5. Add the second Test Step.

The second step is to tap on Log In as shown below:

For adding the second Test Step to tap on the Log In button, do the following:

Type 'tap' in Action text box and select 'Tap on ui identifier' from suggested NLP Statements.

Double click on ui identifier, press Backspace key to delete it and select 'Loginbutton' from the suggested ui identifiers list. 

Remember we had already imported the UI Identifiers and that is the reason the UI Identifiers are shown in suggestion. We can also create a UI Identifier by entering it's name. We will learn that in another article.

6. Add the remaining Test Steps

We have added the first two steps. We need to add step 3 to 6 to the Test Case.

#1    Launch App
#2    Tap on Loginbutton
#3    Enter in the email field
#4    Tap on Nextbutton
#5    Verify that the element useusernamenotificationmsg has value Please log in using your username instead of your email address. for value
#6    Tap on okbutton

Follow the same step as shown above and simply select the corresponding UI Identifier from the suggestions.

How to add / edit / delete Test Steps for Automated Test Cases?

7. Upload the Wordpress App(AUT)

  • Download the attached "WordPress_8.3.ipa" file at the bottom of this page.
  • Click on Uploads link from left context menu to go to Uploads page. You can also get to this page from Dashboard by going through Test Development > Uploads
  • Click on the Choose File button and select it from the File explorer where it was downloaded.
  • Then, click on Upload button on Uploads page and upload it as shown below:

How to upload Android or iOS Apps to Testsigma Cloud?

8. Create and Run the Execution

Go back to the Test Cases page and click on Run button on top right corner. Modify the required details and leave the rest as it is.

Run the Test by clicking on Create and Run button.

Once the execution is started, it will take some time for it to complete and it will be in queued status until completion. After the execution is complete, the Test Result status will change to Passed, Failed, Aborted, or Stopped as per the execution outcome.

Happy Test Automation!