0

I'm encountering some issues by executing Selenium Scripts from Jenkins, I'm totally beginner so I need many explanations if somenone can provide some...

  • So i'm running Jenkins on my VM Linux.
  • I've got those selenium script in a folder of this VM.

What should I do to manage to make in run through Jenkins ?

I don't understand a lot so if you could give me as much as details as possible...

  • If I have to use maven, what are the configurations in Jenkins ? Do i have to create a POM.xml ? If yes what to insert inside ? Where do I put it ?

  • If that's not the solution ? what should I do ?

Thanks in advance ! :-)

1 Answer 1

1

If the Junit tests run properly on your workstation, then you must do the following:

http://alex.nederlof.com/blog/2012/11/19/installing-selenium-with-jenkins-on-ubuntu/ provides setup details.

Sign up to request clarification or add additional context in comments.

5 Comments

Ok thanks, but should i not just edit a pom.xml explaining dependencies and anythins else ?
Of course, if you don't have Maven configuration at all, then you'll need to create one. The bits and pieces I describe assume that you already have a working Maven configuration for everything but you Selenium tests. To have this on Jenkins, you should edit the pom.xml to configure maven jetty plugin and maven failsafe plugin, the rest of the configuration is made is Jenkins specific.
Ok thanks for those informations, I got a new question, I know got success on Jenkins but i think jenkins doesn't really execute my file.java i guess it's information i have to indicate in the <build> of my POM. But what are those ?
To give more details for my "maven-compiler-plugin", I got the message : "No sources to compile", but how to indicate thoses sources?
Directories Maven looks for files are by default src/main/java and src/test/java

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.