In this recipe, we will write a sample functional test using Selenium.
Integrating Jenkins and Selenium for functional testing
Getting ready
Install the TestNG Results Plugin:
Create a new project or build job in Jenkins.
How to do it...
Now let's try to execute the from Jenkins:
- Check in the Test Project in Repository. Create a PetClinic-FuncTest freestyle job in Jenkins.
- In the Build section, provide the Root POM location and Goals and options to execute:
- Save the build job and click on Build now.
- Verify the execution of the build job in the Console Output...