Protractor Beginner Tutorial 15 | Protractor | Git | Jenkins integration

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

Automation Step by Step

Automation Step by Step

Күн бұрын

FREE Courses - automationstep...
Today we will learn:
How to get project from GitHub on Jenkins
References
Protractor with Jenkins - • Protractor Beginner Tu...
GitHub - github.com/Rag...
Udemy - www.udemy.com/...
Training by Raghav at your venue - raghav.qna@gmail.com
Training schedule - automationstep...
----------- UI TESTING -----------
Selenium Beginners - bit.ly/2MGRS8K
Selenium Java Framework from Scratch - bit.ly/2N9xvR6
Selenium Python - bit.ly/2oyMp5x
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
----------- API TESTING -----------
Web Services (API) - bit.ly/2MGafL7
SoapUI - bit.ly/2MGahmd
Postman - bit.ly/2wz8LrW
General - bit.ly/2PYdwmV
Katalon Studio API Testing - bit.ly/2BwuCTN
----------- MOBILE TESTING -----------
Appium - bit.ly/2ZHFSGX
Mobile Playlist - bit.ly/2PxpeUv
----------- CI | CD | DEVOPS -----------
Jenkins Beginner - bit.ly/2MIn8EC
Jenkins Tips & Trick - bit.ly/2LRt6xC
Docker - bit.ly/2MInnzx
----------- VERSION CONTROL SYSTEM -----------
Git & GitHub - bit.ly/2Q1pagY
----------- PERFORMANCE TESTING -----------
JMeter Beginner - bit.ly/2oBbtIU
JMeter Intermediate - bit.ly/2oziNVB
JMeter Advanced - bit.ly/2Q22Y6a
JMeter Tips & Tricks - bit.ly/2NOfWD2
Performance Testing - bit.ly/2wEXbLS
----------- PROGRAMMING -----------
Java Beginners - bit.ly/2PVUcXs
Java Tips & Tricks - bit.ly/2CdcDnJ
GROOVY - bit.ly/2FvWV5C
JAVASCRIPT - bit.ly/2KJDZ8o
----------- IDE -----------
Visual Studio Code - bit.ly/2V15yvt
----------- MAVEN -----------
Maven - bit.ly/2NJdDRS
----------- OTHERS -----------
Redis- bit.ly/2N9jyCG
Misc - bit.ly/2Q2q5xQ
Tools & Tips - bit.ly/2oBfwoR
QnA Friday- bit.ly/2NgwGpw
Sunday Special - bit.ly/2wB23BO
Ask Raghav - bit.ly/2CoJGWf
Interviews - bit.ly/2NIPPxk
All Playlists - bit.ly/2LSiezA
Keep Learning,
Raghav
Website - automationstep...
LifeCharger -
Udemy Courses - www.udemy.com/...
Facebook - / automationstepbystep
Twitter - / automationsbs
KZbin - / automationstepbystep
Instagram - / automationstepbystep
You can support my mission for education by sharing this knowledge and helping as many people as you can.

Пікірлер: 32
@unknowninsaan007
@unknowninsaan007 3 жыл бұрын
This is very useful could you make a video on how to add libraries and code to start selenium webdriver on Jenkins server
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Prital, you can check the selenium framework tutorials here - automationstepbystep.com/
@unknowninsaan007
@unknowninsaan007 3 жыл бұрын
@@RaghavPal ,thank you so much for all the help, it worked ☺️
@MrBato1985
@MrBato1985 5 жыл бұрын
Thank you Raghav ! Your videos very useful .
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Aqil
@umesh1056
@umesh1056 3 жыл бұрын
How to run a specific test cases from a specific branch in selenium protractor from jenkins
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Umesh, In Jenkins, in the job configuration page, when you select Git, there is option to select the branch, and for the specific test, you will have to do that in the command line
@umesh1056
@umesh1056 3 жыл бұрын
@@RaghavPal : Now its clear thank you , could you help me in case if I want to run a single test cases from the specific branch (for eg branch name: test and select only TC1from suite)
@RaghavPal
@RaghavPal 3 жыл бұрын
I will try to do a session but for now, If you can check this link to get a command to run a specific test stackoverflow.com/questions/30389460/how-to-run-particular-protractor-test-case-from-command-prompt and in your jenkins select the specific branch
@unknowninsaan007
@unknowninsaan007 3 жыл бұрын
But how it has started selenium server ?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Prital, we added Se libraries and the code for that
@unknowninsaan007
@unknowninsaan007 3 жыл бұрын
@@RaghavPal , thank you for the reply , could you please let us know how we can add these libraries and code
@unknowninsaan007
@unknowninsaan007 3 жыл бұрын
In my case my Jenkins is not installed locally so unable to start selenium server , please help
@RaghavPal
@RaghavPal 3 жыл бұрын
You can do the setup on the jenkins server
@unknowninsaan007
@unknowninsaan007 3 жыл бұрын
@@RaghavPal thank you much for responding, do u mean that I manually need to start server on jenkins???
@uvitalkumar
@uvitalkumar 5 жыл бұрын
Hello Raghav, Useful session. I am facing an issue with Jenkins with Selenium. I have configured the job in jenkins with provided all the details. But I am not able view the UI actions , not able to see the bowser launch. I just observed that execution is happening on jenkins console. Can you please help me on this.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Vital, Are you using windows . I am sure you might have googled it, Pls also check these links may help stackoverflow.com/questions/9618774/jenkins-selenium-gui-tests-are-not-visible-on-windows
@ankitathakur1930
@ankitathakur1930 4 жыл бұрын
Hi Raghav... Thank u for the videos...I have one question ...In selenium we can use chropath plugin for easily getting weblocators...For protractor do we have any such tool which can locate angular web elements?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Ankita, not yet, I will check and inform if I find similar tools
@ankitathakur1930
@ankitathakur1930 4 жыл бұрын
Automation Step by Step - Raghav Pal Thank u so much... Also pls let me know if you upload any video on creating test pipelines in azure devops.
@viplovedev
@viplovedev 4 жыл бұрын
Hi Raghav, The build step is expecting the npm modules before the protractor runs. I tried running against your repository. But, didn't work either. How were you able to manage to get the npm modules in the new directory? Thanks.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Viplove, do you have any logs. You can also try to check in case any step is missed
@viplovedev
@viplovedev 4 жыл бұрын
@@RaghavPal Yes Raghav, PFB. Started by user Viplove Dev Running as SYSTEM Building in workspace E:\Protractor\JenkinsProjects No credentials specified > git.exe rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git.exe config remote.origin.url github.com/Raghav-Pal/ProtractorFramework.git # timeout=10 Fetching upstream changes from github.com/Raghav-Pal/ProtractorFramework.git > git.exe --version # timeout=10 > git.exe fetch --tags --force --progress -- github.com/Raghav-Pal/ProtractorFramework.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10 > git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10 Checking out Revision 26125b55bc8d678ee02f77612fc8031fb418c565 (refs/remotes/origin/master) > git.exe config core.sparsecheckout # timeout=10 > git.exe checkout -f 26125b55bc8d678ee02f77612fc8031fb418c565 # timeout=10 Commit message: "updated calculator.js" First time build. Skipping changelog. [JenkinsProjects] $ cmd /c call C:\Users\Viplove\AppData\Local\Temp\jenkins8902783468286649344.bat E:\Protractor\JenkinsProjects>protractor conf\conf.js Report destination: target\screenshots\my-report.html [21:45:06] I/launcher - Running 1 instances of WebDriver [21:45:06] I/direct - Using ChromeDriver directly... [21:45:12] E/launcher - Error: Error: Cannot find module 'jasmine-reporters' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at onPrepare (E:\Protractor\JenkinsProjects\conf\conf.js:37:28) at q_1.Promise (C:\Users\Viplove\AppData\Roaming pm ode_modules\protractor\built\util.js:46:49) at Function.promise (C:\Users\Viplove\AppData\Roaming pm ode_modules\protractor ode_modules\q\q.js:682:9) at Object.runFilenameOrFn_ (C:\Users\Viplove\AppData\Roaming pm ode_modules\protractor\built\util.js:38:16) at plugins_.onPrepare.then (C:\Users\Viplove\AppData\Roaming pm ode_modules\protractor\built unner.js:98:27) at _fulfilled (C:\Users\Viplove\AppData\Roaming pm ode_modules\protractor ode_modules\q\q.js:834:54) Closing report [21:45:12] E/launcher - Process exited with error code 100 Build step 'Execute Windows batch command' marked build as failure Finished: FAILURE
@RaghavPal
@RaghavPal 4 жыл бұрын
this most probably is because protractor is not in the Path of Jenkins User. Check what user is running Jenkins on your machine. And then check in that user's Path env variable, you set the path of protractor. To know what user is running jenkins, a simple way is Create a jenkins job and in its Build section run the command whoami On running check the logs for output. This will help stackoverflow.com/questions/17733671/how-can-i-tell-what-user-jenkins-is-running-as stackoverflow.com/questions/23931472/protractor-is-not-recognized-as-an-internal-or-external-command-operable-progra
@DharmendraSingh-lm5tx
@DharmendraSingh-lm5tx 3 жыл бұрын
Hi Raghav Sir, I tried to Run Protractor scripts on Jenkins through Git integration. I tried to follow all the things that you have mentioned, the only difference is that for Jenkins set-up I have used docker image instead of war file. I am stuck in this issue very badly for past few days, I have tried lots of things. I have posted a question on stackoverflow to get some help but seems like I am a new contributor so I am not getting much attention there. Can you please help me with this, thanks in advance :) stackoverflow.com/questions/66104087/unable-to-invoke-browser-from-jenkins-job-for-protractor-code-note-jenkins-is
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Dharmendra, I have upvoted this, I will check and follow up on this
@narigina6414
@narigina6414 5 жыл бұрын
Hi Raghav, is protractor tool related to Devops tool..!!
@RaghavPal
@RaghavPal 5 жыл бұрын
It is automation tool specifically for browser angular apps
@giladhershcovitz1849
@giladhershcovitz1849 4 жыл бұрын
Hello Raghav My attempt to run the conf.js fails when I try to do it like you According to the console output in jenkins it's unable to locate the conf.js file. On timestamp 4:33 of this video, the console output shows that the batch command to run conf.js is executed on the JenkinsProject directory and it seems to work in your case. however, in my case it's unable to locate it from there when I try to run the same command in the build action in jenkins.. seems odd to me. Maybe you have an idea about that ? thanks in advnace.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Gilad, this most probably is because protractor is not in the Path of Jenkins User. Check what user is running Jenkins on your machine. And then check in that user's Path env variable, you set the path of protractor. To know what user is running jenkins, a simple way is Create a jenkins job and in its Build section run the command whoami On running check the logs for output. This will help stackoverflow.com/questions/17733671/how-can-i-tell-what-user-jenkins-is-running-as stackoverflow.com/questions/23931472/protractor-is-not-recognized-as-an-internal-or-external-command-operable-progra
Protractor Beginner Tutorial 16 | How to generate allure reports in Jenkins
11:04
Automation Step by Step
Рет қаралды 22 М.
How GitHub Actions 10x my productivity
8:18
Beyond Fireship
Рет қаралды 423 М.
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 122 МЛН
когда не обедаешь в школе // EVA mash
00:51
EVA mash
Рет қаралды 3,9 МЛН
Protractor Beginner Tutorial 13 | How to upload project on Git (version control)
25:51
Protractor Beginner Tutorial 14 | How to run Protractor tests from Jenkins
15:11
Automation Step by Step
Рет қаралды 13 М.
Git vs. GitHub: What's the difference?
10:06
IBM Technology
Рет қаралды 396 М.
GitHub Actions Tutorial - Basic Concepts and CI/CD Pipeline with Docker
32:31
TechWorld with Nana
Рет қаралды 1,5 МЛН
Protractor Beginner Tutorial 11 | How to create Allure HTML reports in Protractor
12:03
Protractor Beginner Tutorial 4 | How to setup Protractor on windows
16:32
Automation Step by Step
Рет қаралды 52 М.
Postman Api Testing Tutorial for beginners
16:45
Codemify
Рет қаралды 39 М.
The IDEAL & Practical CI / CD Pipeline - Concepts Overview
22:36
Be A Better Dev
Рет қаралды 482 М.
Protractor Beginner Tutorial 2 | Why we need Protractor
9:32
Automation Step by Step
Рет қаралды 48 М.
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 122 МЛН