Object Model Reference for GUI Testing > Utility Objects > Utility Statements > RunAPITest Statement

RunAPITest Statement

Description

Loads and runs the specified Service Test or API test when this step runs.

Syntax

If you are calling an entire test: RunAPITest(APITestName, APITestInputParams, APITestOutputParams)

If you are calling an API test action: RunAPITest(APIActionName [APITestName], APITestInputParams, APITestOutputParams)

Argument

Type

Description

APITestName

String

The name of the Service Test or API test to which you inserted a call using the Call to API Test/Action dialog box.

APIActionName String The name of the Service Test or API action to which you insert a call using the Call to API Test/Action dialog box.
APITestInputParam Integer or String The value of the API test input parameters to use during the current test run.

APITestOutputParams

String

The local variable name of the API test output parameter.

IMPORTANT

Example:

The following is an example of an inserted call to a Service Test or API test.

RunAPITest ("MyAPITest",Param1, Param1, OutputParam)

 

See also: