-
-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting null pointer exception when running in jenkins #528
Comments
the stack traceTEST STARTED: Submitting login form with user and passwordGiven the user is on the login form page (FAILED) java.lang.NullPointerException TEST FAILED WITH ERROR: Submitting login form with user and password[pool-1-thread-1] ERROR net.serenitybdd.core.Serenity - TEST FAILED AT STEP Open login page |
Can you post the code where the null pointer is happening? |
A request. I had to switch back to pure selenium java code to find correct jar compatible $ firefox -version This page helped me do this. Pure java selenium code with Cucumber or Jbehave is working but we like the report display feature of Thanks. |
This looks like a problem in the LoginScenarioSteps class (line 25) - what does the code do on this line? |
Closing due to lack of activity. |
Your help or direction is appreciated to solving the issue.
The steps to generate the issue is to run "mvn clean verify"
When maven is run from command line it seems to work okay.
when maven is run from jenkins it is not working.
Thanks.
serenity.properties
Define the default driver
webdriver.driver=phantomjs
phantom.binary.path=/usr/bin/phantomjs
webdriver.provided.type=PhantomJSDriver
phantomjs.binary.path=./phantomjs
phantomjs.binary.path=.\phantomjs.exe
#29
webdriver.driver=firefox
webdriver.firefox.bin=C:\Program Files (x86)\Mozilla Firefox\firefox.exe
webdriver.driver=iexplorer
webdriver.ie.driver=C:\Development\Tools\IEDriverServer.exe
webdriver.driver=chrome
webdriver.chrome.driver=C:\Development\Tools\chromedriver.exe
restart.browser.each.scenario=true
webdriver.timeouts.implicitlywait=30000
story.timeout.in.secs=10000
serenity.take.screenshots=FOR_FAILURES
serenity.verbose.steps=false
serenity.report.show.manual.tests=false
untrusted.certificates=true
serenity.timeout=15000
Appears at the top of the reports
serenity.project.name = Demo Project
Root package for any JUnit acceptance tests
serenity.test.root=net.thucydides.showcase.junit.features
Customise your riequirements hierarchy
serenity.requirement.types=feature, story
Run the tests without calling webdriver - useful to check your JBehave wireing
serenity.dry.run=true
Customise browser size
serenity.browser.height = 1200
serenity.browser.width = 1200
Jenkins script
export JAVA_HOME=/opt/jdk1.8.0_65
export PATH=/opt/jdk1.8.0_65/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:$PATH
export PHANTOMJS_BINARY_PATH=/usr/local/bin
export PHANTOMJS_EXECUTABLE_PATH_PROPERTY=/usr/local/bin
set
phantomjs -v
phantomjs ./github.js
ls -ltr github.png
mvn clean verify
The text was updated successfully, but these errors were encountered: