Hi,
I'm trying to create a run entity by the api, I look at the documentation and do the same
for defect entity creating- there is no problem - the defect is created - status 201 is returned.
for run entity creating- not working
input :
"POST"
xml = "<Entity Type=\"run\">" +
"<Field Name=\"cycle-id\"><Value>2411(correct name)</Value></Field>" +
"<Field Name=\"name\"><Value>Run_7-4_11-55-33(some random name)</Value></Field>" +
"<Field Name=\"test-id\"><Value>6891(correct name)</Value></Field>" +
"<Field Name=\"testcycl-id\"><Value>11192(correct name - from the returned data of thr run or a new number)</Value></Field>" +
"<Field Name=\"owner\"><Value>rely(correct name)</Value></Field>" +
"<Field Name=\"status\"><Value>Failed(correct value)</Value></Field>" +
"</Entity>";
Properties
"Content-Type","application/xml"
"Accept","application/xml"
the cookie is inside
http://"+ALMServer+"/qcbin/rest/domains/"+DOMAIN_NAME+"/projects/"+PROJECT_NAME+"/"+runs
output :
Internal Server Error
500
{null=[HTTP/1.1 500 Internal Server Error], Date=[Thu, 04 Jul 2013 12:26:45 GMT], Transfer-Encoding=[chunked], Connection=[close], Content-Type=[application/xml], X-Powered-By=[Servlet 2.5; JBoss-5.0/JBossWeb-2.1], Server=[Apache-Coyote/1.1]}
if I add HTTP/1.1 to the url the answer is :
HTTP Version Not Supported
505
{null=[HTTP/1.1 505 HTTP Version Not Supported], Date=[Thu, 04 Jul 2013 12:33:48 GMT], Connection=[close], Server=[Apache-Coyote/1.1]}
Does somebody knows what should I do to create a new run inside of existing test-set? Is it possible?
Thanks,
Or