No video
Cucumber HTML Report - Using Maven Cucumber Report Plugin
To generate the cucumber HTML report using Maven cucumber report plugin
Maven Cucumber Report
Reference - gitlab.com/mon...
Dependencies:
de.monochromata.cucumber
reporting-plugin - 4.0.53
net.masterthought
cucumber-reporting - 5.3.0
Configuration:
Option 1: Cucumber - Junit
@CucumberOptions(plugin = { "de.monochromata.cucumber.report.PrettyReports:target/cucumber" })
Usage:
github.com/dam...
Option 2: pom.xml plugin
github.com/dam...
Jenkins Setup:
github.com/jen...
LinkedIn : www.linkedin.com/in/sseenivasan89
GitHub : github.com/sse...
#cucumberreport #mvncucumberreport
Пікірлер: 30
Hi Saravanan, With cucumber-jvm 7.0.0 and reporting-plugin 7.0.0 I was getting the pretty reports, but with upgrading to 7.3.0 for both I am getting Passed files has no features exception. Reporting plugin internally uses cucumber-reporting and am running via cli with -p argument.
Hi i have implemented report.. project names other txt given to display is not getting updated in the report.. plz suggest me to update same thanks
Thanks for the video.. Is it possible to merge or append reports with existing results?
@SaravananSeenivasan
3 жыл бұрын
i don't think so but you can see the trend if you have existing results maintain in same directory
Can you please explicitly explain how do you add System.out.prinln or logs to Reports ?
Hi Share how do we share the report to other team/people. As I see the report I'd created in your local how does other people access it??
@SaravananSeenivasan
Жыл бұрын
do you have any share folder access where everyone can access
Hello Sir, Firstly, Thank you for sharing the video on youtube...Its very very useful and informative video. I have a query - After executing Runner class, only steps are appeared but the test case results did not appear like no. of test cases pass or fail. Also, HTML reports are not generated after passing the pretty code from the runner file. Please guide me.
@SaravananSeenivasan
3 жыл бұрын
Thanks Pankaj, can you share your code I will check
@pankajbarhate5920
3 жыл бұрын
@@SaravananSeenivasan Hello Sir, Please refer to the detailed screen captures of my code. Please guide me. When I ran the JUnit Test its also failed. And showing "io.cucumber.junit.UndefinedStepException: The step "User is on login page" is undefined. You can implement it using the snippet(s) below: " after this glue code appeared. //JRE System Library - Execution environment JavaSE-1.8(jre1.8.0_251) //Added Dependencies selenium-java - 3.141.59 testng - 6.14.3 maven-compiler-plugin - 3.8.1 maven-surefire-plugin - 2.19.1 cucumber-extentsreport - 3.1.1 Cucumber-java - 6.8.1 Cucumber-junit - 6.8.1 Cucumber-core- 6.8.1 //Feature file Feature: feature to test login functionality Scenario: Check login is successful with valid credentials Given User is on login page When User enters the username and password And Clicks on login button Then User is navigated to the home page //LoginSteps2 package StepDefinations; import io.cucumber.java.en.And; import io.cucumber.java.en.Given; import io.cucumber.java.en.Then; import io.cucumber.java.en.When; public class LoginSteps2 { @Given("User is on login page") public void user_is_on_login_page() { System.out.println("User is on login page"); } @When("User enters the username and password") public void user_enters_the_username_and_password() { System.out.println("User enters the username and password"); } @And("Clicks on login button") public void clicks_on_login_button() { System.out.println("Clicks on login button"); } @Then("User is is navigated to the home page") public void user_is_is_navigated_to_the_home_page() { System.out.println("User is is navigated to the home page"); } } //Runner file package StepDefinations; import org.junit.runner.RunWith; import io.cucumber.junit.Cucumber; import io.cucumber.junit.CucumberOptions; @RunWith(Cucumber.class) @CucumberOptions(features="src/test/resources/Features", glue={"StepDefinitions"}, plugin = { "pretty", "html:target/Htmlreports/report.html"}) public class Runner3 { } Thank you --Pankaj Barhate
@SaravananSeenivasan
3 жыл бұрын
@@pankajbarhate5920 looks like feature file not getting the SetoDefnitions folder location, in glue can you pass complete StepDefinitions path and check, if not let me know i will share one sample project setup
@pankajbarhate5920
3 жыл бұрын
@@SaravananSeenivasan Hello Sir, I have used the complete StepDefinitions path still not code is not working.
@pankajbarhate5920
3 жыл бұрын
can i email you my code?
Hi.. great tutorial.. but can you please show how to achieve this in gradle and TestNG
Hi sir.. can u please upload a testing framework using cucumber -testng or cucumber-junit using java from scratch, that will be really a great help for many.
@SaravananSeenivasan
3 жыл бұрын
Sure will do, please refer my GitHub repo for multiple sample projects github.com/sseenivasan89?tab=repositories
@sreekanthkamal7680
3 жыл бұрын
@@SaravananSeenivasan sure , thank u very much.
Hi, m following same steps. But getting errors. Can you please help me
@SaravananSeenivasan
2 жыл бұрын
please share the error here
@Babita142
2 жыл бұрын
I personally and highly recommend this trainer.. you are really very helpful person. Guys anyone get stuck at any time in automation. I would recommend to approach @sir. He will help you and will make sure your issue get resolved with amazing automation skills he has. Thanks a lot sir 😊
@SaravananSeenivasan
2 жыл бұрын
Thanks Babita happy to help
Can you share this code on github?
@SaravananSeenivasan
3 жыл бұрын
Sure will add and will share the repo details here, Thanks for watching 👍🏻
@GauravKumar-hy5mm
3 жыл бұрын
@@SaravananSeenivasan Pls share the code
@SaravananSeenivasan
3 жыл бұрын
@@GauravKumar-hy5mm sure will share and update here
@SaravananSeenivasan
3 жыл бұрын
github.com/sseenivasan89/Cucumber4-With-POM
Hello Sir I am using Cucumber plugin to generate Cucumber JVM reports.i am able to view generated report thorugh Jenkins .I need to email it as attachments.I am using below code to do ..but I am not able to find .html report to email that.. under target seperate folder is not getting generated where these reports will be stored in Jenkins ...it works fine in local... { emailext body:"test ", attachmentsPatters:"**/* html" } This should search for all available html throughout the workspace right ?...why am I not able to get my generated html report? I am able to see report generated like below cdp-jenkins-pass-**/job/{jobname}/job/{jobname}/job/{branchname}/{build number}/cucumber-html-reports_****/overview_features.html I am able to find workspace folder but it doesn't have this report In my output I am able see below message Copied one file from workspace to reports directory "var/jenkins_home/jobs/{projectname}/jobs/jobname/branches/{branchname}/builds/{buildnumber}/cucumber_html_reports/.cache I am not able to find above path.not sure exactly where my reports directory is located..is there any way to find using jenkinspipeline scrips