2017-01-24 6 views
0

私はSpecflowを新しくしました。フィーチャファイルを書く中で、私は与えられた条件で3つのブールステートメントを与えます。そして、パートでは、SpecFlowを使用して複数のif条件を実装する方法C#

これは、基本的なANDゲートサンプルです:私はあなたがシナリオアウトラインを使用したいと思います

Input: YES YES YES 
Output: YES   
Input: YES YES NO 
Output: NO 

答えて

3

。ここで

はそれのための例です:

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  | 

もの<> braketsでパラメータです。
ガーキンの参考資料を参照してください:https://cucumber.io/docs/reference#scenario-outline

関連する問題