0

I am trying to create the Examples section dynamically for pytest-bdd instead of having it as a static value as here

Scenario Outline: Addition Given I have entered <number_1> into the calculator And I have entered <number_2> into the calculator When I press add Then the result should be on the screen

Examples:
| number_1 | number_2 | result |
| 2        | 3        | 5      |
| 5        | 7        | 12     |
| 10       | 0        | 10     |

How can I pass the examples section as a file, can some one please throw light on this

user1865928
  • 47
  • 1
  • 1
  • 6

0 Answers0