Class FVTSuiteBase
java.lang.Object
org.odpi.openmetadata.fvt.utilities.FVTSuiteBase
- Direct Known Subclasses:
AssetConsumerOMASFVTSuite
,AssetManagerOMASFVTSuite
,AssetOwnerOMASFVTSuite
,CommunityProfileOMASFVTSuite
,DataManagerOMASFVTSuite
,DigitalArchitectureOMASFVTSuite
,GovernanceProgramOMASFVTSuite
,GovernanceServerOMASFVTSuite
,StewardshipActionOMASFVTSuite
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected static String
getServerName
(String[] args) This method gets the serverName that the FVT suite will use to issue calls to the server.protected static String
This method gets the url that the FVT suite will use to issue calls to the server.protected static String
This method gets the userId that the FVT suite will use to issue calls to the server.abstract int
performFVT
(String serverName, String serverPlatformRootURL, String userId) Run all the defined tests and capture the results.
-
Constructor Details
-
FVTSuiteBase
public FVTSuiteBase()
-
-
Method Details
-
performFVT
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
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
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
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.
-