question

mallikarjunarao avatar image
mallikarjunarao asked mallikarjunarao edited

REST PUT operation not working

Updating few test-instance properties using in HP ALM REST PUT Method, i am able to do with other tools REST browser tools, but the PUT operation is not working with iTest and also without any status codes also. Please find below screen shot. ![alt text][1] [1]: /storage/temp/4078-itestputoperation.png
iTestHP QC ALMrest
itestputoperation.png (101.9 KiB)
2 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sandeepreddynv avatar image sandeepreddynv ♦ commented ·
In general, what output you would get when you use PUT with these headers. Is it possible to share the output content from other rest browser tools. It would help us to debug this issue more.
0 Likes 0 ·
mallikarjunarao avatar image mallikarjunarao commented ·
When i used PUT operation either it will return 200 or 404 response code, but iTest did not return any thing it return other than 0. When i was used other tools like Firefox Addon HTTP Requester it works as expected. Please find screen shot. ![alt text][1] [1]: /storage/temp/4082-httprequesterputoperation.png
0 Likes 0 ·

1 Answer

·
mallikarjunarao avatar image
mallikarjunarao answered mallikarjunarao edited
Hi, I found a work around to use PUT operation, Use HTTP PUT method lieu iTest REST Sample Code set xml { Passed } set headers [list "Cookie" $cookie] lappend headers [list "Accept" "application/xml"] lappend headers [list "Content-Type" "application/xml"] array set Headers $headers set token [::http::geturl "http://td-hpqc:8080//qcbin/rest/domains/test/projects/test/runs/385762" -query $xml -method PUT -headers [array get Headers]] Thanks http://tclscripting.blogspot.in/
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.