How to take screenshot on test case failure in Cucumber and attach to Extent report

Поділитися
Вставка
  • Опубліковано 1 гру 2024

КОМЕНТАРІ • 9

  • @poojalakshmi1189
    @poojalakshmi1189 9 місяців тому

    Thank you. Simpler explanation for understanding quickly

  • @manishkannamoney7455
    @manishkannamoney7455 Рік тому

    Great!Explanation
    Can you share your stepdefinitions class?

  • @karthishiva5811
    @karthishiva5811 4 роки тому +2

    Could you please upload this project in github , it will be more useful

  • @mtyaqoobi1234
    @mtyaqoobi1234 11 місяців тому

    can you share your base class please?

  • @vaibhavsharma7386
    @vaibhavsharma7386 2 роки тому

    hi, do we have any mechanism to add screen shot only for desired steps of each scenario?
    Example : Out of 5 steps of one scenario I want to attach screen shot only for 2 steps

    • @Al-oh9yr
      @Al-oh9yr 2 роки тому

      Same doubt I also have bro. Did you get a solution?

  • @Od3o_ela_sabil_rabek
    @Od3o_ela_sabil_rabek 2 роки тому

    I did as you do but that's what's shown in HTML report
    step_definition.Hook.user_close_the_driver(io.cucumber.java.Scenario)
    screenshot

  • @vijaynsanthi
    @vijaynsanthi 3 роки тому

    Spark report is working fine but the Extent Html report is not working, is anything specific I need to add for extenthtml report?