Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.06 KB

SELENIUM.md

File metadata and controls

30 lines (24 loc) · 1.06 KB

Set up Selenium Tests

Check the pom.xml definition and the code source of the class day1.java Attention The IP address of the test version of the website is hardcoded that shouldn't be done in the real CI/CD environment.

Create a Jenkins Job

Define

if the plugin Log Parser is not present
Go to manage-Jenkins -> Manage plugins -> Tab available -> Filter Log Parser
Check and install without restart

Change lines 27 of day1.java file , enter your vm api address

Go New Item, Name petclinic-selenium, copy from petclinic-maven Hit Ok
Source Management
Fork and clone https://github.com/crunchy-devops/petclinic-selenium.git Git enter https://github.com/<your_repo>/petclinic-selenium.git Build Root POM: pom.xml Goals and options: test

Post-build Actions

Select Console output (build log) parsing
Tick Mark build Failed on Error
Tick Use project rule
Path to rule file in workspace : parserules
parserules file contains a regex for checking if there is an error in jenkins log file.