TestProject Forum

TestProject API projectId and jobId for selenium BDD+Open SDK integration

We have created custom project and job for executing our Selenium BDD Java+Test project Open SDK code. This is mentioned as part of a ChromeDriver(new ChromeOptions(), “TestPrj+app Integration”, “Test CRS”);.

We are looking out to create custom report where below API will be utilised for getting the results. Generally, we can get projectId and jobID for projects created via TestProject UI.

How do get these details for Selenium BDD Java+Test project Open SDK code ?

API:= GET [/v2/projects/{projectId}/jobs/{jobId}/reports/latest]

Hi @Vinit,
When running a test using the SDK a job is created on the UI.
This job represents the ID and Name of your tests that have been executed from the SDK.
Once you have the Job ID, you can use the following endpoint:
https://api.testproject.io/docs/v2/#/Executions/Executions_GetRunningExecutionsAsync
when the job is running to retrieve the specific execution ID by filtering the response using the job ID.
Let me know if you have any questions.

Thanks Amit for the response. I am able fetch data.

Anytime! :slight_smile:
Glad to hear it worked for you, feel free to contact us if you need anything.