How to add Testscript Steps in OSLC using REST API?
![]()
Hello!
I'm trying to attach some Test script Steps to my Testcases in Rational Quality Management jazz Team Server.
Until now, I was able to add Testcases and / or Test Scripts in the following way:
//SCENARIO C: RQM TestCase creation and update
I also need to add Test Script Steps. I've read some articles and some questions in this forum and I know, that I'd need to use the REST API.
But I don't know exactly how.
I've also found an article about REST API, but I'm not sure, if I'm trying to use the right one:
https://jazz.net/library/LearnItem.jsp?href=content/docs/web-ui-programming/web-ui-todo-rest.html
Is this the REST API, what I need? How can I use it? And how will I be able to create steps?
Could someone please help me?
Thanks,
Krisztina
|
2 answers
![]()
You would need to post all the test scripts to the RQM as you have posted/created a new test case. Then you could update a given testcase with the list of related test script steps.
I recommend that you use the GIT repository at http://git.eclipse.org/c/lyo/org.eclipse.lyo.client.git/tree/org.eclipse.lyo.client.java.sample/src/main/java/org/eclipse/lyo/client/oslc/samples/RQMFormSample.java not the googlesource. The java class RQMFormSample.java also shows you how to update an existing artefact like a test case. Features demonstrated in the RQMFormSample
You should be able to post new test script artefacts by replacing testcase with testscript in the RQMFormSample. Find the reference implementation of the testscript artefact at http://git.eclipse.org/c/lyo/org.eclipse.lyo.client.git/tree/org.eclipse.lyo.client.java/src/main/java/org/eclipse/lyo/client/oslc/resources/TestScript.java .
Do you have any other questions, please contact me. Best regards, Jean-Luc Johnson, Airbus Group. |
![]()
Hi Krisztina,
First of all, the tutorial at https://jazz.net/library/LearnItem.jsp?href=content/docs/web-ui-programming/web-ui-todo-rest.html is too old and I would say it is probably out of date. I would not recommend this way of integration. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.