Java client
Overview
To use our Java API to start or stop tests onto NeoLoad, use our classes as explained in Create the Java Runtime API client.
First instantiate a RuntimeAPIClient providing a URL and API key.
Then call method GetStatus() to get the current status of NeoLoad, method StartTest() to start a test, method StopTest() to stop a test, method add AddVirtualUsers() to add Virtual Users or method StopVirtualUsers() to stop Virtual Users.
Configure the project
To configure your Java project, it is recommended to use Maven.
x.y.z stands for the latest version of the dependency.
Maven projects
In a Java Maven project, you need to add a dependency to the Maven settings file (pom.xml) using the examples below:
- Repository
<repositories><repository><id>neotys-public-releases</id><url>http://maven.neotys.com/content/repositories/releases/</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></repository></repositories>- Dependency
<dependencies><dependency><groupId>com.neotys.rest</groupId><artifactId>neotys-rest-api-runtime-client-olingo</artifactId><version>x.y.z</version></dependency></dependencies>Non-Maven projects
If your project is not developed using Maven, it is necessary to include the JAR files available in the \api folder of the NeoLoad installation directory:
- in the <install-dir>\apiRuntime API Client\Java folder
- in the <install-dir>\api\Common\Java folder
Home