SideeX WebService Client API primarily handles the transfer of test suites to a hosted SideeX WebService server and returns the test reports.
Download the SideeX WebService Client API for Java
ProtocolType
Description
: ProtocolType is a Enum Class type which specifies the http protocol. HTTP
stands for http request; HTTPS_DISABLE
stands for https request without certificate; HTTPS_ENABLE
stands for https request with certificate.SideeXWebServiceClientAPI(String baseURL, ProtocolType protocolType)
Description
: The constructor to create a Client API object.baseURL
: Base URL of the SideeX WebService server.protocolType
: The type of http request used. The value can be set to ProtocolType.HTTP
or ProtocolType.HTTPS_DISABLE
.SideeXWebServiceClientAPI(String baseURL, ProtocolType protocolType, String caFilePath)
Description
: The constructor to create a Client API object.baseURL
: Base URL of the SideeX WebService server.protocolType
: The type of http request used. The value is set to ProtocolType.HTTPS_ENABLE
.caFilePath
: The file path of the http certificate.runTestSuite(Map<String, File> file)
Description
: Uses the API to run test cases.file
: The file that contains test cases.getState(String token)
Description
: Gets the current test case execution state.token
: The token returned from the runTestSuite API.
valid
and the state is running
, the response will be
valid
and the state is complete
, the response will be
download(final Map<String, String> formData, String filePath, int option)
Description
: Download HTML test reports or logs.fromData
: A Map object containing the following:
token
: The token returned from the runTestSuite API.file
: This parameter is optional. If set file
to "reports.zip"
, the API will return a zip file containing all HTML reports, otherwise, it will return an HTML index webpage.filePath
: Set your download file path. e.g.: "./reports".option
: If option is set to 0
, the API will download reports. If set to 1
, it will download logs.deleteJob(String token)
Description
: Delete the test case and the test reports on SideeX WebService server.token
: The token returned from the runTestSuite API.
A complete example: