Protractor Beginner Tutorial 14 | How to run Protractor tests from Jenkins

  Рет қаралды 13,586

Automation Step by Step

Automation Step by Step

Күн бұрын

FREE Courses - automationstep...
Today we will learn:
1. How to setup Jenkins
2. How to create jobs in Jenkins
3. How to run Protractor tests
Step 1: Download Jenkins from jenkins.io/dow...
Step 2: Start jenkins
Goto cmd and cd to the location of jenkins.war file
java -jar jenkins.war //8080
java -jar jenkins.war --httpPort=9191
Step 3: Create a new job
Step 4: Add commands in Jenkins Job
Step 5: Run and check
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.

Пікірлер: 89
@quangvo361
@quangvo361 5 жыл бұрын
Thank you for your attention to details in your video. I was able to follow along and had successful hand-on practice. I appreciate it.
@RaghavPal
@RaghavPal 5 жыл бұрын
So happy to know this Quang.
@jaxtonjerry6685
@jaxtonjerry6685 3 жыл бұрын
you prolly dont care but if you are bored like me atm you can stream all of the latest movies and series on instaflixxer. Been streaming with my brother for the last days =)
@akshayjadhav6922
@akshayjadhav6922 5 жыл бұрын
Thank you sir for the tutorial.
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Akshay
@enembi7075
@enembi7075 2 жыл бұрын
love you man....
@RaghavPal
@RaghavPal 2 жыл бұрын
Thanks
@mohamedhazeeb995
@mohamedhazeeb995 4 жыл бұрын
Every Tutorial is great learning going forward please add Protractor with Typescript tutorial along with Cucumber framework on the same..Thanks ! in Advance :)
@RaghavPal
@RaghavPal 4 жыл бұрын
Sure Hazeeb, you will find all here - automationstepbystep.com/
@teodorogar2475
@teodorogar2475 4 жыл бұрын
Hi, can you make a tutorial for mac , I've been seen that is different and I'm not been able to configure correctly nor with github. thanks in advance.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi, sure, generally most things should be common. Still I will check and plan for it
@tejkumarkempaiah4906
@tejkumarkempaiah4906 3 жыл бұрын
Please let me know if DB testing using Protractor is in your todo list, As there is hardly content which covers the same.
@RaghavPal
@RaghavPal 3 жыл бұрын
As of now its not on my list Tej,
@shwethabj6539
@shwethabj6539 5 жыл бұрын
Hi Raghav,. If it's our local machine this will work but when it come corporate office they will install Jenkins in server. That time this build path won't work.. could please help how to do this If Jenkins installed in server.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Shwetha, you can put your project on git and in jenkins pull from git, this is shown on other video in this series
@BidyasagarKapaliQA
@BidyasagarKapaliQA 4 жыл бұрын
Thanks Raghav, we have jenkins access but DevOps team. what all should we require to send them to create such job for us? How can i achieve this if i have no access to jenkins?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Bidyasagar, You will need to provide the commands and if your project is on some repo like github then its url
@undefinedperson7816
@undefinedperson7816 5 жыл бұрын
Thanks for your channel. @2:56 : this is only for Win10 or also older versions ? I never used this useful trick. In Win7 and/or WinXP, I used the context menu for same action.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi, Should work on earlier windows, have not checked.
@prashanth.m.nprashanth8200
@prashanth.m.nprashanth8200 4 жыл бұрын
How to run the protractor in jenkins(In server). Do we need to make any changes or add any plugins
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Prashanth, you just need to check where is the execution happening, If jenkins gets the project (clones) into the machine it is running on then, the machine (server) should be having all the setup required to run the tests. In case it is running on a remote system, it should be able to connect to that machine.
@deedee-1915
@deedee-1915 2 жыл бұрын
Hi Sir, No audio is coming after initial automation step by step tune..for video 13 and 14 in this series.
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi, I checked, its fine, Please check again, can try on a new browser, also check the audio
@deedee-1915
@deedee-1915 2 жыл бұрын
@@RaghavPal I checked in new chrome incognito window. Audio is still not working from 0.08 second.
@deedee-1915
@deedee-1915 2 жыл бұрын
@@RaghavPal Never mind, I was able to follow without audio as well. Really helpful.
@RaghavPal
@RaghavPal 2 жыл бұрын
Ok not sure why its for you, hope the other videos are fine
@TheEsteban1979
@TheEsteban1979 2 жыл бұрын
Can you please tell me what command to ty in the Execute Shell. I have a Mac and I am missing some details because I keep getting errors. You use C: cd I am not sure how to do it with a mac.
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Gaucho, can check this stackoverflow.com/questions/9547730/how-to-navigate-to-to-different-directories-in-the-terminal-mac
@yasashreeakula4923
@yasashreeakula4923 3 жыл бұрын
Hi, Raghav when I am trying to run Jenkins file in my command prompt it's displaying. java.lang.UnsupportedClassVersionError: 59.0 at Main.verifyJavaVersion(Main.java:174) at Main.main(Main.java:142)
@RaghavPal
@RaghavPal 3 жыл бұрын
Will need to see more logs Yasashree, do you see any caused by section
@pavankustagi3863
@pavankustagi3863 4 жыл бұрын
Hi Raghav, First of all, thank you so much for your efforts in educating people. Need your help!! I followed the same steps in this video and getting an error "C:\Users\Administrator\Protractor_Demo>protractor .\conf\conf.js 'protractor' is not recognized as an internal or external command, operable program or batch file." in Jenkins. Can Raghav or someone help? PS: I have installed protractor globally and also the command "protractor .\conf\conf.js" runs perfectly fine when I run it in VS Code and Command prompt.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Pavan, 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
@RamaKrishna-mn9lm
@RamaKrishna-mn9lm 4 жыл бұрын
Raghav, I followed as per your steps. But I am unable to solve this issue. its keep on getting the same error "'protractor' is not recognized as an internal or external command, operable program or batch file." in Jenkins. Please advice.
@AbhishekMishra-fn5bq
@AbhishekMishra-fn5bq 4 жыл бұрын
@@RamaKrishna-mn9lm Hi Rama, are you able to resolve this issue ? If yes then please reply with resolution. Thanks in advance :)
@luisyairaquinomelo1628
@luisyairaquinomelo1628 4 жыл бұрын
Someone could resolve this issue? Idk how to resolve it. Help please
@arturstrug3060
@arturstrug3060 4 жыл бұрын
I had the same problem. I added path "C:\Users\\AppData\Roaming pm" to System variables (not User variables) > Path. In my case it worked :)
@sayalichaudhri8227
@sayalichaudhri8227 3 жыл бұрын
Hi, I am facing some issues, I am not able run file in jenkins using protractor cucumber framework. Issue: Error: EACCES: permission denied, open 'file path' Could you please help me? Thanks in advance!
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Sayali, this can help www.willandskill.se/en/how-to-fix-eacces-errors-with-npm-on-macos/
@zishukumar6533
@zishukumar6533 4 жыл бұрын
Can you please guide how we can run Protractor tests from Azure pipeline.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Zishu, as of now I have limited info, Will plan to create a tutorial. For now pls try online help
@zishukumar6533
@zishukumar6533 4 жыл бұрын
@@RaghavPal Thanks for your quick response.
@malpanisiddhesh
@malpanisiddhesh 4 жыл бұрын
Hi Raghav, Your course content is too good for beginners. It has helped me a lot to understand Protractor in a short time. (Not boasting you to get quick reply from you :) ) The problem I'm facing is that when I run the Protractor test through Jenkins, it doesn't launch the browser but still sometimes the test is passed while sometimes failed. I'm not using xvfb at all right now. Any idea why this could be happening?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Siddhesh, Is your Jenkins on a headless system. What do the logs say
@malpanisiddhesh
@malpanisiddhesh 4 жыл бұрын
@@RaghavPal Raghav, Thanks for your quick response! My Jenkins server is running on normal Windows 10 machine just like you demonstrated in your video. So shouldn't be a headless system. Only difference is that I've installed it using .msi file unlike the .war file that you deployed. Regarding logs: When build shows successful, they are identical to those generated from terminal. Whereas when it shows failure, they display timeout error. Regards, Siddhesh
@RaghavPal
@RaghavPal 4 жыл бұрын
Are you behind vpn or firewall, or use proxy to connect to internet
@malpanisiddhesh
@malpanisiddhesh 4 жыл бұрын
@@RaghavPal Behind VPN as well as firewall. It's my office laptop. However, I've disabled the firewall and only then I could download the webdriver-manager. But should these be the reason behind the problem I'm facing? Anyway, I'm able to run the tests through command line and VSC.
@malpanisiddhesh
@malpanisiddhesh 4 жыл бұрын
Hi Raghav, Any suggestions on this?
@aspp8137
@aspp8137 4 жыл бұрын
Hi, In real time scenario , does company use git and jenkins while doing automation. is it mandatory to use these. what kind of questions they ask during interview for protractor.
@RaghavPal
@RaghavPal 4 жыл бұрын
Yes, companies widely use git and jenkins. During interviews mostly you may be asked how did you setup the project and process. Once you do hands-on, you should be able to address them all
@varalikaagarwal4477
@varalikaagarwal4477 4 жыл бұрын
How to configure build using "execute shell"
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Varalika, The same commands work in execute shell when running on mac or linux systems
@waheedahmed6524
@waheedahmed6524 4 жыл бұрын
If I am not wrong you are running in headlessbrowser mode? Is their way to run in browser mode? plus in my package.json i have added command which brings up selenium server and run tests and have devDepenedices and I run my test using npm test... does this mean in my command line section cd c:/path to folder npm install npm test npm install to install devdevepnedices and npm test to run tests correct? in package.json "scripts": { "webdriver-start": "webdriver-manager update && webdriver-manager start", "protractor": "wait-on http-get://127.0.0.1:4444/ && protractor conf.js", "test": "npm-run-all -p -r webdriver-start protractor" },
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Waheed, in this video, basically we are using the same commands to run our tests but from Jenkins. It was not headless mode, but was quite fast to observe check 12:28 I will need to understand your scenario better, but in general, If you are running jenkins from the same system & user where you have all your project setup, there should not be any need for extra setup on jenkins, Else you have to ensure the setup is available on the system from where Jenkins is running
@waheedahmed6524
@waheedahmed6524 4 жыл бұрын
@@RaghavPal so what aim is to setup jenkins in such away first it runs smoke test cases and if they all pass than run functional integration and e2e tests so on... Is that something possible for protractor-jasmine framework from jenkins ?
@RaghavPal
@RaghavPal 4 жыл бұрын
Yes you can, see Jenkins is a CI tool, you can create jobs and put your commands and then chain these jobs as you want. You can check this video - kzbin.info/www/bejne/sJeZoJqNZa1-grs
@johnnathandawson9118
@johnnathandawson9118 4 жыл бұрын
Hi, Can you explain how can i pass choice parameter to command protractor conf.js --cucumberOpts.tags="$Choice" in order to choose between smoke or regression tests?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Johnnathan, just search for how you can pass this from command line and then you can use this video kzbin.info/www/bejne/npjUc3qEhdF_orc kzbin.info/www/bejne/r526eYCkl6eteZI kzbin.info/www/bejne/oHOkkqusaZ6Sqq8
@christmasvillage3652
@christmasvillage3652 4 жыл бұрын
`My local machine keeps on telling me that sun.security.validatorException: PKIX path building failed`. this is when I run `java -jar jenkins.war`. At the end of the console it says jenkins is running fine, but I don't see the password. The html page for local host says Jenkins is offline. Please help.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi, www.mastertheboss.com/cool-stuff/jenkins/solving-jenkins-sslhandshakeexception Try Go To ->Manage Jenkins -> Configure Global Security -> Plugin Manager and check the box for Use browser for metadata download. Also check this wiki.jenkins.io/display/JENKINS/Skip+Certificate+Check+plugin
@zishukumar6533
@zishukumar6533 4 жыл бұрын
Hi Raghav, I am not getting initialAdminPassword file in my System. please help
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Zishu, you can try the following 1) Edit the config.xml file in the JENKINS_HOME folder and locate this line: true Set the value to false 2) Start Jenkins askubuntu.com/questions/849253/how-to-get-username-and-password-for-recently-installed-jenkins
@mohammado8620
@mohammado8620 4 жыл бұрын
Hey, thanks for the great video, do you have any idea if its possible to download files while running the tests using Protractor? Because I can download files using protratcor when I run the tests on my machine but on Jenkins its not seems to be Working.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Mohammad, what is the error you get, It will be interesting to check what is causing issue on your local system and working on Jenkins. Is Jenkins on your local system
@mohammado8620
@mohammado8620 4 жыл бұрын
I don’t get any errors, it’s just that nothing happens when I click on the download link, and jenkins run the tests on windows, but on my own I run them on Linux so I guess the response is no, it’s not on my local system.
@RaghavPal
@RaghavPal 4 жыл бұрын
Okay then can be setup issue on the remote. Will need to compare
@gauravgaud9798
@gauravgaud9798 3 жыл бұрын
Hi Raghav, I am getting 'protractor' is not recognized as an internal or external command, operable program or batch file error when i am running through jenkins but same command working fine for me when i am running it manually from my system
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Gaurav, 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
@gauravgaud9798
@gauravgaud9798 3 жыл бұрын
@@RaghavPal Hi Raghav, I tried all the things but still my issue didnt resolve yet. It is working in normal command prompt but not through jenkins . when i am running job then i am getting following error: C:\Windows\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\ProtractorFramework>E: E:\>cd E:\AutomationStudyStuff\ProtractorLearning E:\AutomationStudyStuff\ProtractorLearning>whoami nt authority\system E:\AutomationStudyStuff\ProtractorLearning>protractor conf/conf.js 'protractor' is not recognized as an internal or external command, operable program or batch file. pls help me out in this to resolve this issue
@RaghavPal
@RaghavPal 3 жыл бұрын
You may have to provide protractor path in Jenkins stackoverflow.com/questions/23931472/protractor-is-not-recognized-as-an-internal-or-external-command-operable-progra
@gauravgaud9798
@gauravgaud9798 3 жыл бұрын
@@RaghavPal Hi raghav, I try to done all the possible ways what i found it on google but nothing work for me I need to resolve this protractor issue of jenkins ASAP. pls help me out in it... If possible for you then we can connect as well to fix this issue... Pls let me know on it...
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Gaurav, unfortunately I will not be able to take out separate time these days and you will need to try options from online discussions for now
@aspp8137
@aspp8137 4 жыл бұрын
now 8080 also not working when i tried to click on save connection gone eventhough wifi is there
@RaghavPal
@RaghavPal 4 жыл бұрын
Will have to see your commands and logs Archana
@aspp8137
@aspp8137 4 жыл бұрын
8080 is working fine for me but not 9191
@RaghavPal
@RaghavPal 4 жыл бұрын
That is fine. You can continue with port 8080
@adityamittal4357
@adityamittal4357 Жыл бұрын
sound problem?
@RaghavPal
@RaghavPal Жыл бұрын
I will check and take care in future videos Aditya
@adityamittal4357
@adityamittal4357 Жыл бұрын
@@RaghavPal No issues, I saw most of your initial playlist which was very nice; the last several videos seem to have some sound issues. Thank you for your great work, I will share your work forward with more people trying to learn these topics.
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome Aditya
Protractor Beginner Tutorial 15 | Protractor | Git | Jenkins integration
5:55
Automation Step by Step
Рет қаралды 9 М.
Protractor Beginner Tutorial 9 | POM in Protractor
21:40
Automation Step by Step
Рет қаралды 28 М.
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 4,1 МЛН
РОДИТЕЛИ НА ШКОЛЬНОМ ПРАЗДНИКЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,2 МЛН
小天使和小丑太会演了!#小丑#天使#家庭#搞笑
00:25
家庭搞笑日记
Рет қаралды 40 МЛН
Protractor Beginner Tutorial 11 | How to create Allure HTML reports in Protractor
12:03
DHH - Ruby on Rails, 37signals, and the future of web development
1:09:57
Protractor logging Log4JS | print to console & log file
20:23
What is XPath | How to create XPath | for Beginners
10:53
Automation Step by Step
Рет қаралды 252 М.
Test-Driven Development // Fun TDD Introduction with JavaScript
12:55
How to schedule testcases in Jenkins and How to send email via Jenkins
16:58
Protractor Beginner Tutorial 13 | How to upload project on Git (version control)
25:51
The IDEAL & Practical CI / CD Pipeline - Concepts Overview
22:36
Be A Better Dev
Рет қаралды 482 М.
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 4,1 МЛН