Hi,
I`m using JIRA with suiTest plugin and want to create Test plan automatically from our automated tests.
In web Test plan creation form uses custom component to select test case templates. Is there any way to pass them through json API?
/createmeta for Test plan issue type contains
"customfield_13503": { "required": false, "schema": { "type": "string", "custom": "com.intenso.jira.plugins.suiTest:testCaseTemplates-selector", "customId": 13503 }, "name": "TC Templates", "hasDefaultValue": false, "operations": ["set"] },
But passing test case templates list in customfield_13503 does not work.
Community moderators have prevented the ability to post new answers.
Hi,
Use issueId instead of issueKey. If you have more test cases use comma to separate ids:
{
"fields": {
"customfield_10004": "10101,10102"
}
}
It works for me. That will create new Test Case under Test Plan.
What is your next step? How do you know which Test Case Templates are for your automated tests?
Hi Lukasz, This did not work out too. BTW, when I query existing Test plan, I see list of test cases keys in this field, not test case templates. We're linking tests with test case templates in jira by name, and going to update test cases after test run (this step is working already, only trouble is creating test plan automatically).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's strange it didn't work out. Could you attach your JSON, please? In example above I used existing (but empty) Test Plan and then HTTP PUT method to update testCaseTemplates-selector CF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My json for create: {"fields": {"project": {"id": "13608"}, "customfield_15405": [{"value": "WMS"}], "issuetype": {"name": "Test plan"}, "customfield_13503": "126037,128135,128461,128256,126013,126016,128386,126009,128522,128175,128224", "summary": "WMS. New tasks 1.7.6"}} For update; {"fields": {"customfield_13503": "126037,128135,128461,128256,126013,126016,128386,126009,128522,128175,128224"}} Both do not work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It looks ok. I am using JIRA 6.3.7 and SuiTest v2.9-j63. Which are yours versions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.