To use our Java API to inject external data into NeoLoad, use our classes to create Context and Entry objects as explained in Create the Java Data Exchange API client.
First instantiate a DataExchangeAPIClient providing a URL, Context, and API key.
Then call the method addEntry() to send one Entry at a time or the method addEntries() to send more than one Entry at a time.
To configure your Java project, it is recommended to use Maven.
In a Java Maven project, you need to add a dependency to the Maven settings file (pom.xml) using the examples below:
<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>
<dependencies>
<dependency>
<groupId>com.neotys.rest</groupId>
<artifactId>neotys-rest-api-dataexchange-client-olingo</artifactId>
<version>1.0.4</version>
</dependency>
</dependencies>
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:
<install-dir>
\api\Data Exchange API Client\Java
folder<install-dir>
\api\Common\Java
folder