OK all done, lets go though with the steps,
Step 1
First you need to install google chrome. This is called as chrome in headless mode. Because you really can't see the chrome window when you are running tests in Jenkins.
wget -qO - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
Step 2
Then install xvfb. OK what is this xvfb ?
Based on Wikipedia,
Xvfb or X virtual framebuffer is a display server implementing the X11 display server protocol. In contrast to other display servers, Xvfb performs all graphical operations in memory without showing any screen output. From the point of view of the client, it acts exactly like any other X display server, serving requests and sending events and errors as appropriate. However, no output is shown. This virtual server does not require the computer it is running on to have a screen or any input device. Only a network layer is necessary.
sudo apt-get install xvfb
Then start xvfb
Xvfb :1 -screen 5 1024x768x8 &
Step 3
OK , server changes are done. Now its time to move into Jenkins configurations.
First Install this plugin, (Jenkins -> Manage Jenkins --> Manage Plugins)
https://wiki.jenkins-ci.org/display/JENKINS/Cucumber+Reports+Plugin
Why do you we need this ?
This plugin allows Jenkins to show Selenium + cucumber results as a graph with screenshots.
So in order to generate graphs this plugin need the report.json file that generated from Selenium + cucumber.
@RunWith(Cucumber.class)
@Cucumber.Options(glue = {"classpath:com/rd/uat"}, strict = true, format = {
"pretty", "html:target/cukes", "json:target/cukes/report.json", "junit:target/cukes/junit.xml"})
public class RunCukes {
}
Here is the plugin configuration in Jenkins.
Create Jenkins Job --> Then add this as "Post build Step"
Step 4
Add following environment variable to Jenkins. (Jenkins --> Manage Jenkins --> Configure System)
DISPLAY=:1.5
OK We just configure Jenkins to run selenium and Cucumber Tests.
Now run the Jenkins job and check the cucumber reports. :)
Here are some sample reports,
In the provided information i agree our all information and really very nice all articles ,thanks for sharing in this post.
ReplyDeleteI like in this post.
php training in chennai
Great Article
DeleteIEEE Final Year Projects for CSE Final Year Project Centers in Chennai
Hai,
ReplyDeleteNicely written post. I am just about to start a new blog and there could not have been a better guide than this one for some good pointers. I am looking forward to starting a successful blog after reading this incredibly useful post of yours. Waiting for more such posts like this.
Keep writing and sharing!
– Rithika
SEO Training in Chennai
This information is impressive..I am inspired with your post writing style & how continuously you describe this topic. After reading your post,thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..
ReplyDeletePeridot Systems Adyar Complaints
I have read your blog its very attractive and impressive. I like it your blog.
DeleteDigital Marketing Company in Chennai Digital Marketing Agency
SEO Company in India SEO Services in India
Digital Marketing Company in Chennai
the blog is very interesting and will be much useful for us. thank you for sharing the blog with us. please keep on updating.
ReplyDeleteInformatica Training in Chennai Adyar
this is really too useful and have more ideas from yours. keep sharing many techniques. eagerly waiting for your new blog and useful information. keep doing more.
ReplyDeleteDigital Marketing Services in Chennai
thank you for sharing such a great blog with us. expecting for your updation.
ReplyDeleteAndroid training in chennai
Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your.
ReplyDeleteDigital Marketing Company in India
Thank you for sharing such a nice and interesting blog with us. Hope it might be much useful for us. keep on updating...!!
ReplyDeleteseo company in india
digital marketing company in india
This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.
ReplyDeleteJava Training in Chennai
Interesting blog about running selenium cucumber test which attracted me more.Spend a worthful time.keep updating more.
ReplyDeleteMSBI Training in Chennai
Nice Information Regarding Selenium Cucumber Tests in Jenkins My sincere thanks for sharing this post Please Continue to share this post
ReplyDeleteSelenium Training in Chennai
Interesting blog post.This blog shows that you have a great future as a content writer.waiting for more updates...
ReplyDeleteDigital Marketing Company in India
Digital Marketing Services in India
Digital Marketing Agency in India
Digital Marketing Companies in India
Digital Marketing Companies India
Digital Marketing Agency India
Thanks Admin Amazing Post Keep UpDate.Thank You.
ReplyDeleteTop 10 Most Popular Internet Marketing Tools,Black Hat Vip Seo Software,Website Seo Backlinks Software,Website Traffic Bot Software.Etc Free Download Online Please Visit Our Website
http://best-premium-seo-tools.blogspot.com
The great service in this blog and the nice technology is visible in this blog. I am really very happy for the nice approach is visible in this blog and thank you very much for using the nice technology in this blog
ReplyDeletesoftware testing training in chennai
Nice post.Thank you so much for sharing.Yiioverflow is a web development company.We have well expert team in Angular JS, Ionic, Yii Framework, Node JS, Laravel, PHP, MySQL, and WordPress.If you want a developer visit.. https://yiioverflow.com/
ReplyDeleteThanks for your informative post. Selenium is the future of IT world to improve the quality of products.
ReplyDeleteSelenium Training institute in Chennai
Selenium Course in Chennai
Nice blog. Thanks for sharing such great information. App in minute provides you the platform you seek for creating your online store. App in minute can develop your Android Application & Website for free and display your products or services to the world. Once you create your Application & Website people will be able to know about your products and services as everyone is searching 24 X 7 for something to buy on the internet. For more information https://www.appinminute.com/
ReplyDeleteThe blog is awesome and the content is innovative..
ReplyDeleteselenium training in chennai
java training in chennai
This comment has been removed by a blog administrator.
ReplyDeleteThanks for such a great article here. I was searching for something like this for quite a long time and at last, I’ve found it on your blog. It was definitely interesting for me to read about their market situation nowadays. Well written article Thank You for Sharing with Us pmp training in chennai | pmp training class in chennai | pmp training near me | pmp training courses online | pmp training fee | project management training certification | project management training in chennai | project management certification online |
ReplyDeleteWell said!! much impressed by reading your article. Keep writing more.
ReplyDeleteSoftware testing training in chennai
Salesforce Training in Chennai
Big Data Training in Chennai
Hadoop Training in Chennai
Android Training in Chennai
Selenium Training in Chennai
Digital Marketing Training in Chennai
JAVA Training in Chennai
Best JAVA Training institute in Chennai
I like your article very much. It has many useful ideas and suggestions. I thinks it will be more helpful for my research in an efficient manner. Please try to post some more topics as well as possible.
ReplyDeletePython Training Institute in Chennai
Best Python Training in Chennai
best german classes in chennai
German language training in chennai
Devops Training in Chennai
RPA Training in Chennai
Provide good article thanks
ReplyDeleteBest software testing training in chennai
Your blog was really nice about the spring security. Your blog always helps me a lot as i am associated with application support services in USA
ReplyDelete.So thank you very much and keep up the good work.
ReplyDeletecheapest dogs to buy cheap toy boxes subscription boxes to over five hundred,000 monthly subscribers. Deeper insights into BarkBox's rating
https://www.smore.com/04vs7-barkbox-super-chewer-reviews
شركة صيانة تنظيف مكيفات مركزي بالدمام
ReplyDeleteشركة عزل الاسطح بالقطيف
شركة مكافحة حشرات بسيهات
شركة مكافحة حشرات بعنك
It is very good and very informative. There is a useful information in it.Thanks for posting...
ReplyDeletehttps://www.apponix.com/
I appreciate the admin of this blog and this concept is very comprehensive. Thank you!!!
ReplyDeleteCorporate Training in Chennai
Corporate Training institute in Chennai
Spark Training in Chennai
Oracle Training in Chennai
Unix Training in Chennai
Power BI Training in Chennai
Oracle DBA Training in Chennai
Corporate Training in Chennai
Corporate Training institute in Chennai
It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material. Fantastic read.
ReplyDeleteData science Course Training in Chennai |Best Data Science Training Institute in Chennai
RPA Course Training in Chennai |Best RPA Training Institute in Chennai
AWS Course Training in Chennai |Best AWS Training Institute in Chennai
Devops Course Training in Chennai |Best Devops Training Institute in Chennai
Thanks for sharing an informative blog keep rocking bring more details
ReplyDeletemobile application development training online
mobile app development course
mobile application development training
mobile app development course online
mobile application development course
online mobile application development
learn mobile application development
Thank you for excellent article.You made an article that is interesting.
ReplyDeleteInformatica online job support from India|Informatica project support AWS online job support from India|AWS project support|ETL Testing online job support from India|ETL Testing project support||Pega online job support from India|Pega project support|Pentaho online job support from India|Pentaho project support|Python online job support from India|Python project support
Keep on the good work and write more article like this...
ReplyDeleteNice infromation
Selenium Training In Chennai
Selenium course in chennai
Selenium Training
Selenium Training institute In Chennai
Best Selenium Training in chennai
Selenium Training In Chennai
ReplyDeleteRpa Training in Chennai
Rpa Course in Chennai
Rpa training institute in Chennai
Best Rpa Course in Chennai
uipath Training in Chennai
Blue prism training in Chennai
Data Science Training In Chennai
Data Science Course In Chennai
Data Science Training institute In Chennai
Best Data Science Training In Chennai
ReplyDeletePython Training In Chennai
Python course In Chennai
Protractor Training in Chennai
jmeter training in chennai
Loadrunner training in chennai
It is very informative post.Step by step you explained everything.Thank you for sharing this
ReplyDeletepython training institute in BTM layout
python training in btm
python training in btm Layout
Best Python Training in BTM Layout