Received HTTP 501 error when trying to create test cases using RQM URL Utility
shweta ranaware (37●1●10●53)
| asked Oct 12 '17, 3:53 a.m.
converted to question Oct 12 '17, 3:58 a.m. by Donald Nong (14.5k●6●14) 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 :
-command POST -user myadmin -password password -filepath D:\TCER.xml -url "https://d-9392:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/RQM%20Exploration/testcaseexecutionrecord/testcaseexecutionrecord_demo"
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.
|
Accepted answer
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.
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
-command PUT -user myadmin -password password -filepath D:\TestCase.xml -url "https://d-9392:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/RQM%20Exploration/testcase/testcase_demo
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
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.
Comments
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.
Hi Donald,