Playwright Tutorial | CI using Jenkins | Jenkins Setup & Integration with Local Playwright Project

Опубликовано: 08 Октябрь 2024
на канале: WishInfinite
168
5

How To Run Playwright With Jenkins | Integrate Playwright With Jenkins
How to Run Playwright Tests Using Jenkins
How Can I Integrate Playwright Tests with Jenkins?
Run Playwright Tests using Jenkins - CI CD Pipeline
How To Run Playwright Tests on Jenkins

#playwright #typescript #javascript #tutorial #automation #testing #coding #selenium #cypress
playwright, playwright tutorial, playwright testing
===============================================================================

Chapters

00:00 - Introduction of CI using Jenkins / CICD
04:17 - Prerequisites installation (NodeJS, Java)
08:35 - Jenkins installation
12:12 - Jenkins Initial Setup
16:14 - Playwright Project short explanation
22:24 - Create and Configure Jenkins Job
36:28 - Jenkins Job Execution and Analysis
42:47 - Build Jenkins Job Periodically / Trigger Jobs Automatically
49:02 - Configure HTML Report with Jenkins Job
01:06:21 - Parameterize Jenkins Jobs
01:19:49 - Jenkins installation / Initial Setup using war file
01:25:58 - Recap

================================================================================

Playwright with TypeScript / JavaScript Series -    • Playwright Tutorials with TypeScript ...  
Playwright API Testing -    • Playwright Tutorials with TypeScript ...  
Learn Playwright in 60 Seconds (Shorts Playlist) -    • Learn Playwright in 60 Seconds  
Playwright Quiz -    / @wishinfinite  
Playwright Notes - https://docs.google.com/document/d/1O...
Github Profile URL - https://github.com/Wish-Infinite
Github Repository URL - https://github.com/Wish-Infinite/play...
GitHub Actions video -    • Playwright Tutorial | CI using GitHub...  
Install Playwright Video -    • Playwright Tutorial | Installation of...  
Playwright Config File Video -    • Playwright Tutorial | Playwright conf...  
Playwright HTML Report Video -    • Playwright Tutorial | HTML Report wit...  
Trace viewer in Playwright Video -    • Playwright Tutorial |  Trace Viewer i...  
Tags in Playwright -    • Playwright Tutorial | Tags in Playwri...  
============================================================================================================

Playwright with TypeScript | CI using Jenkins | Jenkins Setup & Integration with Local Playwright Project

What is CI/CD?
CI (Continuous Integration): "It’s the practice of automating the integration of code changes from multiple contributors into a project / codebase."
CD (Continuous Delivery/Deployment): "This takes it a step further by automating the delivery of the integrated code to production."
Jenkins can be integrated with Playwright with 2 ways .
Without using pipeline
By using Pipeline (Jenkins supports Docker agents for pipelines.)

Important Steps -
Install Prerequisites - NodeJS, Java , Jenkins
Create Test Script and Configure playwright.config.ts
Create Jenkins Job.
Provide Build steps
Configure HTML Report with Jenkins
Execute build Manually
Verify Generated report and log.
Trigger build periodically
Parameterize Jenkins job (If Required)

To Configure HTML report - System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")
Note - If you want to use Jenins.war file rather then installing jenkins using jenkins.exe, then You can use the java -jar jenkins.war --httpPort=8080 command to run the file.(As explained in Video)

===================================================
Credits:
Subscribe Button Animation: pixabay - YRDesigns
Thumbnail and Other art Creation App: Canva