How To Run Playwright With Jenkins | Integrate Playwright With Jenkins
HTML-код
- Опубликовано: 29 сен 2024
- In this tutorial, we will discuss integration of Playwright with Jenkins. I will explain the process of setting up and configuring Playwright with Jenkins.
This video is divided into 2 parts.
Part 1 - Running local playwright test using Jenkins
Part 2 - Running playwright test from github using Jenkins
Imp links:
Jenkins - • How To Install Jenkins...
Playwright With Jenkins - playwright.dev...
Playwright CLI Commands - playwright.dev...
am running on mac , so when i gave the command node --version and build the project as you did, it failed for me , yes i have node installed on my mac
Set node path in Jenkins
line 2: npm: command not found
Build step 'Execute shell' marked build as failure is the error i get as i am doing it on mac
You need to install node js where jenkins is running and make sure u add in tools location in Jenkins.
@@Mukeshotwani please show for that , I get error in node or mvn --v while works on terminal. node , mvn how to configure ??
Hello Mukesh Sir, i have installed Jenkins on EC2 and download all the dependencies , but while running the job ,I always gets the error that node version is lower, even if its more than required, have u ever encounter such error
Min Node version needed is 14+ . I will prefer 18
Will this playlist be enough to help me succeed in a Playwright Automation interview?
I have added imp video which cover basic+advance both.
Hey Mukesh
Please make a video for web scraping by using playwright
Noted
Hi Mukesh,
How can I run 2 tests in codeceptjs playwright having files with unique names? Ex : I have multiple files having *_test.js files , But i need to run 2 test files only [aws_test.js AND azure_test.js]
I tried running below command, but it picks only 1 test file which is aws_test.js
npx codeceptjs run ./src/tests/admin/aws_test.js ./src/tests/admin/azure_test.js
I cant run using --grep with tags, Since same tags are present in other test files as well. And when i run it with grep it runs other test files which matches with that tag.
Is there any other way where I can specify multiple test files by file name? Similar to TestNG where we specify multiple class names in testng.xml file
could you please share the git url of this
Here you go github.com/Mukesh-50/PlaywrightDemo
Hi Mukesh, If we are running on linux jenkins, do we need to install chromium or it will execute in backed? or do we need docker to execute the testcases?
Please provide me the link to part 2
hello sir which jenkins version you used in this video.?
latest one
Great share mukesh!
Thanks Guna
Hi mukesh sir,
Very helpful video
I m facing below issue, could you please help me
Facing below issue, even after install and update playwright and chromium
Error: browserType.launch: Executable doesn't exist at /home/jenkins/.cache/ms-playwright/chromium-1117/chrome-linux/chrome