Why is TP queueing my tests?

Most of today I have been running tests in TestProject through the API.
And till the second half of the afternoon there was no issue.
Then I started a new test and the API returned 200, but no test was actually started.
After a minute from receiving the 200 my code stats questioning the API if any tests are active, if not it starts a new one, else it waits. I got a 404, so no tests are active and the code started a new test.
Again I got a 200 and again nothing happened.
I decided to use the API call that Returns queued executions for the agent.
And I saw that my tests were indeed queued.
Immediately after I got logged out of TestProject, I was logged in to check the status of the tests.
Only after logging in again and clearing the queue could I resume test execution.

My question is: Why is TestProject queueing my tests?
The previous testcase was finished and no tests were active.
Why queue the test if nothing is happening?

No answers yet.
But I will ask again.
Now with more examples.
I have a set of customers that I want to check.
So I call the check customer test multiple times in a row through the API.
When I came back I saw that of my 36 tests 20 were executed.
With a huge gap of 20 minutes somewhere in between.

After each time I ask the PAI to run a test, I wait for 1 minute.
Then I call the API to as if any executions are running at the moment
requests.get(“https://api.testproject.io/v2/executions?_start=0&_limit=10

If a 404 is returned, no executions should be active and I can start a new test.
But still TestProject deemed is necessary to queue my tests.

In the monitor no tests are active.
But these tests are still queued.

Can anyone explain why my tests are queued and not just executed?

[
{
“id”: “vrZU1WdvQ02SQzx5WBYBIw”,
“type”: “TEST”,
“name”: “KlantWordt_Testcase-API-ACC”,
“executionStart”: “2022-06-13T09:04:12Z”
},
{
“id”: “ZsxTcIkZIU-69adx8gvI6g”,
“type”: “TEST”,
“name”: “KlantWordt_Testcase-API-ACC”,
“executionStart”: “2022-06-13T09:05:25Z”
},
{
“id”: “5-FRo3SeSUGVY1857Pb3Eg”,
“type”: “TEST”,
“name”: “KlantWordt_Testcase-API-ACC”,
“executionStart”: “2022-06-13T09:06:34Z”
},
{
“id”: “qBUaYnPfyEGybDAnim9epg”,
“type”: “TEST”,
“name”: “KlantWordt_Testcase-API-ACC”,
“executionStart”: “2022-06-13T09:07:40Z”
},
{
“id”: “aGJqXNKSuEmAh5yBPREKPg”,
“type”: “TEST”,
“name”: “KlantWordt_Testcase-API-ACC”,
“executionStart”: “2022-06-13T09:08:48Z”
},
{
“id”: “faYJk46FtEylsMiIc64wFA”,
“type”: “TEST”,
“name”: “KlantWordt_Testcase-API-ACC”,
“executionStart”: “2022-06-13T09:09:55Z”
},
{
“id”: “l2KD4uyzCUSt_jynYpkaVw”,
“type”: “TEST”,
“name”: “KlantWordt_Testcase-API-ACC”,
“executionStart”: “2022-06-13T09:11:03Z”
},
{
“id”: “VpONfMXrF0WJYxPaAFevgQ”,
“type”: “TEST”,
“name”: “KlantWordt_Testcase-API-ACC”,
“executionStart”: “2022-06-13T09:12:10Z”
},
{
“id”: “4NThI-_4H0ORpTsM3Tw64Q”,
“type”: “TEST”,
“name”: “KlantWordt_Testcase-API-ACC”,
“executionStart”: “2022-06-13T09:13:15Z”
},
{
“id”: “9-JBHaxKeUqiORQxp6qPyw”,
“type”: “TEST”,
“name”: “KlantWordt_Testcase-API-ACC”,
“executionStart”: “2022-06-13T09:14:21Z”
},
{
“id”: “0WmOzD0er0K_PVyICXlhww”,
“type”: “TEST”,
“name”: “KlantWordt_Testcase-API-ACC”,
“executionStart”: “2022-06-13T09:15:29Z”
},
{
“id”: “ybNI54RuPUW4ocEmXNj0Xg”,
“type”: “TEST”,
“name”: “KlantWordt_Testcase-API-ACC”,
“executionStart”: “2022-06-13T09:16:35Z”
},
{
“id”: “mtweM_cYIU2uwvyL3l-zZw”,
“type”: “TEST”,
“name”: “KlantWordt_Testcase-API-ACC”,
“executionStart”: “2022-06-13T09:17:42Z”
},
{
“id”: “6buP_nV1FEuGlh_kj6rM8w”,
“type”: “TEST”,
“name”: “KlantWordt_Testcase-API-ACC”,
“executionStart”: “2022-06-13T09:18:49Z”
},
{
“id”: “l-Kg09wjx0uXzkSEm2SKfw”,
“type”: “TEST”,
“name”: “KlantWordt_Testcase-API-ACC”,
“executionStart”: “2022-06-13T09:19:55Z”
},
{
“id”: “C4yMivmfW0m1EKSlbWNTsQ”,
“type”: “TEST”,
“name”: “KlantWordt_Testcase-API-ACC”,
“executionStart”: “2022-06-13T09:38:34Z”
}
]

Time for a small update.
I would really like some answers.

Right now I am trying to run a test.
No other tests are running for the Agent.
So I start the test using the API.
It returns status 201, test is queued.
So I request the queue, it indeed contains one test.
I delete the queue for the agent and start the test again.
The test is queued again.
I build code that if return status is 201 it requests the queue,
then id queue size is > 0 it deletes the queue and starts the same test again.
12 times in a row.
Test is started.
Test is queued.
Queue size == 1
Delete queue

Start test again
Test is queued again.

Why?

I’m experiencing the same thing right now (7/8)

Any luck figuring out the issue?

Try quitting and restarting the agent.

I find that I have to sometimes delete the agent from the web UI and then re-register it in order to get things working again after any downtime or maintenance on this platform.

No luck yet.
Since I start my testcases with use of the API, I also do a check on the status code returned. If 201 my test is probably queued.
Then I check all queued executions and if the size returned is 1 or greater I will delete all queued executions and try to start my test again.
Since this is running at night, restarting the agent is not really a possibility for me.

This topic was automatically closed after 180 days. New replies are no longer allowed.