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

Issue with automating test plan creation for multiconfig runs

I am trying to automate the creation of a test plan with a single entry for multiple runs of different config_id sets, but end up getting only single run created with my config_ids ignored:

Testrail version: 6.0.0.4140


POST

url: my_testrail_server/index.php?/api/v2/add_plan/5
data: {
‘name’: ‘0.0_ATestNightly’,
‘description’: ‘Nightly ATest runs’,
‘milestone_id’: 2,
‘config_ids’: [2, 5, 20],
‘entries’: [
{‘runs’: [
{‘config_ids’: [5, 20],
‘name’: ‘0.0_ATestNightly20_5’},
{‘config_ids’: [2, 20],
‘name’: ‘0.0_ATestNightly20_2’}]
,‘suite_id’: 29}]
}


POST RESULT

{‘assignedto_id’: None,
‘blocked_count’: 0,
‘completed_on’: None,
‘created_by’: 7,
‘created_on’: 1568891810,
‘custom_status1_count’: 0,
‘custom_status2_count’: 0,
‘custom_status3_count’: 0,
‘custom_status4_count’: 0,
‘custom_status5_count’: 0,
‘custom_status6_count’: 0,
‘custom_status7_count’: 0,
‘description’: ‘Nightly ATest runs’,
‘entries’: [{‘id’: ‘8786b2dc-bda7-4785-a24c-5d624ef65843’,
‘name’: ‘MaxCore’,
‘runs’: [{‘assignedto_id’: None,
‘blocked_count’: 0,
‘completed_on’: None,
‘config’: None,
‘config_ids’: ,
‘created_by’: 7,
‘created_on’: 1568891810,
‘custom_status1_count’: 0,
‘custom_status2_count’: 0,
‘custom_status3_count’: 0,
‘custom_status4_count’: 0,
‘custom_status5_count’: 0,
‘custom_status6_count’: 0,
‘custom_status7_count’: 0,
‘description’: None,
‘entry_id’: ‘8786b2dc-bda7-4785-a24c-5d624ef65843’,
‘entry_index’: 1,
‘failed_count’: 0,
‘id’: 125,
‘include_all’: True,
‘is_completed’: False,
‘milestone_id’: 2,
‘name’: ‘MaxCore’,
‘passed_count’: 0,
‘plan_id’: 122,
‘project_id’: 5,
‘retest_count’: 0,
‘suite_id’: 29,
‘untested_count’: 9,
‘url’: ‘my_testrail_server/index.php?/runs/view/125’}],
‘suite_id’: 29}],
‘failed_count’: 0,
‘id’: 122,
‘is_completed’: False,
‘milestone_id’: 2,
‘name’: ‘0.0_ATestNightly’,
‘passed_count’: 0,
‘project_id’: 5,
‘retest_count’: 0,
‘untested_count’: 9,
‘url’: ‘my_testrail_server/index.php?/plans/view/122’}

Have I got something wrong?