Table of Contents

Class APITestRunner

Namespace
HP.LFT.SDK.APITesting.UFT
Assembly
HP.LFT.SDK.dll

A class intended for running API Tests.

public static class APITestRunner
Inheritance
APITestRunner
Inherited Members

Methods

Run(string)

Runs the specified API Test.

public static APITestResult Run(string testPath)

Parameters

testPath string

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

Returns

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.

public static APITestResult Run(string testPath, IDictionary<string, object> inParams)

Parameters

testPath string

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

inParams IDictionary<string, object>

The input parameters of this test.

Returns

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.

public static APITestResult Run(string testPath, IDictionary<string, object> inParams, string profileName)

Parameters

testPath string

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

inParams IDictionary<string, object>

The input parameters of this test.

profileName string

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

Returns

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.

public static APITestResult Run(string testPath, string profileName)

Parameters

testPath string

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

profileName string

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

Returns

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.