When I run my Selenium test suite under Jenkins a test fails. If I run the same test suite from the command prompt they all pass. When running from the command prompt, I am in the Jenkins worskpace. This where the Jenkins runs Selenium from. Has anyone got any ideas as to why this maybe? Thank you.
When we execute automation script/tests using Jenkins -
Cross check whether you have provided few hard-coded location paths?
If you are creating reports you need to check whether you have required access permissions to read, write & execute?
Similarly, If you are taking screen-shots of failed tests, ensure you are having all access permission
I will surely update my answer, once more details will be provided for question.