Skip to end of metadata
Go to start of metadata

Call Test Case in Manual view

Follow the steps below in order to make a call to another test case in Manual view:

  1. Open a test case in Manual view, then select option to add Call Test Case from command toolbar.


  2. The Test Case Browser dialog which shows all existing test cases within the project will be displayed. Select the test case to be called and click OK.


  3. A Call Test Case step will be added with the selected test case above as its target. 

    Once a test step is added as Call Test Case, it will not be allowed to change into another keyword.

Call Test Case in Scripting view

In Scripting view, the callTestCase method allows users to make a call to another test case. Refer to either of the following syntaxes:

//call test case using WebUI Class
WebUI.callTestCase(findTestCase({Test Case ID}), [key1:value1, key2:value2, … , keyN:valueN], FailureHandling.option)
 
//call test case using Mobile Class
Mobile.callTestCase(findTestCase({Test Case ID}), [key1:value1, key2:value2, … , keyN:valueN], FailureHandling.option)

where:

ItemsDescription
{Test Case ID}

The ID of the test case to be called. You can find this info in test case properties.

For example:

Parameters binding:

[key1:value1, key2:value2, … , keyN:valueN]

The list of input parameters for that test case if any, which consists of following details:

  • Key(s): The public variables defined within the called test case.
  • Value: the value to be used for the corresponding public variables.
FailureHandling.option

The failure handling option for the current test step. This parameter is optional.

For example:

 

  • No labels