How to create Test Script in a Test Case using OSLC ?
One answer
Hi Vaibhav,
Creating test script in a test case would involve 3 steps
1. Create a Test Script ( along with steps ).
2. Create a Test Case.
3. Add Test Script to Test Case.
Following blog would help you to understand basic flow in working with RQM resources via OSLC.
Look for VersionedExecutionScript ( Test Scripts), ExecutionElement2 ( Steps) example to fetch these data. the same responses could be used to create these.
If you do a get on "oslc:ServiceProvider" and you would get service.xml response. From that XML you find
oslc:creationFactory for Test Script, but not for Test Script Step.
As per https://jazz.net/wiki/bin/view/Main/RqmOslcQmV2Api#Test_Script_Step it is clear that you can query and update the existing step, but may not be able to create it via OSLC.
How ever, you have oslc:creationDialog and you can use this link for getting UI dialog to create new test script along with steps ( but that is manual process ).
Otherwise - you may choose to use Reportable REST API for creating Scripts and Steps -
You may then try fetching created test scripts and update them in Test Case the way you want.