Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

API add_run gives incomplete format


#1

Hi,

I want to create a new test run in python, but the error I get is: incomplete format. My code is like this:

client.send_post(‘add_run/%’ % (project_id), data)

data = {

“suite_id”: 78,

“name”: “This is a new test run”,

“assignedto_id”: 13,

“include_all”: false,

“case_ids”: [6468,6469]

}

Is there any wrong with the Json code? The project id is correct. I don’t really know now what I am missing.

Thanks!


#2

I tested this with Postman and that works fine, so there is something else that is not really working.


#3

Just wanted to say I solved the problem, it was just a miss in the code, I forgot the %s in the first send.