It's all about the answers!

Ask a question

RQM Junit Selenium Adapter Fails to Upload the results


Jagadish R Rao (10612111) | asked Aug 11 '14, 5:36 a.m.
We have RQM 4.0.6 server and " RQM-Extras-JUnitSeleniumAdapter-4.0.6.zip " adapter installed on the test client machines, the test gets executed properly but once the test is over the results are not fed back to RQM , there is error thrown by adapter

Monitor Progress: [C:\Users\ADMINI~1\AppData\Local\Temp\1\QMAdapter8739368612339
399648.execprop]
Progress: 0: Executing test: testReturn(com.ibm.test.selenium.RunTest)
ExitCode: 0
Failed to log an execution complete with the server: Failed to send data
com.ibm.rqm.adapter.library.data.AdapterException: Failed to send data
        at com.ibm.rqm.adapter.library.data.NewRequester.internalUploadData(NewRequester.java:1558)
        at com.ibm.rqm.adapter.library.data.NewRequester.postData(NewRequester.java:1529)
        at com.ibm.rqm.adapter.library.data.NewRequester.internalCreateResultWithElements(NewRequester.java:2312)
        at com.ibm.rqm.adapter.library.data.NewRequester.createResultWithElements(NewRequester.java:1956)
        at com.ibm.rqm.adapter.commandline.CommandLineExecutionThread.run(CommandLineExecutionThread.java:449)
Caused by:
com.ibm.rqm.integration.client.clientlib.RQMProtocolException: POST[400] : <?xml
 version="1.0" encoding="UTF-8" standalone="yes"?><ns4:Error xmlns:ns10="http://
jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns11="http://jazz.net/xmlns/a
lm/qm/qmadapter/task/v0.1" xmlns:ns12="http://jazz.net/xmlns/alm/qm/qmadapter/v0
.1" xmlns:ns13="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:
ns14="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns16="http://jazz.ne
t/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns17="http://www.w3.org/1999/XSL/Transform
" xmlns:ns1="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns2="http://jazz
.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns3="http://schema.ibm.com/ve
ga/2008/" xmlns:ns4="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns5="http://jazz.
net/xmlns/alm/v0.1/" xmlns:ns6="http://purl.org/dc/elements/1.1/" xmlns:ns7="htt
p://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns8="http://purl.org/dc/terms/"
 xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/"><ns4:statusCode>400</ns
4:statusCode><ns4:message>The uploaded content does not consist of well-formed X
ML or does not match the XML schema for executionresult
</ns4:message><ns4:trace>
javax.xml.bind.UnmarshalException

I see 2 errors 400 POST Error and the message "well formed XML" this looks like mismatch in rest service to the adapter .. but not sure ..

I have disabled all the advisors for save test result .. so advisors are not playing any role .

One answer



permanent link
Paul Slauenwhite (8.4k12) | answered Aug 11 '14, 9:15 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Please open a RQM defect and include the adapter/RQM logs and any relevant screen captures.  In addition, restart the adapter with DEBUG logging enabled (see below), rerun the scenario, and include the generated log.

To enable DEBUG loggin, update the following logger levels in <adapter installation directory>/log4j.properties:

log4j.logger.com.ibm.rqm.adapter.library=DEBUG
log4j.logger.com.ibm.rqm.adapter.commandline=DEBUG
log4j.logger.com.ibm.rqm.integration.client.clientlib=DEBUG

Comments
Jagadish R Rao commented Aug 11 '14, 12:15 p.m.

Hi Paul,

Thanks I have raised the defect

 https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=120856

I have attached the logs with DEBUG enabled .

Thanks & Regards
Jagadish


KARPAGAVALLI SWAMINATHAN commented Aug 14 '14, 1:55 a.m.

Hi Paul,


Actually it was working fine till July 10th 2014 and JSA was updating the results back to RQM properly after which we encountered this issue. What caused / introduced this issue now - any thoughts ? 

Thanks in Advance ! 
Anitha 


Paul Slauenwhite commented Aug 14 '14, 8:01 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Hi Anitha,

Not sure what changed on 7/10/14.  Did you upgrade your RQM server and/or adapter? 

According to RQM - Selenium Junit Adapter Fails to upload the results back to server (120856), this issue was occurring because the project area contains ampersand (&).  As such, a work-around would be to create a project area without an ampersand (&).  Note, this defect has been fixed in RQM 5.0.2.  If you require the fix to be included in an iFix release, please open a PMR.

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.