Hello All,
I am trying to delete a configuration from an existing run in a test plan via the API (see example below):
StubTestSuite4
StubTestSuite4 (Amazon AWS)
StubTestSuite4 (Rackspace)
StubTestSuite4 (Google)
StubTestSuite4 (Azure)
StubTestSuite4 (aws_win2k12)
Our automation framework calls the API function = POST index.php?/api/v2/delete_plan_entry/:plan_id/:entry_id
However, I found out that the entry_id in the above structure is the SAME for each configuration!! ??
{"id"=>355, "suite_id"=>66, "name"=>"StubTestSuite4", "description"=>nil, "milestone_id"=>21, "assignedto_id"=>nil, "include_all"=>true, "is_completed"=>false, "completed_on"=>nil, "passed_count"=>0, "blocked_count"=>0, "untested_count"=>10, "retest_count"=>0, "failed_count"=>0, "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, "project_id"=>4, "plan_id"=>254, "entry_index"=>5, "entry_id"=>"45b1d02e-9a83-44a3-844e-3338ac35629c", "config"=>"aws_win2k12", "config_ids"=>[14], "url"=>"https://illumio.testrail.com/index.php?/runs/view/355"}
Why is this ?
It would be very useful to reference a DIFFERENT entry_id for each of the lines so we can have the ability to delete one of the TestSuite/configuration combinations (example below)
delete_plan_entry/254/45b1d02e-9a83-44a3-844e-3338ac35629c
and the outcome will be:
StubTestSuite4
StubTestSuite4 (Amazon AWS)
StubTestSuite4 (Rackspace)
StubTestSuite4 (Google)
StubTestSuite4 (Azure)
Note: The last index = StubTestSuite4 (aws_win2k12) should be deleted!
At the moment, if we try calling this API method with the entry_id for one of the suite/configurations contained in the group, the actual result is the entire group is deleted! :-(
Can you please advice ?
Thanks,
--Jorge