It's all about the answers!

Ask a question

How to link steps to testscript using RQM Client


Nilesh Bawalekar (221117) | asked Jan 08 '15, 7:45 a.m.

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



permanent link
John Nason (2.4k1012) | answered Jan 08 '15, 5:34 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
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>
<ns9:step type="execution" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/">
<ns9:name>sdf</ns9:name>
<ns9:title>sdf</ns9:title>
<ns9:description>sdf</ns9:description>
<ns9:expectedResult>fds</ns9:expectedResult>
</ns9:step></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/">
<name>S1</name>
<title>S2</title>
<description>S111</description>
<expectedResult>S1123</expectedResult>
<link /></step></steps>

Without steps its getting save in RQM.

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.