Quality Center / ALM Practitioners Forum
cancel

ALM Rest API posting design steps

Highlighted
tony999
Acclaimed Contributor

ALM Rest API posting design steps

Hi,

I am trying to add tests and design steps using the rest API.

I post the test ok but when I try and post the design-step it fails with a 500 error.  

I am using ALM version 12

I am using the following URL

http://hpqc.perceptive.com/qcbin/rest/domains/{domain}/projects/{project}/design-steps

I try posting the following:

string AuthenticationXML1 = @"<?xml version=""1.0"" encoding=""UTF-8"" standalone=""yes""?>
<Entity Type=""design-step"">
<Fields>
<Field Name=""attachment""><Value></Value></Field>
<Field Name=""description""><Value>test</Value></Field>
<Field Name=""user-02""><Value>test</Value></Field>
<Field Name=""expected""><Value>test</Value></Field>
<Field Name=""has-params""><Value></Value></Field>
<Field Name=""link-test""><Value>1761</Value></Field>
<Field Name=""user-01""><Value>test</Value></Field>
<Field Name=""name""><Value>blar</Value></Field>
<Field Name=""step-order""><Value>4</Value></Field>
<Field Name=""user-03""><Value>test</Value></Field>
<Field Name=""parent-id""><Value>1761</Value></Field>
</Fields>
<RelatedEntities/>
</Entity>";

Any thoughts?

//Add this to "OnDomLoad" event