It's all about the answers!

Ask a question

Error while running a Testcase in RQM-Selenium Integration in RQM 6.0


R K Srinivas (111) | asked Dec 31 '15, 5:10 a.m.
  Hi All,

I am trying to integrate Selenium (Automation) with RQM using RQMJunitSelenium Adapter.

Here the problem is, when I created a Runnable Jar file using eclipse and tested it on CMD, it is working fine but when I am using the same Jar file in a test script in RQM and linked it to a test case and tried running from RQM using Type (JUnit Selenium), it is throwing a following error.

Exitcode: 0 on JUnitSelenium adapter CMD

2 Errors in RQM server:

Error 1:

com.continuum.test.Continuum:ReadUtilFile() java.lang.ExceptionInInitializerError at org.openqa.selenium.remote.internal.HttpClientFactory.getClientConnectionManager(HttpClientFactory.java:62) at org.openqa.selenium.remote.internal.HttpClientFactory. (HttpClientFactory.java:54) at org.openqa.selenium.remote.HttpCommandExecutor. (HttpCommandExecutor.java:99) at org.openqa.selenium.remote.HttpCommandExecutor. (HttpCommandExecutor.java:82) at org.openqa.selenium.remote.RemoteWebDriver. (RemoteWebDriver.java:153) at com.continuum.test.Continuum.bcellAction(Continuum.java:934) at com.continuum.test.Continuum.ExecKeywordScript(Continuum.java:356) at com.continuum.test.Continuum.FindExecTestscript(Continuum.java:252) at com.continuum.test.Continuum.ReadUtilFile(Continuum.java:206) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at org.junit.runner.JUnitCore.run(JUnitCore.java:115) at org.junit.runner.JUnitCore.run(JUnitCore.java:105) at org.junit.runner.JUnitCore.run(JUnitCore.java:94) at com.ibm.rqm.adapter.commandline.JUnitLauncher.main(JUnitLauncher.java:116) Caused by: java.lang.RuntimeException: Stub! at org.apache.http.conn.ssl.AbstractVerifier. (AbstractVerifier.java:5) at org.apache.http.conn.ssl.AllowAllHostnameVerifier. (AllowAllHostnameVerifier.java:5) at org.apache.http.conn.ssl.SSLConnectionSocketFactory. (SSLConnectionSocketFactory.java:124) ... 40 more


Error 2:

com.continuum.test.Continuum:ReadUtilFile() java.lang.NullPointerException at com.continuum.test.Continuum.close(Continuum.java:680) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at org.junit.runner.JUnitCore.run(JUnitCore.java:115) at org.junit.runner.JUnitCore.run(JUnitCore.java:105) at org.junit.runner.JUnitCore.run(JUnitCore.java:94) at com.ibm.rqm.adapter.commandline.JUnitLauncher.main(JUnitLauncher.java:116)


Note: Followed the IBM works article for creating an RQM-Selenium integrating adapter. 
It is reading only the print statements from the script developed.

Kindly help me in resolving the issue. 

Thanks & Regards
R K Srinivas 

One answer



permanent link
Paul Slauenwhite (8.4k12) | answered Jan 13 '16, 12:53 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
This appears to be a classpath and/or test case issue.  Did you specify all your dependencies in the com.ibm.rqm.selenium.seleniumClasspath (see selenium.properties)? 

I would suggest creating a simple 'Hello World' Selenium test to verify the RQM test artifacts/execution before creating a more complex Selenium test

Your answer


Register or to post your answer.