How to link steps to testscript using RQM Client
I have converted RQM testscript schema to .NET class. In which i am able to save Testscript in RQM 4.0 but issue while saving Steps for Testscript. Its throwing Bad request (400 error). Code for step is : RQMSchema.step step = new RQMSchema.step(); step.type = "execution"; step.name = "Description"; step.title = "Hello"; "step.expectedresult" is having property as Any of type list of "System.Xml.Xmlnode" and not sure how to store string content in Xmlnode. Other approach i followed as Save testscript then update step to same testscript. still no luck. Please help.
|
One answer
Hi Nilesh,
The easiest approach is to start with a simple known working example. Create a test script in RQM with 1 step. Use a tool like Poster to do a GET of that script, and inspect the XML. Make a small change, and PUT the script back, ensuring it will work correctly. Now take what you've learned from a simple round-tripping exercise and apply it to your custom code. Hope that helps. Comments
Nilesh Bawalekar
commented Jan 14 '15, 4:33 a.m.
I tried but no luck. On Get script using poster step shown as :
<ns2:steps>
and when i post testscript in RQM my steps looks inside testscript tag like :
Nilesh Bawalekar
commented Jan 14 '15, 4:39 a.m.
and when i post testscript in RQM my steps looks inside testscript tag like :
<steps><step type="execution" xmlns="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/">
Without steps its getting save in RQM.
|
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.