Search

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!!!





10 views0 comments

Recent Posts

See All

A string s is called good if there are no two different characters in s that have the same frequency. Given a string s, return the minimum number of characters you need to delete to make s good. The f

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 numeric value of b is 2, the numeric value of c is 3, and so on.