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

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.

0 votes



One answer

Permanent link
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.

0 votes

Comments

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 :

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 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,954

Question asked: Jan 08 '15, 7:45 a.m.

Question was seen: 3,577 times

Last updated: Jan 14 '15, 4:39 a.m.

Confirmation Cancel Confirm