-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
Jenkins server
The tests fails when run in Jenkins server. Test is passing locally and fails in Jenkins. I've tried to change the locator, added more wait until assert the element is there, even tried with 100000ms Thread.sleep to check if will pass, but still not.
This is the error from build console log:
[main] ERROR net.serenitybdd.core.Serenity - TEST FAILED AT STEP Verify you are logged in
[main] ERROR net.serenitybdd.core.Serenity -
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 30.826 sec <<< FAILURE! - in shippii.LoginTest
successfulLogin(shippii.LoginTest) Time elapsed: 20.445 sec <<< FAILURE!
java.lang.AssertionError: null
at shippii.DashboardPage.verifyLoggedIn(DashboardPage.java:23)
at shippii.LoginSteps.verifyLoggedIn(LoginSteps.java:39)
at shippii.LoginTest.successfulLogin(LoginTest.java:27)
Screenshot from Serenity report: