Forum Discussion

TestQA1's avatar
TestQA1
Frequent Contributor
2 years ago
Solved

Accessing 'Gherkin' Keywords in the Test Logs (Looking for an urgent advice)

Hi, I need to access the 'When' in the test logs and add a picture to its 'Has Picture' column.  The problem is that the picture I need to add will be captured further down in the 'When' statements...
  • TestQA1's avatar
    TestQA1
    2 years ago

    Thank you for your reply. The picture is captured after performing some steps so logging it after When won't make a difference. I will try to find another solution.

    Can you please also share if we can add some actions/functionality in Feature files' Gherkin keyword Scenario and When, then etc.? Like if I want to add a counter with each Gherkin step that increments with the sequence? Example Test Case 1,2 and so on...