RQM Junit Selenium Adapter Fails to Upload the results
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 .
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
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
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