TestProject Forum
Powered by leading experts in the test automation community

Starting with TestProject SDK


I am starting to play with the SDK for Java, but I am struggling with some issues. I have cloned the GitHub repository java-sdk-examples to execute the demo web tests. After getting the dependencies via Maven, if I open the file BasicTest.java, I can see that IntelliJ is not able to find io.testproject.java.*.

Where is this dependency? How can I resolve this issue?

I appreciate any help you can provide.

Hello @daniel.gonzalez.

Have you cloned this repository?

That repository is currently archived, and shows examples using the TestProject SDK which is now classified as the Addon SDK, and can be found here:

The repository containing examples of the current openSDK which is found here:

Can be found on this GitHub page:

The openSDK is the newer of the two, tests written using it do not need to be uploaded to the platform, and can be executed locally with dynamic reports with screenshots generated for you on the platform itself, whenever the execution ends or the driver quits.

And contains examples as well.

@david.goichman thank you so much for your help!

I didn’t notice that this repo is archived… I am going to use the new one a start with it :slight_smile:

Have a nice day!

@david.goichman I have been executed the simple test example successfully.

But if a try to run the same test in a Maven project it fails. I have the SDK downloaded and configured in the pom file, the one that is indicated here:
Link to download the SDK

The error that I am getting is the following:

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/gson/JsonSyntaxException
	at io.testproject.sdk.drivers.web.ChromeDriver.<init>(ChromeDriver.java:367)
	at io.testproject.sdk.drivers.web.ChromeDriver.<init>(ChromeDriver.java:340)
	at io.testproject.sdk.drivers.web.ChromeDriver.<init>(ChromeDriver.java:100)
	at WebTest.main(WebTest.java:8)
Caused by: java.lang.ClassNotFoundException: com.google.gson.JsonSyntaxException
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	... 4 more

I think I am missing a dependency or similar.
Could you (or anyone) tell me which dependencies I need to use the SDK in a Maven project?

Thanks in advance!

Hello @daniel.gonzalez.

There are no additional dependencies required.

Here is my pom.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <project xmlns="http://maven.apache.org/POM/4.0.0"




And this is the test:

Here is the entire project that successfully executes, you just need to replace your developer token in the driver constructor call.

@david.goichman thank you! I am going to take a look at your project!