Selenium Cucumber Java BDD Framework 12 | How To Create HTML Reports

  Рет қаралды 81,382

Automation Step by Step

Automation Step by Step

Күн бұрын

Free BDD tutorials - automationstep...
Hi, I am Raghav and Today we will learn: How to generate HTML Report
Step 1 : Add the maven cucumber reporting dependency in pom.xml
Step 2 : Add the build plugins in pom.xml
Step 3 : Clean project
Step 4 : From command line run - mvn test
Step 5 : From command line run - mvn verify
Step 6 : Check report generated
References:
Maven Repository - mvnrepository....
GitHub - github.com/dam...
StackOverflow - stackoverflow....
You can support by Joining Automation Step By Step channel: www.youtube.co...
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.
_______ ONLINE COURSES TO LEARN _______
automationstep...
Udemy Discounts - automationstep...
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
TestProject - bit.ly/2DRNJYE
----------- 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
Kubernetes - bit.ly/2MJIlMK
------------VIRTUALISATION------------
Virtualization on windows - bit.ly/2SItIL9
----------- VERSION CONTROL SYSTEM -----------
Git & GitHub - bit.ly/2Q1pagY
GitLab - bit.ly/2kQPGyQ
----------- 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
PYTHON - bit.ly/2Z4iRye
----------- IDE -----------
Visual Studio Code - bit.ly/2V15yvt
----------- BUILD TOOLS -----------
Maven - bit.ly/2NJdDRS
Gradle - bit.ly/30l3h1B
----------- 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
---------- Connect with Raghav -----------
Website - automationstep...
LifeCharger -
Udemy Courses - www.udemy.com/...
Facebook - / automationstepbystep
Twitter - / learnwithraghav
KZbin - / automationstepbystep
Never Stop Learning
Raghav

Пікірлер: 388
@akshaydhadge9684
@akshaydhadge9684 14 сағат бұрын
Just now completed the whole BDD Cucumber series, Must tell that it was very easy to understand. Thanks a lot for this clear explanation.
@RaghavPal
@RaghavPal 2 минут бұрын
You are most welcome Akshay
@sushanttavrawala8394
@sushanttavrawala8394 3 жыл бұрын
Thank you very much for this video. I tried almost 15 different videos and no luck. I really appriciate your help and support. It helps me to grow my knowledge in automation. Really thank you from botton of my heart.
@RaghavPal
@RaghavPal 3 жыл бұрын
Most welcome Sushant
@goutamnayak3685
@goutamnayak3685 Жыл бұрын
Thank you for the wonderful session. The entire session clarified all the doubts I had and explained each step in a way that can be understood by a beginner as well.
@RaghavPal
@RaghavPal Жыл бұрын
You're very welcome
@maroofraktim293
@maroofraktim293 4 ай бұрын
You are on a different level. Can't get simpler than this. Keep doing the good work sir. I appreciate your hard work.
@RaghavPal
@RaghavPal 4 ай бұрын
Thanks a ton Maroof
@developerinprogress9382
@developerinprogress9382 3 жыл бұрын
12 steps - Gateway to finish cucumber. finally finished a complete course in 2 days. Thanks master.
@RaghavPal
@RaghavPal 3 жыл бұрын
Keep it up
@lauragraham2264
@lauragraham2264 3 жыл бұрын
This series has been absolutely great. I needed to convert my Python Behave automated tests to Cucumber Java (we're going to do just Java going forward at the agency where I work) and I understand enough to get working and learning further. I will, of course, be doing your series of java classes as well. But this was an immense help and I have advertised your site on my work agency's blog and shared it with my fellow automated test developers. Thanks very very much.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Laura, so happy and grateful. Thanks
@farukhms1
@farukhms1 Жыл бұрын
Hi Raghav! Thank you so much for explaining cucumber in such a simple way, I am preparing for an interview and this whole series really helped me to understand the Cucumber framework. ! ! ! ! ! ! Great Presentation of each functionality of the framework ! ! ! ! ! ! !
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome 😊 Farukh
@jotunros
@jotunros 3 жыл бұрын
Thanks a lot for this course. Watching all these demonstrations helped me understand how to use cucumber very quickly.
@RaghavPal
@RaghavPal 3 жыл бұрын
Glad it was helpful!
@rajeevranjan6052
@rajeevranjan6052 9 ай бұрын
Its really awesome class i have completed. He teach very simply that anyone can understand !!! Thanks a lot Raghav sir
@RaghavPal
@RaghavPal 9 ай бұрын
So nice of you Rajeev
@ramya-s17
@ramya-s17 Күн бұрын
Thank you so much sir for explaining step by step. Bonus are the useful tips which you have shared. highly recommend this course for Selenium Cucumber.👍
@RaghavPal
@RaghavPal Күн бұрын
You are most welcome Ramya
@raga.iswariya
@raga.iswariya Жыл бұрын
Hey Raghav! I am preparing for an interview and this whole series helped me a lot. Thank you!
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome Ishwarya
@SRICHANDARKARPURAM
@SRICHANDARKARPURAM 2 жыл бұрын
Have gone through this entire cucumber series, this is really awesome to get started with, you made it Raghav...
@RaghavPal
@RaghavPal 2 жыл бұрын
most welcome
@aadiandadvikvlogs
@aadiandadvikvlogs 3 жыл бұрын
Thanks for this whole cucumber series Raghav.
@RaghavPal
@RaghavPal 3 жыл бұрын
Most welcome Manish. Do watch Basics of BDD - kzbin.info/aero/PLhW3qG5bs-L_hJZ3Nfg70ejkH3ktyzy34
@_danl6327
@_danl6327 2 жыл бұрын
Jus finished this Selenium cucumber series. Topics are explained very well as expected from Raghav. Thanks Raghav!!
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome
@KasuriThiyumini
@KasuriThiyumini Жыл бұрын
Many Thanks Mr.Raghav for the awesome video series.
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome Kasuri
@Technical_QA
@Technical_QA 2 жыл бұрын
Thanks Raghav this is absolutely wonderful series. This helps me a lot. Please make a video and include below points :- 1. Parallel execution through cucumber. 2. Rerun of failed test cases. 3. Running same test case multiple times through cucumber. 4. Explain the Extent reporting for this BDD.
@RaghavPal
@RaghavPal 2 жыл бұрын
Noted I will do Himanshu
@mrinalini326
@mrinalini326 Жыл бұрын
Such a wonderful and easy to understand explanation for Cucumber series.This helps a lot. Looking for some more info on below points :- 1. Parallel execution 2. Rerun of failed test cases. 3. Extent reporting
@RaghavPal
@RaghavPal Жыл бұрын
Glad it was helpful Mrinalini I will check on these topics too
@muhammadasifansari1031
@muhammadasifansari1031 3 жыл бұрын
Thank u so much for these videos... I have seen complete series ..it helped me so much 👍🏼👍🏼👍🏼
@RaghavPal
@RaghavPal 3 жыл бұрын
Glad to hear that Asif
@tapaskhandai
@tapaskhandai Жыл бұрын
Hi Raghav, Just want to say you a BIG THANK YOU. This series is very interesting and enjoyable.
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome Tapas
@SuperPrir
@SuperPrir 6 ай бұрын
Thanks Raghav for the great session on Selenuim cucmber I followed all of them 1 to 12. Im also going through the other tutorials in automation step by step. Just wondering is there any chances you will cover database testing also?
@RaghavPal
@RaghavPal 6 ай бұрын
Most welcome Priya.. I will plan on this.. let me know the exact topics you are looking at...
@anushrikher372
@anushrikher372 5 ай бұрын
This is very useful. Thanks for explaining HTML Report. Can you please make a session on how to attach screenshot in cucumber html report for every test steps and how to attach screencast of test cases
@RaghavPal
@RaghavPal 5 ай бұрын
Sure Anushri.. I will plan.. for now here are some steps to help you: ### Attaching Screenshots to Cucumber HTML Report (for Every Test Step) 1. Using Cucumber Hooks (Java): - Cucumber provides hooks that allow you to execute code before or after scenarios, steps, or other events. - 'll use the `@After` hook tcapture screenshots after each step. - Here's an example of how to do this: ```java import io.cucumber.java.After; import io.cucumber.java.Scenario; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; public class MyStepDefinitions { private WebDriver driver; // Initialize your WebDriver instance @After public void captureScreenshot(Scenario scenario) { if (scenario.isFailed()) { byte[] screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES); scenario.attach(screenshot, "image/png", "Screenshot"); } } } ``` - In this example, if a scenario fails, a screenshot is captured and attached to the report. 2. Configure Your Cucumber Runner: - Make sure your Cucumber runner class (where you specify features and glue code) includes the necessary configation. - For example: ``java import io.cucumber.junit.Cucumber; import io.cucumber.junit.CucumberOptions; import org.junit.runner.RunWith; @RunWith(Cucumber.class) @CucumberOptions( features = "src/test/resources/features", glue = "path.to.step.definitions", plugin = {"pretty", "html:target/cucumber-reports"} ) public class TestRunner { // Your runner configuration } ``` - The `html:target/cucumber-reports` option generates the HTML report. ### Including Screencasts in Cucumber Reports 1. Screencast Videos: - Embedding screencast videos directly into Cucumber reports is not a built-in feature. - However, you can provide linkso external video sting platforms (e.g., KZbin, Vimeo) in your report. - In your step definitions, capture the video URL (if available) and include it in the report. 2. Custom Reporting: - Consider using custom reporting tools or frameworks that allow more flexibility. - For example, Extent Reports or AllurReports provide tter support for attaching various types of media (including videos). Remember to adapt the code snippets above to your specific project structure and WebDriver setup Happy testing
@AbAz1173
@AbAz1173 3 жыл бұрын
Thank you so much Raghav! Helped me a lot ! Great explanation for this whole cucumber series! Appreciated for your kind efforts. God bless you!
@RaghavPal
@RaghavPal 3 жыл бұрын
Glad it was helpful!
@aasraful
@aasraful 2 жыл бұрын
Thanks a lot for this course. Now I know a lot of things about Selenium Cucumber Framework
@RaghavPal
@RaghavPal 2 жыл бұрын
Great to know
@sampathkhriyengar3059
@sampathkhriyengar3059 3 жыл бұрын
Excellent series , Thanks Raghav
@RaghavPal
@RaghavPal 3 жыл бұрын
Most welcome Sampath
@mariamshalini4738
@mariamshalini4738 Жыл бұрын
This is really awesome Cucumber series. Thanks a lot, Appreciate all your efforts.
@RaghavPal
@RaghavPal Жыл бұрын
So nice of you
@myWayIn619
@myWayIn619 3 жыл бұрын
Finally made it all the way!! Thanks, Raghav
@RaghavPal
@RaghavPal 3 жыл бұрын
So happy to know Frank
@sabbirahamed1894
@sabbirahamed1894 3 жыл бұрын
Hi @Raghav, I like to follow your automation test specially selenium. Your details explanation really save my day sometimes. Thank you .
@RaghavPal
@RaghavPal 3 жыл бұрын
You are most welcome Sabbir
@yuvathejak2976
@yuvathejak2976 2 жыл бұрын
Thank you So much Raghav For your Services for Software People...I had a Doubt...Shall we add Extent & Allure Report Annotations to Cucumber.
@RaghavPal
@RaghavPal 2 жыл бұрын
will need to see if that works and solves the need, can check some online examples
@liukuan5344
@liukuan5344 2 жыл бұрын
Hi Raghav, your cucumber videos are very useful, thanks a lot!
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome liu
@3aadel
@3aadel 3 жыл бұрын
Thank you so much Raghav. Helped me a lot ! Great explanation for this whole cucumber series!
@RaghavPal
@RaghavPal 3 жыл бұрын
So nice of you Adel
@abhijitbiradar
@abhijitbiradar 4 жыл бұрын
This video is very informative Raghav. Every time I follow your video and get things achieved. Many thanks for this
@RaghavPal
@RaghavPal 4 жыл бұрын
So nice of you Abhijit
@abhijitbiradar
@abhijitbiradar 4 жыл бұрын
@@RaghavPal, one request raghav...can you create an integration video of Extent report 4 with cucumber 4 testNG. I tried but faced the issue so askig
@madhumitapatil7200
@madhumitapatil7200 Жыл бұрын
Very detail and useful videos. I have oe question if I am using Cucumber and Selenium for UI testing which one would be the best automation tool for API/Backend testing?
@RaghavPal
@RaghavPal Жыл бұрын
Hi Madhumita When it comes to API/Backend testing, there are several automation tools available that can be used effectively in conjunction with Cucumber and Selenium. The choice of tool depends on various factors such as your project requirements, the programming language you are comfortable with, and the specific features and functionalities you need Here are a few popular automation tools for API/Backend testing: 1. Postman: Postman is a widely used tool for API testing. It provides a user-friendly interface to send requests, validate responses, and perform various tests on APIs. Postman supports scripting using JavaScript, making it flexible for complex testing scenarios. It also offers features like environment variables, data-driven testing, and easy collaboration 2. Rest-Assured: Rest-Assured is a Java library specifically designed for API testing. It provides a simple and intuitive syntax for writing API tests in Java. Rest-Assured integrates well with popular testing frameworks like JUnit and TestNG, and it supports various authentication methods, request/response validation, and data-driven testing 3. Karate: Karate is an open-source API testing framework that combines API testing, mock server capabilities, and API documentation in a single tool. Karate uses a BDD syntax, making it easy to write and read tests. It supports JSON and XML request/response handling, data-driven testing, parallel execution, and various authentication methods 4. WireMock: WireMock is a library for stubbing and mocking HTTP-based services. It allows you to create mock servers and define custom responses for API calls. WireMock is useful when you need to simulate API responses in specific scenarios or test integrations with external services that might not be available during testing These are just a few examples, and there are many other API testing tools available in the market. It's important to evaluate each tool based on your specific requirements, such as ease of use, integration with existing frameworks, support for data-driven testing, reporting capabilities, and community support Ultimately, the best automation tool for API/Backend testing depends on your project's needs, your team's expertise, and the level of integration you require with your existing Cucumber and Selenium framework
@sathyamoorthy2481
@sathyamoorthy2481 3 жыл бұрын
Thank you so much for clear and wonderful explanation on selenium and java 🤞
@RaghavPal
@RaghavPal 3 жыл бұрын
Most welcome Sathya
@RajshekharSalimaniMahanand
@RajshekharSalimaniMahanand 2 ай бұрын
Thankyou was very helpful
@RaghavPal
@RaghavPal 2 ай бұрын
Most welcome Rajshekhar
@pallabisaha5310
@pallabisaha5310 3 ай бұрын
Thank you so much Raghav,it helped a lot 😊
@RaghavPal
@RaghavPal 3 ай бұрын
Most welcome Pallabi
@kashishvarshney2225
@kashishvarshney2225 Жыл бұрын
Very much helpful and great series Thank you so much sir
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome Kashish
@nandankabra2161
@nandankabra2161 4 ай бұрын
Thanks for the course, I believe log4j integration would be cherry on top.
@RaghavPal
@RaghavPal 4 ай бұрын
Thanks Nandan, sure, I have done log4j in selenium java.. if you need can get the steps from there
@rashmirawat7671
@rashmirawat7671 3 жыл бұрын
Your video was very helpful and now I can say I can work on Cucumber.
@RaghavPal
@RaghavPal 3 жыл бұрын
That's great Rashmi
@awomancandocodinglearn2118
@awomancandocodinglearn2118 3 жыл бұрын
Thanks for this whole session of cucumber series.. It's really helpful
@RaghavPal
@RaghavPal 3 жыл бұрын
You're most welcome Riya
@thulasireddy3775
@thulasireddy3775 3 жыл бұрын
Thank you very much Ragav for this wonderful explanation. If possible please add the video on capturing the screenshot for failed steps and add it in the Html report in the same framework
@RaghavPal
@RaghavPal 3 жыл бұрын
Sure Thulasi, will add
@nghiavoai7993
@nghiavoai7993 3 жыл бұрын
This is awesome!. When do you make tutorials for Serenity?
@RaghavPal
@RaghavPal 3 жыл бұрын
will plan soon Nghĩa
@nghiavoai7993
@nghiavoai7993 3 жыл бұрын
@@RaghavPal Cool! Can't wait to learn from the best teacher!.
@PragyaSingh-hl7kd
@PragyaSingh-hl7kd 2 жыл бұрын
Thank you so much , your lectures are very helpful
@RaghavPal
@RaghavPal 2 жыл бұрын
Thanks Pragya
@SarangHoley
@SarangHoley 4 жыл бұрын
Thank you very much Raghav for such a detailed video on the topic 👍😊
@RaghavPal
@RaghavPal 4 жыл бұрын
Glad you liked it Sarang
@artempanteleev2636
@artempanteleev2636 3 жыл бұрын
Thank you for your time and this incredible course.
@RaghavPal
@RaghavPal 3 жыл бұрын
Most welcome Artem
@RVRemoTube
@RVRemoTube 2 жыл бұрын
Thank you very much Raghav
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome Ram
@ecatzkool7027
@ecatzkool7027 2 жыл бұрын
I have finished this series of videos and now have a good understanding of how the pieces fit from feature file to execution to reporting to how it can be integrated to CI. Your step by step from scratch is most helpful. Thank you! There is one piece that I can't figure and hope you can point me in the right direction. If I manage the features in JIRA/CucumberStudio, how do I sync it across to my project to maintain a single source of truth? Via git? Thanks again for the great work!
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi, thanks for the message, I have not tried this yet and will update in case I do this session
@krishnachemikela1863
@krishnachemikela1863 3 жыл бұрын
Thank you sir. It was great and amazing explanation.
@RaghavPal
@RaghavPal 3 жыл бұрын
You are most welcome Krishna
@QaAutomationAlchemist
@QaAutomationAlchemist 3 жыл бұрын
Great series and knowledge sharing, thanks a lot !
@RaghavPal
@RaghavPal 3 жыл бұрын
Glad you enjoyed it!
@PragyaSingh-hl7kd
@PragyaSingh-hl7kd 2 жыл бұрын
My dream to get a good job and your videos are helping me as a god Thank you so much
@RaghavPal
@RaghavPal 2 жыл бұрын
You can do it!
@mariyaraj2691
@mariyaraj2691 2 жыл бұрын
Can we Please have a session on SparkHTML Reports and how to interact Cucumber feature file with Excel sheet to pickup data!?
@RaghavPal
@RaghavPal 2 жыл бұрын
I will check on this Mariya
@ravitejachinna6369
@ravitejachinna6369 6 ай бұрын
Hi Raghav do we need to do same process in Intelij as well or we need to follow any other steps Let me know if you have any video on this
@RaghavPal
@RaghavPal 6 ай бұрын
Raviteja The steps are going to be the same.. just that some menu settings shortcuts etc etc can differ in Intellij
@bhagyalekshmi1
@bhagyalekshmi1 4 жыл бұрын
Thank u sir..all the 9 videos helped👍
@RaghavPal
@RaghavPal 4 жыл бұрын
So happy to hear this
@nesreenmohd665
@nesreenmohd665 2 жыл бұрын
Thank you for your tutorials and your explanation. Do you have a way to generate a report for UTs in java that is more readable for people who have no technical background. I would appreciate your feedback!
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Nesreen, I will check on this
@monikagupta3860
@monikagupta3860 Жыл бұрын
Hi @Raghav, Thank you so much for informative session. I have one doubt in reporting side, here you are passing plugin for .json and how come u are able to open in .html format. I was replicating in my machine it has only one file. i.e. .json report
@RaghavPal
@RaghavPal Жыл бұрын
Monika I am using a tool called Allure Report: qameta.io/allure-report/. It is a reporting tool that can be used with Selenium Java and Eclipse IDE. Allure Report can generate reports in a variety of formats, including HTML, JSON, and XML. To generate an HTML report from a JSON report, you can use the following command: ``` allure generate allure-results --clean -o allure-report ``` This command will generate an HTML report in the `allure-report` directory. The `--clean` option will clear the `allure-report` directory before generating the new report. This is useful if you want to make sure that the new report is up-to-date. You can then open the `allure-report/index.html` file in your web browser to view the report. If you are using Eclipse IDE, you can also use the Allure Report plugin to generate reports. To install the Allure Report plugin, go to **Help** > **Install New Software** and enter the following URL in the **Work with** field: ``` plugins.qameta.io/allurereport/update/ ``` Once the plugin is installed, you can generate a report by right-clicking on the test class or test suite that you want to generate a report for and selecting **Allure** > **Generate Report**. The Allure Report plugin will generate an HTML report in the `allure-results` directory. You can then open the `allure-report/index.html` file in your web browser to view the report. I hope this helps
@Deepak-ie7co
@Deepak-ie7co 4 жыл бұрын
As usual great explanation sir..thanks a lot.
@RaghavPal
@RaghavPal 4 жыл бұрын
Always welcome Deepak
@MyDIVYENDU
@MyDIVYENDU 4 жыл бұрын
Thanks for this wonderful piece of learning Sir. It works perfectly fine.
@RaghavPal
@RaghavPal 4 жыл бұрын
You are most welcome Divyendu
@kirans694
@kirans694 Жыл бұрын
Hello Raghav, Thank you so much for this tutorial. Could you please also add a cucumber report (html) screenshots for failed/passed/every step example on this playlist
@RaghavPal
@RaghavPal Жыл бұрын
Hi Kiran I will add on that
@SourabhSingh-zx1fh
@SourabhSingh-zx1fh 9 ай бұрын
My cucumber-report-html folder in target folder is coming as blank when I'm running the feature file not from cmd.
@RaghavPal
@RaghavPal 9 ай бұрын
Sourabh 1. Verify Cucumber reporting plugin configuration: Open your pom.xml file and ensure the Cucumber HTML reporting plugin is included in your dependencies. Look for plugins with names like cucumber-junit or cucumber-jvm-deps. Check if the plugin configuration specifies an output directory for the report. This should typically be defined in the section within the plugin configuration. 2. Confirm Eclipse Run/Debug configuration: In Eclipse, open the "Run/Debug Configurations" window. Select the configuration you're using to run your tests outside the command line. Check if the configuration includes appropriate arguments for Cucumber reporting. This might involve flags like --plugin html:target/cucumber-reports or --publish.
@pandutadavarthy7660
@pandutadavarthy7660 2 жыл бұрын
super bro simply super no words
@RaghavPal
@RaghavPal 2 жыл бұрын
Thank you so much 😀
@roopaar4726
@roopaar4726 2 жыл бұрын
Thanks a lot for all your videos...It really helped me to come up with selenium and cucumber automation framework. Also can you pleas add on how Screenshot can be taken on Test failure and attach it to the cucumber report
@RaghavPal
@RaghavPal 2 жыл бұрын
Great suggestion Roopa, I will do it, Meanwhile can check some online examples on this
@digvijaytikka1917
@digvijaytikka1917 3 жыл бұрын
Thank you so much...Completed all playlist for cucumber...Is new videos coming about same topic???
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Digvijay, I will add some new videos and updates in some time, For the time being, this is the playlist, can check all here automationstepbystep.com/
@digvijaytikka1917
@digvijaytikka1917 3 жыл бұрын
@@RaghavPal Ok Thank You
@sagarbhoir2876
@sagarbhoir2876 6 ай бұрын
Hi Raghav Sir... Its An Awesome Series... Can You Please Extend This Series By Integrating Browserstack With Selenium Cucumber Java BDD Framework. Also With Browserstack Integration, We Can Integrate Code To Support IOS Automation Also With This Framework, To Run Both Android And IOS With One System. And Also It Will Reduce Our Dependency On MAC & Also There Will Be No Need To Install And Configure Xcode, Etc.
@RaghavPal
@RaghavPal 6 ай бұрын
Sure Sagar.. I will work on this
@TheCoolparas
@TheCoolparas 2 жыл бұрын
Great teacher!
@RaghavPal
@RaghavPal 2 жыл бұрын
Thank you Paras
@jagratsahoo6885
@jagratsahoo6885 2 жыл бұрын
Hi Raghav. Thank you so much. The entire series was very helpful. Just I would like to add one thing. I am working on IntelliJ IDE and I dont see the reports getting created. Means Report file are getting generated but it doesnot allow me to open the same in a browser which would give a beautiful report.
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Jagrat, If the html file is getting generated, you can try to open the folder on your system that contains the file and then try to open the file in a browser In case there is some issue in generating the Reports, check the following: stackoverflow.com/questions/63524473/cucumber-report-is-not-getting-generated-in-intellij-idea stackoverflow.com/questions/68971319/cucumber-html-reports-are-not-generating-when-running-through-maven Also, you can try to check the Cucumber plugins available on IntelliJ - www.jetbrains.com/help/idea/enabling-cucumber-support-in-project.html#folder-structure
@UCIUbaf3b8lN7Q5GA8qO
@UCIUbaf3b8lN7Q5GA8qO Жыл бұрын
Hi Raghav, I was wondering if we could implement a screenshot on failure to the html-reports in Cucumber, do we still need extent-report? Also one more question I have for you: would you recommend to create the Methods of test steps like public bool testMethod() { try test steps true catch false} and when we call the methods in the TestPage we would call it by asserting that the method testMethod is true.
@RaghavPal
@RaghavPal Жыл бұрын
Hi, 1. Cucumber supports the ability to take screenshots on failure out-of-the-box. You can do this by using the @After hook in the StepDefinition class and using the TakesScreenshot interface provided by Selenium E.g. @After public void tearDown(Scenario scenario) { if (scenario.isFailed()) { final byte[] screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES); scenario.embed(screenshot, "image/png"); } driver.quit(); } 2. Creating methods for test steps and asserting their return value is a good practice, it can help you to keep your test code organized and maintainable The try-catch block is not necessary. Instead, you can use the assertTrue() method or similar methods from the org.junit.Assert class to check the return value of the test method e.g. public boolean testMethod() { //test steps return true; } public void testPageMethod() { assertTrue(testMethod()); } It's also important to note that the best practices for implementing a test framework are highly dependent on the specific requirements of the project and the team It's always good to have a clear understanding of the project requirements
@UCIUbaf3b8lN7Q5GA8qO
@UCIUbaf3b8lN7Q5GA8qO Жыл бұрын
@@RaghavPal thank you so much for the fast reply and for enlightening me, I will try to add the screenshots at the time when test fails, also I cannot use itestliseners because Im using Junit. Thanks a lot Raghav, you are the person whom people should learn from your character.
@UCIUbaf3b8lN7Q5GA8qO
@UCIUbaf3b8lN7Q5GA8qO Жыл бұрын
@@RaghavPal I want to make a correction, this is not your fault, it's because you are using a different version, the correct statements to attach screenshot is this way on newer version for cucumber, people might have trouble implementing it in theyr framework: @After public void tearDown(Scenario scenario) { if (scenario.isFailed()) { final byte[] screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES); scenario.attach(screenshot, "image/png", "failingScreenshot"); } driver.quit(); } // things changed instead of embed you will have to change it with attach.
@RaghavPal
@RaghavPal Жыл бұрын
Thanks for adding. This will help others
@wilmarsanchez807
@wilmarsanchez807 3 жыл бұрын
Thank you brother, you have taught me a lot, I would like to see your video teaching how to create reports with serenity BDD, thank you
@RaghavPal
@RaghavPal 3 жыл бұрын
Sure Wilmar
@BikerGirlBangalore
@BikerGirlBangalore 3 жыл бұрын
i just love the way u explain everything tqsm
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks Jenifer
@BikerGirlBangalore
@BikerGirlBangalore 3 жыл бұрын
@@RaghavPal im getting error if I run using feature file in other ways it runs fine can u pls help with this.... I'm getting a warning like by default cucumber is running in non strict mode...... Etc pls help me
@RaghavPal
@RaghavPal 3 жыл бұрын
Check this Jenifer - stackoverflow.com/questions/61061976/cucumberoptions-is-not-reading-in-runner-class-for-java8
@BikerGirlBangalore
@BikerGirlBangalore 3 жыл бұрын
@@RaghavPal yeah I tried but still the same
@RaghavPal
@RaghavPal 3 жыл бұрын
May have to check some examples online Jenifer
@rimscreations5159
@rimscreations5159 2 жыл бұрын
Really very helpful and thank you ♥️ , if u don't mind pls tell why it get another prjct error
@RaghavPal
@RaghavPal 2 жыл бұрын
will need details on the error and logs
@kanishkakaushalya6923
@kanishkakaushalya6923 3 жыл бұрын
Hi Raghav , I watched all the tutorials and this is awesome .Thank you so much and can you please do Serenity tutorial as well ?
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks Kanishka, sure I will do
@sauravbansal3
@sauravbansal3 3 жыл бұрын
Thank you so much for you videos. Help us alot. I am facing an issue which is When i am trying to add maven-cucumber-reporting then it is showing red in my pom.xml i tried to add it in dependency and as plugin. what should i do
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Saurav, close pom.xml, update project and check again, Also see if something is missing
@sosudhir21
@sosudhir21 3 жыл бұрын
Hi Raghav, Thanks a lot for excellent tutorial on Cucumber . Whole series is excellent. I have a question w.r.t this last session for reporting. Is there any possibility that any project has multiple test runner files. If Yes, then in that condition how we could get results for all runner files in one report? or we should have to provide different name in every runner file for cucumber.json report.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Sudhir, I believe you can have multiple runner files, but you will be running one at a time.
@MultiSamanoske
@MultiSamanoske 2 жыл бұрын
Thanks Raghav da. Simple and very useful tutorial. Question: can you please make a video on how to create main project where all methods and libraries are stored and how to use that inside a sub project as a dependency in pom.xml
@RaghavPal
@RaghavPal 2 жыл бұрын
sure, will do
@AndeBharathReddy
@AndeBharathReddy 4 жыл бұрын
Thank you sir for the explanation..
@RaghavPal
@RaghavPal 4 жыл бұрын
You are most welcome Bharath
@sridhanusiya8730
@sridhanusiya8730 3 жыл бұрын
Hi Raghav, thanks for the whole series. Can also explain bdd cucumber using gradle tool
@RaghavPal
@RaghavPal 3 жыл бұрын
Will do soon
@zecemnenik
@zecemnenik 2 жыл бұрын
Thank you so much, Raghav! Helped me a lot! I have one request. Could you please create the same video, but with step by step explanation about adding screenshots of failure cases. Many thanks to your job! it's very helpful for me!
@RaghavPal
@RaghavPal 2 жыл бұрын
I will plan
@anicricket30
@anicricket30 2 жыл бұрын
How to trigger any method in cucumber when test gets failed like we used to in testng, listner to get the screenshot when a test gets failed???
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Aniruddha, can check this stackoverflow.com/questions/38839218/screenshot-on-failure-with-java-cucumber www.dezlearn.com/capture-screenshot-for-failed-step-in-cucumber-bdd-automation-report/
@adewale3157
@adewale3157 2 жыл бұрын
@Automation Step by Step - Is it possible to use this bdd in docker and still get the same result output?
@RaghavPal
@RaghavPal 2 жыл бұрын
In general yes, will need to check the details on setup and requirements
@judithelemo
@judithelemo Жыл бұрын
Thanks a lot. Great explanations helped me a lot. Looking for help on how to set up framework to receive emails especial during the testing of email verification for a new registration process or Password reset process. i have tried but it gets confusing. A step by step video with your detailed explanation will go a long way🙏
@RaghavPal
@RaghavPal Жыл бұрын
Hi Judith To receive emails during the testing of email verification for a new registration process or password reset process, you can use JavaMail API in your Selenium Java Cucumber framework. Here are the high-level steps to set up email verification in your framework: Add JavaMail API dependency to your project: You can add the JavaMail API dependency to your project using your build management tool such as Maven or Gradle. For example, in Maven, you can add the following dependency to your pom.xml file: com.sun.mail javax.mail 1.6.2 Create a Java class to receive emails: You can create a Java class that will connect to the email server using JavaMail API and retrieve the verification link or code from the email. You can use the following code to get the verification link from the email: Properties props = new Properties(); props.setProperty("mail.store.protocol", "imaps"); Session session = Session.getInstance(props, null); Store store = session.getStore(); store.connect("imap.gmail.com", "your_email", "your_password"); Folder inbox = store.getFolder("inbox"); inbox.open(Folder.READ_ONLY); Message[] messages = inbox.getMessages(); for (int i = messages.length - 1; i >= 0; i--) { Message message = messages[i]; String subject = message.getSubject(); if (subject.equals("Registration Verification")) { String body = message.getContent().toString(); Pattern pattern = Pattern.compile("(?
@judithelemo
@judithelemo Жыл бұрын
@@RaghavPal i will be trying it out. Thanks
@shubhamverma7237
@shubhamverma7237 4 жыл бұрын
Great video.. Can you please share how to run failed test cases automatically..
@RaghavPal
@RaghavPal 4 жыл бұрын
I will cover that Shubham
@sapthagirimanivannan1899
@sapthagirimanivannan1899 2 жыл бұрын
Thanks for the videos. Any directions to gradle cucumber reporting
@RaghavPal
@RaghavPal 2 жыл бұрын
Not yet Sapthagiri
@arunr1232
@arunr1232 3 жыл бұрын
Awesome Raghav bro.. I have a question.. can we generate extent report for cucumber framework??
@RaghavPal
@RaghavPal 3 жыл бұрын
Yes you can Arun
@arunr1232
@arunr1232 3 жыл бұрын
@@RaghavPal how to get it done.. can you please add video for that bro.. extent or allure anything..
@arunr1232
@arunr1232 3 жыл бұрын
@@RaghavPal Does client gets satisfied with cucumber JVM report?
@RaghavPal
@RaghavPal 3 жыл бұрын
I will plan to add a session on this
@arunr1232
@arunr1232 3 жыл бұрын
@@RaghavPal Thank you bro :)
@startareq
@startareq 3 жыл бұрын
Hi Sir! How and where we can apply wait in bdd cucumber framework
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Amanullah, Waits will come from Selenium Library. Can check this www.selenium.dev/documentation/webdriver/waits/
@bibinkrishna7653
@bibinkrishna7653 2 жыл бұрын
Thanks Ragav. This tutorial covers to get this new report when we trigger it from maven. If i need the same report by just running the runner class as junit, how can we get the report? Could you please help me?
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Bibin, yes, can get from runner, I am not sure if I covered that in any video, but you can always check some online examples
@nareshchinnam8349
@nareshchinnam8349 4 жыл бұрын
Hi Sir, Could you please produce a video on parallel execution in cucumber framework and how to make thread safe reports, webdrivers during parallel execution
@RaghavPal
@RaghavPal 4 жыл бұрын
I will plan Naresh
@AjithKumar-jb7ke
@AjithKumar-jb7ke 3 жыл бұрын
Thank you so much, could you please tell how to add screenshot to the extent report?
@RaghavPal
@RaghavPal 3 жыл бұрын
I will plan a session Ajith
@yahyaamin9876
@yahyaamin9876 2 жыл бұрын
Thank you for this tutorial Raghav. It has really helped me a lot. I had a question. I don't want to run "mvn -DskipTests" manually by opening the command prompt. So for that I created a Command line executor using Runtime.exec() Java function. I placed the command line function in my @AfterAll Cucumber tag. It runs the "mvn -DskipTests" after the execution but the generated report is empty. Any workaround for this?
@RaghavPal
@RaghavPal 2 жыл бұрын
I will need to check with hands-on
@ArjunYalapalli
@ArjunYalapalli Жыл бұрын
Hi sir, just completed series. One doubt that his to rerun testcases if I want to run only failed test cases
@RaghavPal
@RaghavPal Жыл бұрын
Hi Arjun, this can help: stackoverflow.com/questions/11719898/how-to-rerun-the-failed-scenarios-using-cucumber qaautomation.expert/2022/09/12/how-to-rerun-failed-tests-in-cucumber/
@archanamuthukrishnan6465
@archanamuthukrishnan6465 Жыл бұрын
Hello Sir I am able to generate report for first run and rerun ...is there a way to combine both in to final cucumber report ? .please help sir
@RaghavPal
@RaghavPal Жыл бұрын
this can help www.linkedin.com/pulse/how-merge-your-parallel-test-cucumber-reports-sumanpreet-jhinjer/ stackoverflow.com/questions/49485798/merging-results-from-different-cucumber-html-reports mkolisnyk.github.io/cucumber-reports/consolidated-report
@adewale3157
@adewale3157 2 жыл бұрын
Many thanks for your efforts and time created for making all the videos without charging. I tried many different videos with no luck of running Cucumber BDD successful. These series helped me growing my knowledge in automation. However, there is issue on cmd line - [WARNING] project path .....\target\cucumber.json does not exist.
@RaghavPal
@RaghavPal 2 жыл бұрын
Glad I could help Ade, just check the path given, Also in your commands do not give any path that has spaces in names or enclose the path within quotes " "
@adewale3157
@adewale3157 2 жыл бұрын
@@RaghavPal Thanks for the quick respond, there is no space in the names, there is doubt quotes around feature and glue. Although, I am using the latest version of cucumber-java (7.0.0), cucumber-junit (7.0.0), junit (4.13.2) and Selenium (4.0.0).
@RaghavPal
@RaghavPal 2 жыл бұрын
will need to check some latest examples online
@adewale3157
@adewale3157 2 жыл бұрын
@@RaghavPal I have resolved the issue and it is working as expected. Many thanks
@santhoshkumar-to4wv
@santhoshkumar-to4wv 3 жыл бұрын
Thank you very much Raghav, Lot of Information can u explain the Extent reporting for this BDD
@RaghavPal
@RaghavPal 3 жыл бұрын
Will plan a session Santhosh
@deepika5137
@deepika5137 3 жыл бұрын
Hi raghav can we run this tests thru test runner instead of cmd??
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Deepika, you can run from IDE or CMD, which TestRunner do you mean here, you can use Run as TestNG test
@deepika5137
@deepika5137 3 жыл бұрын
@@RaghavPal Thanks Raghav for the response.Yes I mean thru the run as testng test and thanks for the clarification.Waiting for your videos in udemy portal more on selenium
@RaghavPal
@RaghavPal 3 жыл бұрын
Okay this option you will get if you have added TestNG plugin in eclipse and then restart your eclipse. Check kzbin.info/www/bejne/r6q4qpxuqJllmqc
@thulasireddy3775
@thulasireddy3775 3 жыл бұрын
Hi Raghav, I have a requirement where I need a framework which can automate both UI and API. Can you suggest the best framework that full fill my requirement
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Thulasi, Can either create a custom framework using Selenium and Rest Assured or any other API library or can use tools like Katalon Studio TestProject
@trupti.............4585
@trupti.............4585 Жыл бұрын
Hello Raghav, Thanks for this series. Need one help bit urgent. I have a basic java based project and not maven based. how can I run feature file with the jar created from project. In java class we use java -jar nameofjar.jar args but in case of feature file what can be a command.
@RaghavPal
@RaghavPal Жыл бұрын
Hi Trupti, I had made a video on how to create executable jar - kzbin.info/www/bejne/aWeZqo2bg8RnmLc However I will suggest, this way may not be very efficient, You can instead use command line to run your project and to share your project can use GitHub or any other respositories
@trupti.............4585
@trupti.............4585 Жыл бұрын
@@RaghavPal Hi Raghav, thanks for your reply. Actually the thing is we do not want to share code and just want the team to write feature files and run it using jar file.Pls could you share how can we do that
@RaghavPal
@RaghavPal Жыл бұрын
Okay, a CI tool like jenkins can also help
@sreekanthkamal7680
@sreekanthkamal7680 3 жыл бұрын
Could you please add parallel execution as well in this framework.
@RaghavPal
@RaghavPal 3 жыл бұрын
I will try to add Sreekanth
@sreekanthkamal7680
@sreekanthkamal7680 3 жыл бұрын
@@RaghavPal Thank you...wish u and ur family a very happy pongal
@shahanam687
@shahanam687 Жыл бұрын
Can add more metrix on this cucumber report? (For eg:project, number , date)
@RaghavPal
@RaghavPal Жыл бұрын
Yes, you can add additional metrics or custom information to your Cucumber reports in Selenium Java Cucumber. Cucumber provides hooks and plugins that allow you to customize and enhance the generated reports. To add custom metrics or information to your Cucumber reports, you can follow these steps: 1. Create a new Cucumber plugin: Implement a custom Cucumber plugin by creating a class that implements the `cucumber.api.Plugin` interface. This plugin will define the behavior for adding custom information to the reports. ```java import cucumber.api.Plugin; import cucumber.api.Result; import cucumber.api.event.*; import cucumber.api.formatter.Formatter; public class CustomCucumberPlugin implements Plugin, Formatter { // Implement the necessary methods // You can override methods like `setEventPublisher`, `uri`, `feature`, `scenario`, `result`, etc. // These methods allow you to capture various events during the execution and customize the report accordingly // For example, you can extract the project name, number, or date from environment variables or configuration files // and include them in the report. } ``` 2. Register the plugin: Register your custom plugin by adding it to the Cucumber options in the `@CucumberOptions` annotation in your test runner class. ```java import cucumber.api.CucumberOptions; import cucumber.api.junit.Cucumber; import org.junit.runner.RunWith; @RunWith(Cucumber.class) @CucumberOptions( // Add other options as needed plugin = {"path.to.CustomCucumberPlugin"} ) public class TestRunner { // Your test runner code } ``` 3. Customize the report output: In your custom plugin implementation, you can use the provided methods to capture relevant events during the test execution (e.g., `feature`, `scenario`, `result`, etc.). Extract the desired metrics or information and format them according to your requirements. ```java import cucumber.api.Result; import cucumber.api.event.*; public class CustomCucumberPlugin implements Plugin, Formatter { // ... @Override public void result(Result result) { // Customize the report output based on the test result // Extract additional metrics or information and include them in the report // You can use the provided methods and event data to access relevant information // and format it as needed } // ... } ``` By implementing these steps, you can extend the functionality of the Cucumber reports and include additional metrics or custom information in the generated reports based on your specific requirements. Note: The above code snippets provide a general outline of the approach. You may need to adapt the code to your specific project structure and requirements
@purvikala614
@purvikala614 3 жыл бұрын
Hi Raghav, Thanks for this series, it is very helpful. I am facing an issue here - I have run the command mvn clean test and then mvn verify -DskipTests as shown in the video however after doing refresh in the project I am not getting the html report. I tried multiple times. Can you tell me what I might had done wrong here?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Purvi, what is the error you are getting in the logs
@purvikala614
@purvikala614 3 жыл бұрын
@@RaghavPal There is no error, I did clean the project and when I ran it again, only folder is getting created with no files inside as showed in the demo. Or can you help me where should I find the logs?
@RaghavPal
@RaghavPal 3 жыл бұрын
You will get all the logs and details in the console. You can also remove the Reports folder and let the code create it,
@hemangishelake4379
@hemangishelake4379 4 жыл бұрын
Thanks for awesome videos. where I can get your cucumber command line tutorial as you shown in this video
@RaghavPal
@RaghavPal 4 жыл бұрын
Will upload soon Hemangi, by end of this week
@vaishnaviramamoorthy9143
@vaishnaviramamoorthy9143 Жыл бұрын
I am creating a project from scratch.I had just followed your steps to generate reports.But while running 'maven test' I could see Test runs : 0 It is not considering my test cases at all.Please help
@RaghavPal
@RaghavPal Жыл бұрын
Hi Vaishnavi Here are some possible reasons why your Cucumber test cases are not being considered when you run `maven test`: * You may have a typo in your feature file or step definition. * You may not have installed all of the required dependencies. * You may not have configured your project correctly. To troubleshoot this, you can try the following: * Check your feature file and step definition for typos. * Run `maven dependency:tree` to see if all of the required dependencies are installed. * Check your project configuration to make sure that it is correct I hope this helps
@prabaharans305
@prabaharans305 4 жыл бұрын
Thanks for the detailed explanation Sir. Really helpful and Appreciate your work. I need to implement same type HTML report for data driven testing in soapui. Can you please help me on this?
@RaghavPal
@RaghavPal 4 жыл бұрын
You are most welcome Prabaharan, you can find some help from the SoapUI tutorials on my channel, Can check here - automationstepbystep.com/
@prabaharans305
@prabaharans305 4 жыл бұрын
@@RaghavPal Thanks for the note. Given link is really helpful. Can you help me in creating html report for data driven testing in soapui open source?
@RaghavPal
@RaghavPal 4 жыл бұрын
I will plan
@prabaharans305
@prabaharans305 4 жыл бұрын
@@RaghavPal Thanks much.
@2105ricky
@2105ricky 6 ай бұрын
Hi Raghav, thanks for the video. For me the cucumber.json is getting created but the cucumber-report-html is not getting created also tried options from the reference link you have given. If you can highlight anything i have missed.
@RaghavPal
@RaghavPal 6 ай бұрын
Tejpal If your `cucumber.json` file is being generated but the `cucumber-report-html` is not, let's troubleshoot the issue. Here are some steps to check and potential solutions: 1. Check Pom.xml Configuration: - Ensure that you have correctly added the `maven-cucumber-reporting` plugin in your `pom.xml`. - Verify that the plugin configuration includes the correct paths for input (`cucumber.json`) and output (`cucumber-report-html`). 2. Runner Class Configuration: - In your Cucumber runner class (usually named `TestRunner`), make sure you have specified the plugin for HTML reports. - Example: ```java @RunWith(Cucumber.class) @CucumberOptions( features = "src/test/resources/features", glue = {"stepDefinitions"}, plugin = {"pretty", "html:target/cucumber-reports"} ) public class TestRunner { // Your runner class code } ``` 3. Verify Execution Goals: - Run the following Maven goals to generate the reports: - `mvn clean test` (to generate the Cucumber report file `cucumber.json`) - `mvn verify -DskipTests` (to generate the `cucumber-report-html` based on `cucumber.json`) 4. Check File Paths: - Verify that the paths specified in the plugin configuration match the actual locations of your files. - Ensure that the `cucumber.json` file is being generated in the expected location. 5. Project Structure: - Confirm that your project structure adheres to the standard Cucumber directory structure: ``` src └── test └── java └── stepDefinitions └── resources └── features ``` 6. Maven Dependencies: - Ensure that your project's dependencies (Cucumber, JUnit, etc.) are correctly defined in your `pom.xml`. 7. Clean and Rebuild: - Sometimes, cleaning the project (`mvn clean`) and rebuilding it can resolve issues related to generated reports. 8. Check Console Output: - When running your tests, check the console output for any error messages related to report generation. - Look for any warnings or exceptions that might provide clues. 9. Plugin Version Compatibility: - Verify that the versions of your Cucumber dependencies and the `maven-cucumber-reporting` plugin are compatible. 10. GitHub Reference: - If you're still facing issues, consider referring to the GitHub repository for `maven-cucumber-reporting` for any known issues or updates. Remember to adapt these steps to your specific project setup..
@2105ricky
@2105ricky 6 ай бұрын
@@RaghavPal Thank you for the reply.😊 Is there any change in configuration if testng is used instead of junit?
@RaghavPal
@RaghavPal 6 ай бұрын
will need to check based on your project.. check if you are already using some testing library
Selenium Cucumber Java BDD Framework 11 | How to run from CommandLine
36:27
Automation Step by Step
Рет қаралды 56 М.
Não sabe esconder Comida
00:20
DUDU e CAROL
Рет қаралды 34 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 262 #shorts
00:20
Selenium Cucumber Java BDD Framework 1 - Setup | Step by Step | Raghav Pal
43:25
Automation Step by Step
Рет қаралды 747 М.
Selenium Cucumber Java BDD Framework 6 - Page Object Model | Step by Step
26:34
Automation Step by Step
Рет қаралды 136 М.
11 | Cucumber Tutorial | Cucumber HTML Report | Failed Screenshots
14:23
Saravanan Seenivasan
Рет қаралды 4,3 М.
Selenium Cucumber Java BDD Framework 9 - Hooks | Step by Step
37:32
Automation Step by Step
Рет қаралды 83 М.
Cucumber 4   Generating Latest Extent Reports and Maven Cucumber reporting plugin
15:16
Way2Automation - Rahul Arora
Рет қаралды 49 М.
What is XPath | How to create XPath | for Beginners
10:53
Automation Step by Step
Рет қаралды 254 М.
Selenium Cucumber BDD Framework with Java and TestNG - Login Test
33:42
SDET Adda For QA Automation
Рет қаралды 39 М.
Selenium Cucumber Java BDD Framework 7 - Page Factory | Step by Step
33:01
Automation Step by Step
Рет қаралды 103 М.
How to add Screenshot in Extent Report for Failed Test Cases in Selenium
54:04
Naveen AutomationLabs
Рет қаралды 77 М.
Cucumber Html And Cucumber JVM Report
9:59
Robotic Pro
Рет қаралды 51 М.