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
testPathstringThe 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
testPathstringThe path to the folder containing the .st test file.
inParamsIDictionary<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
testPathstringThe path to the folder containing the .st test file.
inParamsIDictionary<string, object>The input parameters of this test.
profileNamestringThe 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
testPathstringThe path to the folder containing the .st test file.
profileNamestringThe 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.