Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

How to execute a test job continuously from outside or automate it

Nihar1991 Posts: 52
edited September 2020 in CTP

Hi Team,

I have a situation where I need to execute a test continuously for a long time.
for this, I have already created a test job and execute it by using rest API (/v2/jobs/{jobid}/histories).
But here I need to run it manually every time. I need a way where i can execute this rest API from the scheduler or by automation or any other approach.

can you please help me with this. I have attached below rest API for execute the job which I execute.

Req URL:
Response Body: {
"context": {
"environmentId": 22,
"environmentInstanceId": 30,
"systemId": 7
"id": 6,
"jobId": 299,
"jobName": "API_Hermes",
"status": "WAITING",
"testExecutionIds": [],
"username": "inarin01"

Appreciate your response here

Nihar Arisal


  • Matt Love
    Matt Love Posts: 88 admin
    edited September 2020

    Hi Nihar,

    One way to execute this job continuously would be to call the REST API in a loop.
    Try something like this on Linux:
    while [ true ]; do curl --user admin:admin --header "Content-Type: application/json" --request POST --data '{}' ; sleep 60; done