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

Having an issue with the RQM Selenium Junit Adapter and the Gecko driver

 RQM version: 6.0.1

Java Version:1.8.0..211

I have an automated Junit test script that succeeds when I run it with the Chrome driver (version chromedriver_win32_v74 ) but fails with the Gecko driver (version  geckodriver-v0.24.0-win64 )

When I execute the test with the Gecko driver this is what I get:

test.HQ_PROD_RQM:login()
org.openqa.selenium.WebDriverException: 
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'HQSLW18030607', ip: '156.68.66.198', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_211'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=C:\Users\rmcbryde\AppData\Local\Temp\rust_mozprofile.i4j6c45p3Nqg, rotatable=false, moz:geckodriverVersion=0.24.0, timeouts={implicit=0.0, pageLoad=300000.0, script=30000.0}, pageLoadStrategy=normal, moz:headless=false, platform=ANY, moz:accessibilityChecks=false, moz:useNonSpecCompliantPointerOrigin=false, acceptInsecureCerts=false, browserVersion=60.8.0, platformVersion=10.0, moz:processID=13428.0, browserName=firefox, javascriptEnabled=true, platformName=windows_nt, moz:webdriverClick=true}]
Session ID: 752a9230-79e9-4517-9506-70833877949e
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:150)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:115)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:45)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
    at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:364)
    at org.openqa.selenium.remote.RemoteWebDriver$RemoteNavigation.to(RemoteWebDriver.java:945)
    at test.HQ_PROD_RQM.login(HQ_PROD_RQM.java:38)
    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.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
    at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
    at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
    at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
    at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
    at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
    at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
    at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
    at org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:29)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:109)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
    at com.ibm.rqm.adapter.commandline.JUnitLauncher.main(JUnitLauncher.java:122)

And this is what was contained in the .err file:

1563378315274 mozrunner::runner INFO Running command: "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" "-marionette" "-foreground" "-no-remote" "-profile" "C:\Users\rmcbryde\AppData\Local\Temp\rust_mozprofile.i4j6c45p3Nqg"
1563378316689 addons.xpi WARN disabling legacy extension {e3930b7e-c8e2-43f1-a598-61e7ae2c1d70}
1563378316690 addons.xpi WARN disabling legacy extension {e3930b7e-c8e2-43f1-a598-61e7ae2c1d70}
1563378316690 addons.xpi WARN disabling legacy extension {e3930b7e-c8e2-43f1-a598-61e7ae2c1d70}
1563378319926 Marionette INFO Listening on port 64824
Jul 17, 2019 11:45:20 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C

0 votes



One answer

Permanent link

Hello Ryan, 

Just a quick question, Are you able get your selenium tests run separately without RQM's Selenium Junit Adapter? 
It looks to be a case of Firefox version mismatch with Gecko Driver you are using. You may refer to following link to see their version match compatibility - 

Thanks,
Abhishek

0 votes

Comments

 Hi Abishek,


Thank you for your response.  I can successfully run the test from my Eclipse workspace, using the FF driver.  I have attached the output because it seems as although the test runs and succeeds, that there are some errors:

 

1564396273165 mozrunner::runner INFO Running command: "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" "-marionette" "-foreground" "-no-remote" "-profile" "C:\Users\rmcbryde\AppData\Local\Temp\rust_mozprofile.wmHTx65eUvk1"
1564396274102 addons.xpi WARN disabling legacy extension {e3930b7e-c8e2-43f1-a598-61e7ae2c1d70}
1564396274103 addons.xpi WARN disabling legacy extension {e3930b7e-c8e2-43f1-a598-61e7ae2c1d70}
1564396274103 addons.xpi WARN disabling legacy extension {e3930b7e-c8e2-43f1-a598-61e7ae2c1d70}

 1564396276286 Marionette INFO Listening on port 55557

1564396276430 Marionette WARN TLS certificate errors will be ignored for this session
Jul 29, 2019 6:31:16 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C

 My Queries

Select My Queries
Execute Query 44326
The actual value is:Query: 44326 query - Change and Configuration Management
Running Assert Equals
The test has successfully Passed
[Child 22540, Chrome_ChildThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 332
[Child 22540, Chrome_ChildThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 332
*** UTM:SVC TimerManager:registerTimer called after profile-before-change notification. Ignoring timer registration for id: telemetry_modules_ping

###!!! [Child][MessageChannel::SendAndWait] Error: Channel error: cannot send/recv 

 From the chart:

I am using geckodriver-v0.24.0-win64 and I as far as I can tell: selenium-java-3.4.0

showing 5 of 6 show 1 more comments

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
× 10,938

Question asked: Jul 19 '19, 10:26 a.m.

Question was seen: 1,705 times

Last updated: Jul 29 '19, 7:52 a.m.

Confirmation Cancel Confirm