Document toolboxDocument toolbox

Working with Test Cases

A Test Case consists of steps and may contain single or multiple tasks. Each step contains an action along with its associated objects and parameters. Define the sequence of the steps in a test case that resemble the flow of a test scenario. You can add test data as per the requirements.

A test case determines whether the application under test meets the defined specifications under the given set of conditions or variables. Test cases are also created to validate if an application meets the business and functional requirements.

Before you create a test case, create a test scenario or select from available test scenarios.

A Test Case Editor screen contains buttons that you can use to add steps or execute a test case.

The following table shows the description of each button.


Button

Button Name

Description

Button

Button Name

Description

Create New task

To create a new task while adding or editing a test case. You need to select a step after which you want to create the new task 

Create Tasks using the selected steps

To create a new task using the steps of the test case.

You need to select the steps. 

Import Task

To add a task that is already created in the project. Select a step after which you want to add a task.

Detach Task

To remove a task from the test case. You need to select the task that you want to remove.

Add Test Case Step

To add an independent test case step, that is, a step which is not part of any task.

Add Task Step

To add a step in a task.  You need to select a task in which you want to add a step.

Note: If you add a new step, ensure that the execution of all the associated test cases are not affected.  

Remove Step

To remove a step from the test case. You need to select the consecutive steps.

Add Conditional Block

To insert a conditional statement. For more information, refer to Conditional Structure (IF-ELSE).

Move Up

To move up a selected step.

Move Down

To move down the selected step.

Start Web Recording

To start web recording on a web application under test.

Or, if a recording session is on, then this button is replaced with the Pause Web Recording button ().


Note: If you have already dry run a test case, you cannot record in the same session. You need to close the browser, open the test case, and then do the recording.

Stop Web Recording

To stop the web recording session.

Start Mobile Recording

To start web recording on a mobile application under test.
Note: If you have already dry run a test case, you cannot record in the same session. You need to close the browser, open the test case, and then do the recording.



Stop Mobile Recording

To stop the mobile recording session.

Add Test Data

To insert test data. For more information, refer to Adding a Test Data.

Dry Run

To dry run the test case. For more information, refer to Dry Running a Test Case.

Debug

To debug a test case. For more information, refer to Debugging a Test Case.

Debug Logs

To open the debug execution logs.

Go To Line

To go to a specific line of a test case

Previous Error

To go to the previous step, which has been identified as:

  • Deleted: The objects are deleted

  • Empty: The objects are not added.

  • New Test data:  Add with a new set of test data.

Next Error

To go to the next step, which has been identified as:

  • Deleted: The objects are deleted

  • Empty: The objects are not added.

  • New Test data:  Add with a new set of test data.

Save 

To save the test case every time you update it.

Also, you can click the arrow button to save it as another test case with a different name.



Related topics