Class FVTSuiteBase

java.lang.Object
org.odpi.openmetadata.fvt.utilities.FVTSuiteBase
Direct Known Subclasses:
AssetConsumerOMASFVTSuite, AssetManagerOMASFVTSuite, AssetOwnerOMASFVTSuite, CommunityProfileOMASFVTSuite, DataManagerOMASFVTSuite, DigitalArchitectureOMASFVTSuite, GovernanceProgramOMASFVTSuite, GovernanceServerOMASFVTSuite, StewardshipActionOMASFVTSuite

public abstract class FVTSuiteBase extends Object
FVTSuiteBase provides the common functions for calling the Access Services FVT Test suite as a main program. It is used when running the test suite standalone (ie outside the failsafe test framework).
  • Constructor Details

    • FVTSuiteBase

      public FVTSuiteBase()
  • Method Details

    • performFVT

      public abstract int performFVT(String serverName, String serverPlatformRootURL, String userId)
      Run all the defined tests and capture the results.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformRootURL - the network address of the server running the OMAS REST servers
      userId - calling user
      Returns:
      combined results of running test
    • getServerName

      protected static String getServerName(String[] args) throws IOException
      This method gets the serverName that the FVT suite will use to issue calls to the server. If arguments are supplied then the second parameter is used as a serverName. If no serverName is supplied then prompt the user to enter a valid serverName, enter means to use the default serverName.
      Parameters:
      args - arguments supplied
      Returns:
      the serverName to use on the calls to the server
      Throws:
      IOException - IO exception occurred while getting input from the user.
    • getUserId

      protected static String getUserId(String[] args) throws IOException
      This method gets the userId that the FVT suite will use to issue calls to the server. If arguments are supplied then the third parameter is used as a userId. If no userId is supplied then prompt the user to enter a valid userId, enter means to use the default userId.
      Parameters:
      args - arguments supplied
      Returns:
      the userId to use on the calls to the server
      Throws:
      IOException - IO exception occurred while getting input from the user.
    • getUrl

      protected static String getUrl(String[] args) throws IOException
      This method gets the url that the FVT suite will use to issue calls to the server. If arguments are supplied then the first parameter is used as a url. If no url is supplied then prompt the user to enter a valid url, enter means to use the default url.
      Parameters:
      args - arguments supplied
      Returns:
      the url to use on the calls to the server
      Throws:
      IOException - IO exception occurred while getting input from the user.