top of page
Search
Writer's pictureCoding Camp

Executing selenium tests in Jenkins

Before running selenium tests in jenkins, we need to setup eclipse with Maven, have your maven project ready and upload your code in GIT repository.


In your maven project, you will have pom.xml file.


Run test from local folder:

  1. Launch your jenkins using "http://localhost:8080/".

  2. Click "New Item" -> Maven Project-> Enter project name and click ok

  3. In 'build' section, enter the path of your pom.xml file in Root POM textbox and enter "clean test" in 'Goal and options' text box and save.

  4. Once the build is saved, click Build Now to run your test and see the results in console.




Run test from GIT repository:

  1. Launch your jenkins using "http://localhost:8080/".

  2. Click "New Item" -> Maven Project-> Enter project name and click ok

  3. In 'Git Bucket' section, select "GitHub Project", enter your github project url in "Project url" textbox.

  4. In "Source code Management" section, select Git radio button, and enter repository url and branch details.

  5. In 'build' section, enter "pom.xml" in Root POM textbox and enter "clean test" in 'Goal and options' text box and save.

  6. Once the build is saved, click Build Now to run your test and see the results in console.






Happy Testing!!!





20 views0 comments

Recent Posts

See All

Smallest String With A Given Numeric Value

The numeric value of a lowercase character is defined as its position (1-indexed) in the alphabet, so the numeric value of a is 1, the...

Comments


bottom of page