Link to home
Start Free TrialLog in
Avatar of itaakashcom
itaakashcom

asked on

Selenium tests failing on jenkins

Env: jenkins on CentOS
java: 1.8
Selenium version: 2.48.2
Web Application Technology: Spring Boot
Test Framework: TestNG

Scenario that involve clicking of a 'Submit' button(E.g. Submitting sign up form, submitting reset password form), test cases sometimes pass & other times fail in random fashion,
There are inconsistent results.
I have tried providing 'wait' & used 'enter' key of keyboard instead of a click.
But still no success.
Avatar of gheist
gheist
Flag of Belgium image

Why you are trying to rig the test for success?
Avatar of girionis
Is there any pattern on the failing tests? Can you identify if this is a network error?
ASKER CERTIFIED SOLUTION
Avatar of itaakashcom
itaakashcom

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of itaakashcom
itaakashcom

ASKER

This issue was solved by putting sleep before a click event.