Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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

0 votes



One answer

Permanent link

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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,951

Question asked: Feb 26 '18, 6:29 a.m.

Question was seen: 4,431 times

Last updated: Feb 28 '18, 9:27 a.m.

Confirmation Cancel Confirm