Sample Exchange

 View Only

Hcibench Api Call Samples implemented in Java 

Mar 03, 2021 01:33 AM

This HcibenchApiCallSample_Java.7z provides Hcibench Api Call Samples implemented in Java. It contains three Java files:

1 Constants.java which stores list of Hcibench REST API constants used by other Java files

2 HciBaseLib.java which provides the common funtionalities consumed by hcibench REST API, such as getHttpClient(), createRequestUrl(), sendGetRequest(), sendPostRequest(), parseResponse() etc.

3 HcibenchLib.java which provides hcibench REST API, such as  generateParam(), generateFile(), validateFile(), 

runTest(), isTestFinish(), readLog(), killTest(), cleanupVms() etc. It also provides the unit testing code sample.

 

This code sample is dependent on external httpmime jar. In your project pom.xml, add following dependency:

        <dependency>

             <groupId>org.apache.httpcomponents</groupId>

             <artifactId>httpmime</artifactId>

             <version>4.3.1</version>

        </dependency>

This HcibenchApiCallSample_Java.7z provides Hcibench Api Call Samples implemented in Java. It contains three Java files:
1 Constants.java which stores list of Hcibench REST API constants used by other Java files
2 HciBaseLib.java which provides the common funtionalities consumed by hcibench REST API, such as getHttpClient(), 
createRequestUrl(), sendGetRequest(), sendPostRequest(), parseResponse() etc.
3 HcibenchLib.java which provides hcibench REST API, such as  generateParam(), generateFile(), validateFile(), 
runTest(), isTestFinish(), readLog(), killTest(), cleanupVms() etc. It also provides the unit testing code sample.
 
This code sample is dependent on external httpmime jar. In your project pom.xml, add following dependency:
        <dependency>
             <groupId>org.apache.httpcomponents</groupId>
             <artifactId>httpmime</artifactId>
             <version>4.3.1</version>
        </dependency>

#vSAN
#vSphere
#MIT
#HCIBench
#Java

Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
7z file
HcibenchApiCallSample_Java.7z   3 KB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Related Entries and Links

No Related Resource entered.