Table of Contents

Class APITestRunner

A class intended for running API Tests.

Inheritance
APITestRunner
Namespace: HP.LFT.SDK.APITesting.UFT
Assembly: HP.LFT.SDK.dll
Syntax
public static class APITestRunner

Methods

Run(string)

Runs the specified API Test.

Declaration
public static APITestResult Run(string testPath)
Parameters
Type Name Description
string testPath

The path to the folder containing the .st test file.

Returns
Type Description
APITestResult

The run results of this test run.

Remarks

Your API test must have been run in OpenText Functional Testing once or compiled before running it with OpenText Functional Testing for Developers.

Run(string, IDictionary<string, object>)

Runs the specified API Test with the specified input parameters.

Declaration
public static APITestResult Run(string testPath, IDictionary<string, object> inParams)
Parameters
Type Name Description
string testPath

The path to the folder containing the .st test file.

IDictionary<string, object> inParams

The input parameters of this test.

Returns
Type Description
APITestResult

The run results of this test run.

Remarks

Your API test must have been run in OpenText Functional Testing once or compiled before running it with OpenText Functional Testing for Developers.

Run(string, IDictionary<string, object>, string)

Runs the specified API Test with the specified input parameters and test profile.

Declaration
public static APITestResult Run(string testPath, IDictionary<string, object> inParams, string profileName)
Parameters
Type Name Description
string testPath

The path to the folder containing the .st test file.

IDictionary<string, object> inParams

The input parameters of this test.

string profileName

The name of the profile to use for this test. The profiles are created in OpenText Functional Testing in each test.

Returns
Type Description
APITestResult

The run results of this test run.

Remarks

Your API test must have been run in OpenText Functional Testing once or compiled before running it with OpenText Functional Testing for Developers.

Run(string, string)

Runs the specified API Test with the specified test profile.

Declaration
public static APITestResult Run(string testPath, string profileName)
Parameters
Type Name Description
string testPath

The path to the folder containing the .st test file.

string profileName

The name of the profile to use for test. The profiles are created in OpenText Functional Testing in each test.

Returns
Type Description
APITestResult

The run results of this test run.

Remarks

Your API test must have been run in OpenText Functional Testing once or compiled before running it with OpenText Functional Testing for Developers.