Error with OSLC Automation Adapter Creation
![]()
Elliot Morrison-Reed (20●5●9)
| asked Sep 26 '13, 8:50 a.m.
retagged Sep 27 '13, 2:25 p.m. by Lisa Caten (342●9●13)
Hello,
Edit: I am not sure why, but the capitalization is wrong, and extra semi-colons are added to the code in the pre-formatted block. Those are not in my code. I am working on interfacing an existing stand-alone automated test system with a new instance of Rational Quality Manager. The main idea is we should be able to attach scripts for our test system to individual Test Script (or Test Case) entries, and then automatically run them on our test server by manually triggering through RQM or through Test Schedules. From looking through the documents, it looks like the best way to accomplish this is to create an Automation Adapter on the test server that polls the RQM server for automation requests. I am attempting to follow the example outlined here: https://jazz.net/wiki/bin/view/Main/RQMTestAutomationAdapterAPI I am able to crawl through the OSLC Resources to the RQM Automation ServiceProvider and grab the URI for the Default creation factory for AutomationAdapter (steps 1-8). I then construct the following XML document: <?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:rqm_qm="http://jazz.net/ns/qm/rqm#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:oslc="http://open-services.net/ns/core#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rqm_qm:AutomationAdapter> <rdf:type rdf:resource="http://jazz.net/ns/qm/rqm#AutomationAdapter"/>This is being posted with the same session which I was using to crawl OSLC graph. I sent it with the following headers: 'Content-Type'='application/rdf+xml' 'OSLC-Core-Version'='2.0' 'accept'='application/rdf+xml'When I send this data I get a 400 Bad Request response, with the following content: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml-stylesheet type="text/xsl" href="https://ourserver.ourdomain.com:9443/qm/web/com.ibm.rqm.oslc.web/ui/internal/style/ErrorStyle.xsl"?> <rdf:RDF xmlns:jproc="http://jazz.net/xmlns/prod/jazz/process/1.0/" ...more namespaces...> <oslc:Error ns12:type="oslc:Error" xmlns:ns12="http://www.w3.org/2001/XMLSchema-instance">Unfortunately, there doesn't seem to be anything there at the moreInfo link, and I haven't been able to find much information about that error on the internet. Some IBM pages said that I should try again and then contact IBM software support. I though I would post here first to see if anybody has some insight. Thanks, Elliot |
Accepted answer
![]()
Paul Slauenwhite (8.4k●1●2)
| answered Sep 30 '13, 10:04 a.m.
FORUM MODERATOR / JAZZ DEVELOPER edited Sep 30 '13, 10:08 a.m.
Without the extra semicolons and the case issues corrected, your RDF/XML is valid using http://www.w3.org/RDF/Validator. However, your namespaces are incorrect.
![]() Elliot Morrison-Reed selected this answer as the correct answer
Comments Hi Paul,
This looks like you found the issue. I modified all of my rqm_qm namespaces to rqm_auto, and I am now getting a different error. However, this one I think is just an access right problem.
The strange thing is that the namespace declarations are pretty clear on the walkthrough. That should probably be fixed so other people don't get confused like me.
Do you know if there is an official source for the namespace declarations for each property?
The Rational Quality Manager Test Automation Adapter API Reference is the source, which is incorrect. We will correct this issue under RQM Test Automation Adapter API Reference contains incorrect name spaces. (96053). |
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.