Automation Testing with CI/CD - Playwright Automation Tests with Jenkins
Integrate Playwright Automation Tests with Jenkins
With Jenkins, First you need to do an initial set up and make sure you have Java installed for Jenkins on your PC.
First Click on the "New Item" as shown below
After clicking on "New Item" you will see a screen like below
Enter the name as "Your desired name" as I've entered as "Playwright" for now. Select Freestyle project and click "OK" button. You will be navigated to the "Configure" section
Give your description in the text box "Description". Select "Git" as the "Source Code Management" option as we are using this git repo: Git Repo
Give the access to your credentials for git if it is a private repo. I've used a public repo so the credentials are not needed.
Enter your branch as "main" as I'm using the master branch. You can use your own branch other than master branch if specifically needed.
Fill in the "Build" step like below
Click on "Apply" button like mentioned above. You will see a screen like this below with your settings saved.
Click on "Save" button finally!!!
Now, you are now on your project page. Click on "Build Now" to execute your playwright automation tests
Check your console output
Happy Automation Testing Guys :) !
Comments
Post a Comment