Cucumber HTML Report - Using Maven Cucumber Report Plugin

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 30

  • @adarsh_adi
    @adarsh_adi 2 ปีที่แล้ว +1

    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.

  • @Someone_2923
    @Someone_2923 4 ปีที่แล้ว +2

    Thanks for the video..
    Is it possible to merge or append reports with existing results?

    • @SaravananSeenivasan
      @SaravananSeenivasan  4 ปีที่แล้ว +1

      i don't think so but you can see the trend if you have existing results maintain in same directory

  • @akshaykarkare4851
    @akshaykarkare4851 2 ปีที่แล้ว

    Can you please explicitly explain how do you add System.out.prinln or logs to Reports ?

  • @sudhakarsylos1342
    @sudhakarsylos1342 2 ปีที่แล้ว

    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

  • @rashmis1113
    @rashmis1113 2 ปีที่แล้ว

    Hi.. great tutorial.. but can you please show how to achieve this in gradle and TestNG

  • @Al-oh9yr
    @Al-oh9yr 2 ปีที่แล้ว +1

    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
      @SaravananSeenivasan  2 ปีที่แล้ว

      do you have any share folder access where everyone can access

  • @pankajbarhate5920
    @pankajbarhate5920 4 ปีที่แล้ว +1

    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
      @SaravananSeenivasan  4 ปีที่แล้ว

      Thanks Pankaj, can you share your code I will check

    • @pankajbarhate5920
      @pankajbarhate5920 4 ปีที่แล้ว +1

      @@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
      @SaravananSeenivasan  4 ปีที่แล้ว

      ​@@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
      @pankajbarhate5920 4 ปีที่แล้ว

      @@SaravananSeenivasan Hello Sir, I have used the complete StepDefinitions path still not code is not working.

    • @pankajbarhate5920
      @pankajbarhate5920 4 ปีที่แล้ว

      can i email you my code?

  • @Babita142
    @Babita142 2 ปีที่แล้ว

    Hi, m following same steps. But getting errors. Can you please help me

    • @SaravananSeenivasan
      @SaravananSeenivasan  2 ปีที่แล้ว

      please share the error here

    • @Babita142
      @Babita142 2 ปีที่แล้ว +1

      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
      @SaravananSeenivasan  2 ปีที่แล้ว +1

      Thanks Babita
      happy to help

  • @sreekanthkamal7680
    @sreekanthkamal7680 3 ปีที่แล้ว +1

    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
      @SaravananSeenivasan  3 ปีที่แล้ว

      Sure will do, please refer my GitHub repo for multiple sample projects
      github.com/sseenivasan89?tab=repositories

    • @sreekanthkamal7680
      @sreekanthkamal7680 3 ปีที่แล้ว +1

      @@SaravananSeenivasan sure , thank u very much.

  • @SachinN3004
    @SachinN3004 4 ปีที่แล้ว +1

    Can you share this code on github?

    • @SaravananSeenivasan
      @SaravananSeenivasan  4 ปีที่แล้ว +1

      Sure will add and will share the repo details here, Thanks for watching 👍🏻

    • @GauravKumar-hy5mm
      @GauravKumar-hy5mm 3 ปีที่แล้ว +1

      @@SaravananSeenivasan Pls share the code

    • @SaravananSeenivasan
      @SaravananSeenivasan  3 ปีที่แล้ว

      @@GauravKumar-hy5mm sure will share and update here

    • @SaravananSeenivasan
      @SaravananSeenivasan  3 ปีที่แล้ว +1

      github.com/sseenivasan89/Cucumber4-With-POM

  • @archanamuthukrishnan6465
    @archanamuthukrishnan6465 ปีที่แล้ว

    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