-1

Let me explain with an example

say Suppose I have a feature file "example.feature" and this feature file internally has 2 scenarios inside it (One for the past scenario-case1 & other for the failed scenario- case2)

Here, please consider API test automation

Feature : screenshot trail

Scenario: this is 1st scenario for passed case

Scenario: this is 2nd scenario for failed case

Now, here question is "Is there any possibility for taking screenshots automatically for the failed scenarios" just like we do in Selenium

Here in the above example, we need to get the screenshot for 2nd scenario (failed case) & get it attached to karate/cucumber report Please let me know if this is in possible in karate

Ken White
  • 120,522
  • 13
  • 212
  • 426

0 Answers0