Easiest way to Run WebdriverIO Tests from Jenkins

  Рет қаралды 8,229

Automation Step by Step

Automation Step by Step

Жыл бұрын

Free Courses - AutomationStepByStep.com/
Step 1 - Download, set up and start Jenkins Refer - • Jenkins Complete Cours...
Step 2 - Add JUnit Reporter extension in WebdriverIO Project - npm install @wdio/junit-reporter --save-dev
Ref - webdriver.io/docs/junit-repor...
Step 3 - Update configuration file to add junit reporter configuration
Step 4 - Open Jenkins and create a new job
Step 5 - In the Build section add command to run webdriverio tests
Step 6 - In the Post Build Actions add option to Publish junit test result report
Step 7 - Run job and check results
▬▬▬▬▬▬▬
Every Like & Subscription gives me great motivation to keep working for you
You can support my mission for education by sharing this knowledge and helping as many people as you can
If my work has helped you, consider helping any animal near you, in any way you can
Never Stop Learning
Raghav Pal
▬▬▬▬▬▬▬▬ USEFUL LINKS ▬▬▬▬▬▬▬▬▬
Ask Raghav - bit.ly/2CoJGWf
GitHub Repositories - github.com/Raghav-Pal
Udemy Discounts - automationstepbystep.com/udem...
Stories - automationstepbystep.com/stor...
▬▬ CI | CD | DEVOPS ▬
Jenkins Beginner - bit.ly/2MIn8EC
Jenkins Tips & Trick - bit.ly/2LRt6xC
Docker - bit.ly/2MInnzx
Jenkinsfile - bit.ly/3JSMSZ7
Kubernetes - bit.ly/2MJIlMK
▬▬ UI TESTING ▬
Selenium Beginners - bit.ly/2MGRS8K
Selenium Java Framework from Scratch - bit.ly/2N9xvR6
Selenium Python - bit.ly/2oyMp5x
Selenium 4 - bit.ly/3AiJOlP
Selenium Tips - bit.ly/2owxc50
Selenium Builder - bit.ly/2MKNtlq
Katalon Studio - bit.ly/2wARFdi
Robot Framework with RIDE- bit.ly/2Px6Ue9
Robot Framework with Eclipse - bit.ly/2N8DZxb
Protractor - bit.ly/2KtqVkU
AccelQ - bit.ly/3PlsAsh
Test Project - bit.ly/2DRNJYE
Cucumber BDD - bit.ly/3Cnno4z
Cypress - bit.ly/3PpEukM
Playwright - bit.ly/3iuPByJ
WebdriverIO - bit.ly/3IJyofA
XPath & Web Locators - bit.ly/3PpEvoQ
▬▬ API TESTING ▬
Web Services (API) - bit.ly/2MGafL7
SoapUI - bit.ly/2MGahmd
Postman - bit.ly/2wz8LrW
Postman 2022 - bit.ly/3JWm4qX
Rest Assured - bit.ly/3zUdhRD
Karate API Testing - bit.ly/3w3H5Ku
General - bit.ly/2PYdwmV
JMeter API Testing - bit.ly/3AgVPar
Katalon Studio API Testing - bit.ly/2BwuCTN
API Mocking - bit.ly/3bYPsjS
▬▬ MOBILE TESTING ▬
Appium - bit.ly/2ZHFSGX
Mobile Playlist - bit.ly/2PxpeUv
▬▬ PERFORMANCE TESTING ▬
JMeter Beginner - bit.ly/2oBbtIU
JMeter Intermediate - bit.ly/2oziNVB
JMeter Advanced - bit.ly/2Q22Y6a
JMeter Tips & Tricks - bit.ly/2NOfWD2
Gatling - bit.ly/3QrWfkV
Performance Testing - bit.ly/2wEXbLS
▬▬ SOURCE CODE MANAGEMENT ▬
Git & GitHub - bit.ly/2Q1pagY
GITLAB - bit.ly/2kQPGyQ
▬▬ IDE ▬
Eclipse - bit.ly/3AnRhQP
IntelliJ IDEA - bit.ly/3AnyDZ8
Visual Studio Code - bit.ly/2V15yvt
▬▬ PROGRAMMING ▬
Java Beginners - bit.ly/2PVUcXs
Java Tips & Tricks - bit.ly/2CdcDnJ
Groovy - bit.ly/2FvWV5C
JavaScript - bit.ly/2KJDZ8o
TypeScript - bit.ly/3dvJBmz
Python - bit.ly/2Z4iRye
Ruby - bit.ly/3JRRmzf
▬▬ BUILD TOOLS ▬
Maven - bit.ly/2NJdDRS
Gradle - bit.ly/30l3h1B
▬▬ CLOUD SERVICES ▬
Browserstack - bit.ly/3w7kxZn
Saucelabs - bit.ly/3w7kAo1
LambdaTest - bit.ly/3C6TBwM
▬▬ DATA FORMATS ▬
JSON - bit.ly/3w450tq
XML - bit.ly/3PqRneH
▬▬ OTHERS ▬
Virtualization on Windows - bit.ly/2SItIL9
Mock Interviews - bit.ly/3QGwwVJ
Redis - bit.ly/2N9jyCG
Misc - bit.ly/2Q2q5xQ
Tools & Tips - bit.ly/2oBfwoR
QnA Friday - bit.ly/2NgwGpw
Sunday Special - bit.ly/2wB23BO
-

Пікірлер: 11
@xXMrThomasXx
@xXMrThomasXx 8 күн бұрын
Great tutorial as always ;) Thx for that and I go next :)
@RaghavPal
@RaghavPal 7 күн бұрын
Thanks
@shoaibshaikh7592
@shoaibshaikh7592 11 ай бұрын
Hey Hi Raghav, Upon researching about the test trend reports issue, it was found out that the issue was happening because not a single of your test runs were passing. In order to show the graph there, you need atleast one successful run.
@RaghavPal
@RaghavPal 11 ай бұрын
Thanks for posting this Shoaib
@debayudhchattopadyay5056
@debayudhchattopadyay5056 Жыл бұрын
Hi Raghav, please do a tutorial on how to run Playwright tests from jenkins and publish Allure reports. Thanks
@RaghavPal
@RaghavPal Жыл бұрын
I will plan Debayudh
@arijitmohanty8216
@arijitmohanty8216 Жыл бұрын
Hi Raghav Sir thanks lot for this Easiest way to Run WebdriverIO Tests from Jenkins. I have follow your video and ran Jenkins from local it's worked. But I have one question How I configure my Jenkins with Github and how I write jenkins file to ran this project from Jenkins? Kindly advice Sir.
@RaghavPal
@RaghavPal Жыл бұрын
Hi Arijit To configure Jenkins with Github, you need to follow these steps: Install the GitHub Integration plugin in Jenkins. Go to the Jenkins dashboard and click on “New Item” to create a new project. Enter a name for your project and select “Pipeline” as the project type. Scroll down to the “Pipeline” section and select “Pipeline script from SCM” as the Definition. Select “Git” as the SCM and enter the URL of your GitHub repository. Choose the appropriate branch and save the configuration. Now that you have configured Jenkins with GitHub, you can create a Jenkinsfile to run your project. Here's an example Jenkinsfile: pipeline { agent any stages { stage('Build') { steps { sh 'mvn clean package' } } stage('Test') { steps { sh 'mvn test' } } stage('Deploy') { steps { sh 'mvn deploy' } } } } This Jenkinsfile defines three stages: Build, Test, and Deploy. Each stage contains a single step that runs a Maven command. You can customize the Jenkinsfile to suit your project's needs. Once you have created the Jenkinsfile, commit it to your GitHub repository. When Jenkins detects a change in the repository, it will automatically trigger a new build using the Jenkinsfile.
@arijitmohanty8216
@arijitmohanty8216 Жыл бұрын
@@RaghavPal @Automation Step by Step Thanks Raghav sir for your guidance. I have already installed plugins now I will work as you instructed Sir. In Jenkins file we have created 3 stage those are Build, Test and Deploy but I have used this file in Playwright testing with node js then should I changed the this maven test or I will run without changing in Jenkins file. Kindly suggest Sir. thanks for your help.
@RaghavPal
@RaghavPal Жыл бұрын
Hi Arijit If you are using Playwright testing with Node.js, you should not need to use Maven for your testing. Instead, you can run your tests using Node.js and the Playwright library. In your Jenkinsfile, you can define the stages to build, test, and deploy your application, but you will need to adjust the commands that are run in each stage to reflect the use of Node.js and Playwright. For example, in the "Test" stage, you could have a command like: sh 'npm install' // to install any dependencies sh 'npm test' // to run your Playwright tests You may also need to adjust your project structure to accommodate your new testing approach. You could create a "tests" directory where you store your Playwright tests and include a "package.json" file to manage your dependencies
@arijitmohanty8216
@arijitmohanty8216 Жыл бұрын
@@RaghavPal Thanks sir its help me lot. I will try this and get back to you.sorry for late reply.
The best way to add WebdriverIO Project to Git and GitHub
23:08
Automation Step by Step
Рет қаралды 3,9 М.
Run Postman Collections in Jenkins with Newman
35:35
Valentin Despa
Рет қаралды 20 М.
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 113 МЛН
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 70 МЛН
Creating and Debugging a Groovy Project
5:55
Java Easily
Рет қаралды 1,8 М.
Easiest way to create WebdriverIO Cucumber BDD Project with DEMO
45:29
Automation Step by Step
Рет қаралды 16 М.
Mobile Automation Testing using WebdriverIO
1:29:15
SDET Unicorns by Dilpreet Johal
Рет қаралды 32 М.
Do you know this way to Run WebdriverIO tests from Jenkins using GitHub project
17:55
WebdriverIO How to Record and Generate Test Scripts
14:51
Automation Step by Step
Рет қаралды 9 М.
WebdriverIO How to implement Page Object Model
33:19
Automation Step by Step
Рет қаралды 16 М.
Getting Started with WebdriverIO | Complete Tutorial for Beginners Step by Step
56:49
GitHub Actions Step by Step DEMO for Beginners
23:17
Automation Step by Step
Рет қаралды 73 М.
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37