thucydides-webtests / thucydides

Thucydides is a tool that lets you use WebDriver-based unit or BDD tests to write more flexible and more reusable WebDriver-based tests, and also to generate documentation about your acceptance tests, including a narrative description of test, along with the corresponding screen shots, and also high-level summaries and aggregations of the test results
http:/www.wakaleo.com/thucydides
Other
261 stars 99 forks source link

UnsupportedDriverException when running test case in linux #163

Open Ashvinijai opened 6 years ago

Ashvinijai commented 6 years ago

OS: LINUX Selenium Version: 2.53.1 Browser: chrome 65 Chromrdriver: 2.37

While running the test cases in Windows agent, I got success but when running the same in Linux I get unsupported driver exception. I tried all the chrome driver compatibility with chrome browser but same error

Caused by: net.thucydides.core.webdriver.UnsupportedDriverException at HomeSteps.java:37 Caused by: net.thucydides.core.webdriver.UnsupportedDriverException at HomeSteps.java:37 Caused by: org.openqa.selenium.WebDriverException at HomeSteps.java:37

Dependencies in build.gradle:- compile group: 'org.seleniumhq.selenium', name: 'selenium-server', version:'2.53.1' compile group: 'net.serenity-bdd', name: 'serenity-core', version:'1.1.25-rc.5' compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version:'2.53.1' //compile group: 'org.slf4j', name: 'slf4j-simple', version:'1.7.7' compile group: 'net.serenity-bdd', name: 'serenity-junit', version: '1.2.3-rc.3' compile group: 'org.assertj', name: 'assertj-core', version:'1.7.0' compile group: 'com.googlecode.lambdaj', name: 'lambdaj', version:'2.3.3' compile group: 'org.scream3r', name: 'jssc', version:'2.8.0' compile group: 'org.apache.commons', name: 'commons-exec', version:'1.3' compile group: 'org.apache.commons', name: 'commons-lang3', version:'3.0' compile group: 'commons-io', name: 'commons-io', version:'2.4' compile group: 'commons-lang', name: 'commons-lang', version: '2.6' compile group: 'log4j', name: 'log4j', version:'1.2.17' compile group: 'com.thoughtworks.xstream', name: 'xstream', version: '1.4.9' compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1' compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version:'2.8.5' compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version:'2.8.5' compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version:'2.8.5' compile group: 'org.springframework', name: 'spring-core', version:'4.3.3.RELEASE' compile group: 'org.apache.cxf', name: 'cxf-rt-frontend-jaxws', version:'3.0.2' compile group: 'com.google.code.gson', name: 'gson', version: '2.6.2' compile group: 'com.google.guava', name: 'guava', version: '22.0' compile group: 'org.apache.cxf', name: 'cxf-rt-transports-http', version: '3.0.3' compile(group: 'nddsjava-natives', name: 'nddsjava-natives', version:'5.3.0.2',classifier:'natives-linux64bit') compile(group: 'nddsjava-natives', name: 'nddsjava-natives', version: '5.3.0.2',classifier:'natives-macosx64bit') compile(group: 'nddsjava-natives', name: 'nddsjava-natives', version: '5.3.0.2',classifier:'natives-windows64bit') compile group: 'org.apache.poi', name: 'poi', version: '3.9'

Why it is so that it worked in windows agent and not in linux?

wakaleo commented 6 years ago

Most likely a Selenium diver issue. Note that Thucydides was renamed Serenity four years ago so this code base is not maintained.

chiragghai commented 6 years ago

Hi @wakaleo I also faced the same issue. I tested with all the chrome drivers given in chromedriver.storage.googleapis.com one by one with chrome 65. But got unsupported driver exception all the time. Please help me out for the same.

wakaleo commented 6 years ago

@chiragghai as I mentioned, we don’t support this code base any more, so I am unable to help. This library is 4 years old, you should move to serenity