It's all about the answers!

Ask a question

Looking for example of Category creation using REST API


David Hanslip (23124448) | asked Sep 06 '11, 2:12 a.m.
Hi.

I need to create parent/child category types and values for test cases. Some of the child category types have hundreds of values.

I have RQMUrlUtility 3.0.1 and have been able to use it to retrieve test plan and test case information. I have also looked over the RQMUrlUtility documentation and XML Schema Documentation but the latter in particular is overwhelming and pretty meaningless to me.

Questions:

1. How do I GET and PUT test case category types, dependencies, terms and values? Scope needs to be specified but the RQMUrlUtility documentation and examples don't help me.

2. I've seen mention of RQMUrlUtility source but can't find it. Where can I download it please?

Thanks.

31 answers



permanent link
Wayne Belshaw (14887) | answered Dec 07 '11, 10:50 a.m.
Hello Paul,

The current RQM API documentation returns a subset of possible return codes. While it may not be practical to include all codes, could we get an update on code=303 (seems to be related to duplicates) and others that may be of interest for those of us moving XML files back and forth?

Thank you!

Response Code Meaning
200 OK
201 Resource Created
400 Bad Request
403 Forbidden (unauthorized)
404 Not Found
406 Not Acceptable
409 Conflict
413 Request Entity Too Large
500 Internal Server Error

permanent link
Paul Slauenwhite (8.4k12) | answered Dec 08 '11, 7:27 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Sure, see https://jazz.net/wiki/bin/view/Main/RqmApi#Error_Diagnostic_response_codes.

permanent link
Wayne Belshaw (14887) | answered Dec 08 '11, 7:51 a.m.
Sure, see https://jazz.net/wiki/bin/view/Main/RqmApi#Error_Diagnostic_response_codes.


Thanks Paul. That is more convenient now. In the actual context of PUTing a category, what are some "common" meanings of the 303 code as an RQMAPI user? The description is not always easy to tie back to my specific operation so I can properly debug things. It "reads" like an attempt to duplicate in some manner but not sure...

Thanks.

"The HTTP response status code 303 See Other is the correct manner in which to redirect web applications to a new URI, particularly after an HTTP POST has been performed.

This response indicates that the correct response can be found under a different URI and should be retrieved using a GET method. The specified URI is not a substitute reference for the original resource.

This status code should be used with the location header."

permanent link
Paul Slauenwhite (8.4k12) | answered Dec 08 '11, 8:03 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
A 303 indicates a redirect to another resource. In the context of a PUT/POST, it the ID/URL of a duplicate resource.

permanent link
Wayne Belshaw (14887) | answered Dec 16 '11, 9:30 a.m.
Hi Paul,
Are there any limitations with simultaneous use of the DOS RQMUrlUtility (via threading) that should cause any issues with the API when doing PUTs to a project (hundreds of test cases, for example)?

I'd like to know in advance before coding this.
Thanks!

permanent link
Paul Slauenwhite (8.4k12) | answered Dec 16 '11, 9:54 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
None come to mind with the URL Utility code. However, it has not been tested in a multi-threaded run-time. In addition, you may overload your RQM server, making many parallel HTTP requests. I would suggest sticking with the current design and invoke the HTTP requests in serial order.

permanent link
Wayne Belshaw (14887) | answered Dec 16 '11, 10:00 a.m.
None come to mind with the URL Utility code. However, it has not been tested in a multi-threaded run-time. In addition, you may overload your RQM server, making many parallel HTTP requests. I would suggest sticking with the current design and invoke the HTTP requests in serial order.


Thanks Paul. It sounds like the RQM API does block, i.e., it only processes one HTTP request from any source at a time. Is that accurate? If so, there would be no real advantage to threading regardless except to fill a pipe up into the server. True?

permanent link
Paul Slauenwhite (8.4k12) | answered Dec 16 '11, 10:03 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Correct.

permanent link
Andrew Trobec (49713144139) | answered Dec 16 '11, 10:18 a.m.
Hi,

I've been following this thread trying to figure out how to add artifacts.

If I take the "Testsuite with testcases that have testscripts" example for RQMWordExcelImporter and export it to file instead of to repository, I end up with a set of folders and XML artifacts. I am busy trying to use the RQMURLUtility now to PUT them on the server, but I'm not sure what order to do it in.

When I start with a Test Script, it works. Then I try the Test Case that should be linked to the Test Script, but it only adds; it does not link it.

Is this the correct approach?

Thank you and regards,

Andrew

permanent link
Andrew Trobec (49713144139) | answered Dec 16 '11, 10:20 a.m.
Could you guys maybe e-mail the template that you are working with that you are able to use successfully?

Thanks and regards,

Andrew

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.