vmi / selenese-runner-java

Selenium IDE native format (selenese and side) interpreter.
Other
140 stars 82 forks source link

Running .side projects #284

Open Redirts opened 5 years ago

Redirts commented 5 years ago

Hi,

On the same machine where I am able to run old selsuite files fine with selenese-runner I can't seem to be able to run the new .side projects.

java -Dwebdriver.gecko.driver=geckodriver -jar ./selenese-runner.jar --strict-exit-code --headless --proxy proxy.xxx.com:1234 --html-result ./results --screenshot-on-fail ./shots/ ./tests/archive/vv.side [2018-11-21 15:24:11.348 Z] [INFO] Start: Selenese Runner 3.19.2 [2018-11-21 15:24:11.999 Z] [INFO] No capabilities. 1542813852829 mozrunner::runner INFO Running command: "/bin/firefox" "-marionette" "-headless" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile.5XiITKyji3ib" You are running in headless mode. 1542813854035 Marionette INFO Enabled via --marionette 1542813855017 Marionette INFO Listening on port 36776 1542813855093 Marionette WARN TLS certificate errors will be ignored for this session 1542813855099 Marionette INFO Proxy settings initialised: {"proxyType":"manual","ftpProxy":"proxy.xxx.com:1234","httpProxy":"proxy.xxx.com:1234","sslProxy":"proxy.xxx.com:1234"} 1542813855144 Marionette DEBUG Register listener.js for window 2147483649 [2018-11-21 15:24:15.185 Z] [INFO] Detected dialect: W3C [2018-11-21 15:24:15.198 Z] [INFO] Initial window size: system default [2018-11-21 15:24:15.198 Z] [INFO] Initialized: FirefoxDriver [2018-11-21 15:24:15.233 Z] [INFO] Screenshot on fail directory: ./shots/ [2018-11-21 15:24:15.233 Z] [INFO] HTML result directory: ./resultados [2018-11-21 15:24:15.240 Z] [INFO] Timeout: 30000 ms [2018-11-21 15:24:15.509 Z] [INFO] Start: TestProject[vv] (tests/archive/vv.side) [2018-11-21 15:24:15.517 Z] [INFO] Existing driver found. [2018-11-21 15:24:15.524 Z] [INFO] Current speed: 0 ms/command [2018-11-21 15:24:15.524 Z] [INFO] Start: TestSuite[Default Suite] (tests/archive/vv.side) [2018-11-21 15:24:15.526 Z] [INFO] Existing driver found. [2018-11-21 15:24:15.532 Z] [INFO] Current speed: 0 ms/command [2018-11-21 15:24:15.533 Z] [INFO] End(0.000sec): TestSuite[Default Suite] (tests/archive/vv.side) [2018-11-21 15:24:15.533 Z] [INFO] End(0.000sec): TestProject[vv] (tests/archive/vv.side) [2018-11-21 15:24:15.583 Z] [INFO] Generated HTML result: ./results/TEST-vv_0001_Default Suite.html [2018-11-21 15:24:15.586 Z] [INFO] Generated HTML result: ./results/TEST-vv.html [2018-11-21 15:24:15.609 Z] [INFO] Generated index of HTML results: ./results/index.html [2018-11-21 15:24:15.609 Z] [INFO] Exit code: 5 1542813855629 addons.xpi WARN Exception running bootstrap method shutdown on activity-stream@mozilla.org: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIObserverService.removeObserver]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: resource://activity-stream/lib/SnippetsFeed.jsm :: uninit :: line 123" data: no] Stack trace: uninit()@resource://activity-stream/lib/SnippetsFeed.jsm:123 < onAction()@resource://activity-stream/lib/SnippetsFeed.jsm:138 < _middleware/</<()@resource://activity-stream/lib/Store.jsm:52 < Store/this[method]()@resource://activity-stream/lib/Store.jsm:31 < uninit()@resource://activity-stream/lib/Store.jsm:151 < uninit()@resource://activity-stream/lib/ActivityStream.jsm:266 < uninit()@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///usr/local/firefox-55.0.1/browser/features/activity-stream@mozilla.org.xpi!/bootstrap.js:80 < shutdown()@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///usr/local/firefox-55.0.1/browser/features/activity-stream@mozilla.org.xpi!/bootstrap.js:196 < callBootstrapMethod()@resource://gre/modules/addons/XPIProvider.jsm:4509 < observe()@resource://gre/modules/addons/XPIProvider.jsm:2281 < GeckoDriver.prototype.quit()@driver.js:3307 < despatch()@server.js:553 < execute()@server.js:527 < onPacket/<()@server.js:502 < onPacket()@server.js:501 < _onJSONObjectReady/<()@transport.js:501 UTM:SVC TimerManager:registerTimer called after profile-before-change notification. Ignoring timer registration for id: telemetry_modules_ping [2018-11-21 15:24:16.113 Z] [INFO] Quit: FirefoxDriver

The Warning at the end does not seem to be a problem (could be some bug on this version of FF) but the fact that I get Exit code 5 (UNEXECUTED) is what is puzzling me.

The HTML report says that no test steps were run but this .side project was recorded and played back fine on Selenium IDE (new one) on Chrome.

I cannot figure out what I am doing wrong. Can anyone help me understand what is amiss?

Some additional notes that may be important:

  1. As you see I am using a proxy
  2. I am calling with headless mode on
  3. The geckodriver I am using is the latest one (0.23.0)
  4. I am running the latest version of selenese-runner (3.19.2)
  5. .side file is in attachment. Note I: I have changed the username and password for security reasons but it should at least execute until then. Note II: I also changed the extension to .log to be able to upload it here.

Thanks vv.log