Package com.hp.lft.sdk.apitesting.uft
Class APITestRunner
java.lang.Object
com.hp.lft.sdk.apitesting.uft.APITestRunner
A class intended for running API tests.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic APITestResult
Runs the specified API Test and returns the test run results.
Your API test must have been run in OpenText Functional Testing once or compiled before running it with OpenText OpenText Functional Testing for Developers.static APITestResult
Runs the specified API Test with the specified test profile.
Your API test must have been run in OpenText Functional Testing once or compiled before running it with OpenText OpenText Functional Testing for Developers.static APITestResult
Runs the specified API test with the specified input parameters.
Your API test must have been run in OpenText Functional Testing once or compiled before running it with OpenText OpenText Functional Testing for Developers.static APITestResult
Runs the specified API test with the specified input parameters and test profile.
Your API test must have been run in OpenText Functional Testing once or compiled before running it with OpenText OpenText Functional Testing for Developers.
-
Constructor Details
-
APITestRunner
public APITestRunner()
-
-
Method Details
-
run
public static APITestResult run(String testPath, Map<String, Object> inParams, String profileName) throws GeneralLeanFtExceptionRuns the specified API test with the specified input parameters and test profile.
Your API test must have been run in OpenText Functional Testing once or compiled before running it with OpenText OpenText Functional Testing for Developers.- Parameters:
testPath
- the path to the folder containing the .st test file.inParams
- the input parameters of this test.profileName
- the name of the profile to use for this test. The profiles are created in OpenText Functional Testing in each test.- Returns:
- the run results of this test run.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
run
public static APITestResult run(String testPath, Map<String, Object> inParams) throws GeneralLeanFtExceptionRuns the specified API test with the specified input parameters.
Your API test must have been run in OpenText Functional Testing once or compiled before running it with OpenText OpenText Functional Testing for Developers.- Parameters:
testPath
- the path to the folder containing the .st test file.inParams
- The input parameters of this test.- Returns:
- The run results of this test run.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
run
Runs the specified API Test with the specified test profile.
Your API test must have been run in OpenText Functional Testing once or compiled before running it with OpenText OpenText Functional Testing for Developers.- Parameters:
testPath
- the path to the folder containing the .st test file.profileName
- The name of the profile to use for test. The profiles are created in OpenText Functional Testing in each test.- Returns:
- The run results of this test run.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
run
Runs the specified API Test and returns the test run results.
Your API test must have been run in OpenText Functional Testing once or compiled before running it with OpenText OpenText Functional Testing for Developers.- Parameters:
testPath
- the path to the folder containing the .st test file.- Returns:
- the run results of this test run.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-