It's all about the answers!

Ask a question

How to create Test Script in a Test Case using OSLC ?


Vaibhav S (106354) | asked Feb 26 '18, 6:29 a.m.

Hi ,

I need to create Test Script in a Test Case using OSLC.

It should be created along with multiple steps and expected results.

Any leads would be helpful.

Thanks
Vaibhav

One answer



permanent link
abhishek gour (3812) | answered Feb 28 '18, 9:27 a.m.

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.

Your answer


Register or to post 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.