Java
How to add java sdk into your application
Last updated
How to add java sdk into your application
Last updated
HyperTest's Maven packages are hosted on a GitHub public Maven registry.
To install and use HyperTest's java-sdk
package in your application, follow these steps:
Create MVN_TOKEN - The Hypertest Team may share this with you, or you can generate your own personal access token by visiting .
Add Repository Configuration in pom.xml
Define Properties in pom.xml
file
Add the Repository in pom.xml
file
Add the HyperTest agent dependency to your project. You can check for the latest version on the .
Install HyperTest's java-sdk package
Add the following content in your pom.xml
Run the following command
Initalize the HyperTest Java SDK in the public static void main
method of your service. This must be the first thing in your main method.
This needs to happen as early in your app as possible.
Call this method after SpringApplication.run
when the app is ready to receive traffic, it indicates that tests can be started (This is important ONLY FOR REPLAY mode).
To enable hypertest, set the HT_MODE
env variable to RECORD
and start your app
Start sending http requests on your app running with hypertest sdk.
You should start seeing requests under All requests section on the dashboard
<HT_SERVICE_ID> is the identifier that we created in