How to link steps to testscript using RQM Client
![](http://jazz.net/_images/myphoto/bf8420f568eadc8d1cf3061e89635084.jpg)
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
![](http://jazz.net/_images/myphoto/bf8420f568eadc8d1cf3061e89635084.jpg)
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
![](http://jazz.net/_images/myphoto/bf8420f568eadc8d1cf3061e89635084.jpg)
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 :
![](http://jazz.net/_images/myphoto/bf8420f568eadc8d1cf3061e89635084.jpg)
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.