It's all about the answers!

Ask a question

Received HTTP 501 error when trying to create test cases using RQM URL Utility


shweta ranaware (3711053) | asked Oct 12 '17, 3:53 a.m.
converted to question Oct 12 '17, 3:58 a.m. by Donald Nong (14.5k614)

Hi Don,


Sorry for silly mistake...appreciate your efforts, now I can GET and DELETE requests successfully. But I want to create testexecutionrecord in rqm but getting 501 method not found error.
Following is my command :


Following is xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rqmTestResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xyz.com">
    <description>This is Test Result Description1</description>
    <rqmTCERId>678</rqmTCERId>
    <rqmTestResultId>1145</rqmTestResultId>
    <status>Failed</status>
    <summary>1</summary>
    <vstTestResultId>1234</vstTestResultId>
</rqmTestResult>

Why I am getting 501 server response? Please help me for same. 


Comments
Donald Nong commented Oct 12 '17, 4:00 a.m.

The forum is in a Q&A format, so always raise a new question in a new post, not adding it as an "answer" to the old post.


shweta ranaware commented Oct 12 '17, 4:31 a.m.

 Hi Donald,


I am new user of Jazz forum. I will take care in of same in future

Accepted answer


permanent link
Donald Nong (14.5k614) | answered Oct 12 '17, 4:01 a.m.

HTTP 501 means "not implemented", which means that you POST to the wrong URL. Read the API reference carefully before you try randomly by guesswork.
https://jazz.net/wiki/bin/view/Main/RqmApi

shweta ranaware selected this answer as the correct answer

Comments
shweta ranaware commented Oct 12 '17, 4:35 a.m.

 Hi Donald,


I use "/testcaseexecutionrecord" in url to create artifact in RQM. Can you suggest which one is correct path for "test case result" and "test case exection record" which I can use in my url. I think I write wrong path in url i.e "testcaseexecutionrecord"

Thanks,
Best Regards,
Rishikesh


Donald Nong commented Oct 12 '17, 5:03 a.m.

They are /executionresult and /executionworkitem respectively. Read the document please.


shweta ranaware commented Oct 12 '17, 6:04 a.m.

 Hi Donald,

Thanks for your valuable reply I am trying to create new test case in rqm using PUT method but getting 400 server error. Following is my command


I pass xml which I previously got using GET request, just modify some parameters but not ablre to create new test case.


Donald Nong commented Oct 16 '17, 2:29 a.m.

I have answered your other post. Put it in another way, if you send a PUT request to an existing artifact, you are updating it.

Your answer


Register or 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.