Class FVTSuiteBase
- java.lang.Object
-
- org.odpi.openmetadata.fvt.utilities.FVTSuiteBase
-
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 Summary
Constructors Constructor Description FVTSuiteBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static StringgetServerName(String[] args)This method gets the serverName that the FVT suite will use to issue calls to the server.protected static StringgetUrl(String[] args)This method gets the url that the FVT suite will use to issue calls to the server.protected static StringgetUserId(String[] args)This method gets the userId that the FVT suite will use to issue calls to the server.abstract intperformFVT(String serverName, String serverPlatformRootURL, String userId)Run all the defined tests and capture the results.
-
-
-
Method Detail
-
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 toserverPlatformRootURL- the network address of the server running the OMAS REST serversuserId- 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.
-
-