Test Steps are a set of statements that define the steps to be performed in a Test Case and they constitute the Test Case.

We are going to discuss managing Test Steps in this article.


Upload your App


The first step is to upload your iOS app


  • Navigate to the uploads page. 
  • Click on Upload and upload your .ipa file 




Navigation


Navigate to the Test Cases page.





Test Development  > Create



  • Enter a meaningful name and description for the test case


  • Verify if the other options in the test cases templates need to be changed


  • If the test case is in the "ready" state, it means that the test case can be run


  • Add a Prerequisite test case that needs to be run before current test case if required


  • Click create


Create Test Steps


Usually, there are 3 approaches to create a Test Step:


1. Using Natural Language(Template)







2. Using a Step Group



A step group is a set of steps that are grouped to be used for repetitive execution. For example - All steps required for login can be grouped into one set and this set can be called in all test cases. This reduces the work of a test engineer. 





3. Using a Custom Function



A custom function is a function written for executing a specific task. For example : To import strings from an excel file.


----------------------------------------------------------------------------------------------------------------------


Description

----------------------------------------------------------------------------------------------------------------------

Using Natural Language(Template)


The Natural Language option allows you to create Test Steps using an extensible set of commands in Simple English.


Action Text: Start by entering the action that you want to perform in simple English. As soon as you start entering, the Testsigma interpreter presents a drop-down list of available commands and you can select the required command by clicking on it.


For example,

if you want to type 'paul@gmail.com' into the username field on a webpage, start by entering "Enter" in the Action Text field.

As soon as we enter "Enter", the following command would pop up in the suggestions list(along with a few other commands):


Enter [test data] in [UI identifier]


Here,
[test data] is what you need to replace with your username. It can be any data such as a username or email "paul@gmail.com".

[UI Identifier] is what you need to replace with the name of the Web UI Element locator(id, Xpath, name e.t.c) on a web page.


Double click on test data or ui identifier to select it and press the delete or backspace key to clear it. Then start entering your username or name of the username field locator there to continue.


For Test Data, you can either enter the value manually or make use of one of the Test Data types available in Testsigma. Please refer this article for more details on Test Data Types - Different types of Test Data and their usage in Testsigma?


For UI Identifiers, you usually enter a name for the UI identifier variable to be created and later update the variable with a value. Please refer to this article for more details on creating a UI Identifier during Test Step creation - How to create UI Identifier while creating Test Step?


If you prefer, you may also create UI Identifiers beforehand and add them while creating Test Steps. This way, you will get suggestions from the list of UI identifiers you already created. Please refer to this article for more details on creating and managing UI Identifiers - How to manage UI Identifiers?


Click on the Clear button on the right side to clear the Test Step and start from the beginning.


Click on the Settings button to specify additional options as specified below:

Mandatory: Select the Mandatory checkbox to make the execution of this step compulsory for a test case.


PrioritySelect the Priority level that you want to set for this Test Step.

  • Major
  • Minor
  • Medium

PrerequisiteSelect a previously created Test Step if successful execution of that step is required to execute this Test Step.



For example, let us see how the following steps are created using Testsigma in the following video.

1. Launching the Application

2. Clicking on UI Identifier named 'Attribute'

3. Entering 'ios automation' as Test Data in UI Identifier named 'value'




Edit Test Steps


First of all, click on the Test Case name on the Test Case page to navigate to the Test Case Details page under which the required Test Step is located.

To edit existing test steps, click on the Edit button next to the Test Step or click on the Test Step. An inline section to edit the Test Step will open up as shown below:



Click on the Clear button to clear the whole text from the Action Text field.


Make the required changes and click on the Update button to finalize changes.


A notification about successful test step update will be shown and we would be taken back to the Test Step Details page.


Delete Test Steps


To delete existing test steps, click on the Delete button next to the Test Step. A confirmation dialog will be shown as given below:

Select the checkbox and click on Delete to confirm Deletion.


As we discussed earlier, there are 2 more approaches to create Test Steps as given below:


 2. Using a Step Group: To create a test step with existing step group, go through this article - How To Use Step Group in Test step?


 3. Using a Custom Function: To create a custom function in the test step, go through this article - How to create and use Custom Functions in Testsigma?