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

Unable to add config to Run via API

The configs created for the project are:- [
{
“id”: 1,
“name”: “Browsers”,
“project_id”: 22,
“configs”: [
{
“id”: 1,
“name”: “chrome”,
“group_id”: 1
},
{
“id”: 2,
“name”: “firefox”,
“group_id”: 1
}
]
}
]

The config ids in the run body is : “config_ids”: [ 1 ]

I don’t know what am I doing wrong

Hi Sudha,

Thanks for the post! So we can further understand the issue you are having, can you post a copy of the actual post body being submitted to the API along with the error message you receive from TestRail? This will help us review the request for errors. You can also email this request to contact@gurock.com and our support team will review this and get back to you via email.

Below is also an example request body for using configurations from our documentation.

{
	"name": "System test",
	"entries": [
		{
			"suite_id": 1,
			"include_all": true,
			"config_ids": [1, 2, 4, 5, 6],
			"runs": [
				{
					"include_all": false,
					"case_ids": [1, 2, 3],
					"assignedto_id": 1,
					"config_ids": [2, 5]
				},
				{
					"include_all": false,
					"case_ids": [1, 2, 3, 5, 8],
					"assignedto_id": 2,
					"config_ids": [2, 6]
				}

				..
			]
		},

		..
	]
}

Thanks and I look forward to helping you resolve this,
Jon