TestProject Forum

Mobile Test SDK Setup

Hello,
I am new to mobile testing with TestProject. I am following along with the instructions on downloading the Java SDK (article here), but the article doesn’t really describe what to do clearly.

  • Do I download the latest release?
  • Which jar file do I download from the dropdown in Maven Central Repository?
  • Is that Gradle or Maven?
  • After I download the jar file where do I put it?
  • Do I have to make changes to the build.gradle file? in the screenshot below it shows some lines of code do I need to add that anywhere?

Just looking for some more detailed steps on how to set up a mobile test on intellliJ

Hello @daniela.alvarez,

The TestProject openSDK in Java is available both for Maven and Gradle projects.
You can find the dependencies statements here: Maven Repository: io.testproject » java-sdk
It is recommended to use the latest version.

(Notice: You must have Java Development Kit (JDK) 11 or newer installed.)

You can copy-paste the dependency to your pox.xml/build.gradle file and refresh it, for this example, I will go with Gradle.

image

Then, you will be able to start creating your tests by importing TestProject drivers:

import io.testproject.sdk.drivers.android.AndroidDriver;.
import io.testproject.sdk.drivers.ios.IOSDriver

You can read more about the TestProject openSDK and review some code examples in the following git repo:
https://github.com/testproject-io/java-opensdk
https://github.com/testproject-io/java-opensdk#examples

Thank you so much for the thorough response, this is super helpful. Another question, so I don’t need to download the sdk jar file and place it in the build/libs folder of the project then update the location in the build.gradle file?