2017-01-24 2 views

Antwort

3

Ich glaube, Sie Szenario Outlines verwenden mögen. Hier

ist ein Beispiel dafür:

Scenario Outline: AND Gate 
Given I have the following input on my AND GATE 
| Input 1 | Input 2 | Input 3 | 
| <input1> | <input2> | <input3> | 

Then I have '<output>' at the output 

Examples: | input1 | input2 | input3 | output | 
      | Yes | Yes | Yes | Yes | 
      | Yes | Yes | No  | No  | 

Das Zeug in den <> brakets Parameter sind.
Siehe die Gherkin-Referenz dafür hier: https://cucumber.io/docs/reference#scenario-outline