Class APITestRunner

java.lang.Object
com.hp.lft.sdk.apitesting.uft.APITestRunner

public class APITestRunner extends Object
A class intended for running API tests.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    run(String testPath)
    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.
    run(String testPath, String profileName)
    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.
    run(String testPath, Map<String,Object> inParams)
    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.
    run(String testPath, Map<String,Object> inParams, String profileName)
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • APITestRunner

      public APITestRunner()
  • Method Details

    • run

      public static APITestResult run(String testPath, Map<String,Object> inParams, String profileName) throws GeneralLeanFtException
      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.
      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 GeneralLeanFtException
      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.
      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

      public static APITestResult run(String testPath, String profileName) throws GeneralLeanFtException
      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

      public static APITestResult run(String testPath) throws GeneralLeanFtException
      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