Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Junit test case execution stucks at 99%

We are using RQM 4.0.2. We are following the steps as mentioned in article https://jazz.net/library/article/755.

We created the same Junit script and test case/test script. When we try to run the test case, it runs but gets stuck at 99%. I kept it like that for an hour and still the status did not change. Running multiple times did not have any change. Checked the command line adapter log and got following errors:

--------------------------------------

16:00:59,491 [Thread-2] ERROR com.ibm.rqm.adapter.commandline                    - 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:1547)
 at com.ibm.rqm.adapter.library.data.NewRequester.postData(NewRequester.java:1518)
 at com.ibm.rqm.adapter.library.data.NewRequester.internalCreateResult(NewRequester.java:1312)
 at com.ibm.rqm.adapter.library.data.NewRequester.createResult(NewRequester.java:1000)
 at com.ibm.rqm.adapter.commandline.CommandLineExecutionThread.run(CommandLineExecutionThread.java:415)
Caused by: com.ibm.rqm.integration.client.clientlib.RQMProtocolException: POST[500] : <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:Error xmlns:ns10="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns11="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns12="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns13="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns14="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns16="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns17="http://www.w3.org/1999/XSL/Transform" xmlns:ns1="http://schema.ibm.com/vega/2008/" xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns3="http://purl.org/dc/elements/1.1/" xmlns:ns4="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns5="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns6="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns7="http://purl.org/dc/terms/" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns9="

Hi Amit,

Do you have the advisor "Require Actual Result For Step" enabled for Test case results?

Thanks and regards,
Deepa
Amit Garg selected this answer as the correct answer

0 votes

Comments

Thanks Deepa, I guess that was the issue. However, my testcase failed with following errors:

===================================

C:\RQM Adapter\RQMCommandLineAdapter>set DATASTORE_DIR=C:\junit

C:\RQM Adapter\RQMCommandLineAdapter>set CLASSPATH=C:\junit\junit.jar;C:\junit 

C:\RQM Adapter\RQMCommandLineAdapter>cd C:\junit 

C:\junit>java org.junit.runner.JUnitCore TestHelloWorld 
JUnit version 4.5
Could not find class: TestHelloWorld

Time: 0.016

OK (0 tests)
============================================
I guess the files or the code defined is wrong.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 23 '13, 9:04 a.m.

Question was seen: 3,862 times

Last updated: May 02 '13, 4:41 a.m.

Confirmation Cancel Confirm