Create Test Steps using natural language


Testsigma follows a codeless approach to test creation. You create Test Steps in simple English instead of programming languages. This makes the tests easy to create and read. We assume that you are familiar with Test Cases and related concepts. If not, refer to Test Cases - Overview

Let’s take an example where we need to automate the login scenario for Simply Travel Web Application. Here’s a snapshot of the login page:

Simply Travel login page

The steps would be:

  1. Navigate to Simply Travel login page(https://travel.testsigma.com/login)
  2. Enter username as ‘admin’ in the User Name field
  3. Enter the password as ‘12345’ in the Password field
  4. Click on the login button


Creating Test Steps

After creating a new Test Case or opening an existing Test Case, we will be taken to the Test Case page as shown below:

Default navigate step present on creating Test Case

We can see that the first Test Step is automatically created for us based on the Application Type we are in. In the case of a Web Application, it is “Navigate to test data”. Learn more about Test Data.

Step 1

For the first Test Step, click on ‘test data’ to select it and to update it. In this case, replace it with the URL or Web Address of the Application Under Test i.e https://travel.testsigma.com/login

Once the test data is updated, click on the ‘Create’ button to validate and create the Test Step.

Create First Action Step for Simplytravel test case

Note: There is a more intuitive way to continue adding more test steps once you finish typing one - just hit "ENTER".

Step 2

Now, let’s create another Test Step to do the next required action i.e “Enter username as ‘admin’ in the User Name field”.

As soon as the first step is created, a new Test Step is created and in focus.

  1. Start by typing the action you wish to perform. For entering some data into an element field, type ‘enter’ in the Test Step input box and wait for the suggestions to appear. You can select the most appropriate one for your action. In this case, select “Enter test data from element field”.

Action Suggestions for enter action

  We have already discussed test data in the previous step. Let’s see what an Element is.

  Learn more: What is Element?

  1. As we did for the first Test Step, click on ‘test data’ once to select it and update it. In this case, replace the existing text with ‘admin’.
  2. After that, click on ‘element’ once to select it and update it. A suggestion list with available Elements pops up on the right.
  3. If you have already created the Element, enter the element name and select from the filtered list.

Element suggestions popup with existing Element

  1. If you haven’t created the Element, enter a name for the new Element and click on create a new Element.

Element suggestions popup with new Element

To learn more ways to create Elements, refer to: Create Elements - Overview

  1. Finally, click on Create.

Step 3 & 4

Similarly, create the remaining steps by repeating the same steps from Step 1 to Step 4 by entering the action you wish to perform, selecting the appropriate Action Statement, and updating the ‘test data’ and/or ‘element’.