TestProject Forum
Powered by leading experts in the test automation community

Gradle project execution giving an error of invalid token

Hi,
I am getting this error when I try to run my gradle project.
Exception in thread “main” io.testproject.sdk.internal.exceptions.InvalidTokenException: No token has been provided.

Could you please guide me?

Hello @suranga1201.

Did you insert your dev token when creating the driver in your test?

You can get a dev token from the integrations section:

And construct your driver using it, for example:

ChromeDriver driver = new ChromeDriver("DEV_TOKEN" ,new ChromeOptions(), "PROJECT_NAME");

You can also set your dev token as an environment variable as mentioned in the GitHub documentation:

1 Like