maven - Getting unable to discover open pages. Can't run my test suite from jenkins in chrome browser -


i'm getting stack trace.

default logging level set error loping  strbrowsertype chrome starting chromedriver (v2.9.248315) on port 42027 tests run: 32, failures: 1, errors: 0, skipped: 31, time elapsed: 67.337 sec <<< failure! - in testsuite setupsuite(com.ambab.carworkz.testcases.serviceestimatortesttc)  time elapsed: 66.668 sec  <<< failure! org.openqa.selenium.webdriverexception:  unknown error: unable discover open pages   (driver info: chromedriver=2.9.248315,platform=windows nt 6.1 sp1 x86_64) (warning: server did not provide stacktrace information) command duration or timeout: 61.06 seconds build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' system info: host: 'rober-qa', ip: '192.168.0.70', os.name: 'windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_91' driver info: org.openqa.selenium.chrome.chromedriver 

results:

failed tests:    serviceestimatortesttc>base.setupsuite:114 » webdriver unknown error: unable t...  tests run: 32, failures: 1, errors: 0, skipped: 31  [error] there test failures. 

i'm running test suite jenkins in chrome browser time when i'm facing issue. if directly run suite eclipse ide runs fine. when run same test suite in firefox runs fine.

i've installed latest version of chrome, , chrome driver. running jenkins job maven.

tried using no-sandbox changes in chrome browser setting of automatic detect setting. jenkins i'm running job on master , there no slave. tried every possible solution regarding problem. if more solution there please let me know.

i've added stuff , solved in case. there may problem user running jenkins (it should set admin)

chromeoptions options = new chromeoptions(); options.adduserprofilepreference("download.default_directory", downloadspath); options.setloggingpreference(logtype.browser, loglevel.severe); options.addarguments("ignore-certificate-errors"); options.addarguments("--allow-running-insecure-content"); options.addarguments("test-type"); options.addarguments("start-maximized"); options.addarguments("--disable-extensions"); options.addarguments("no-sandbox"); var chromeservice = chromedriverservice.createdefaultservice(); chromeservice.hidecommandpromptwindow = true; instance = new chromedriver(chromeservice, options, timespan.fromseconds(200));


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -