创建SpecFlow场景概述时,如何跳过示例表中字段无效的行的字段

时间:2016-05-10 13:56:42

标签: specflow

我目前有一个SpecFlow场景,其中一个字段对特定行无效。在下面的示例表中,第3行对UOM无效。如何仅针对此行跳过UOM?

      Examples: 
  | Name                         | Taxing Authority     | Tax Code             | Rate Type | Currency | UOM | Tax Type | Status   |
  | OK Tax Rate Fixed            | Propane Education an | 1A                   | Fixed     | EUR      | bbl | SSales   | Active   |
  | Ok Tax Rate Flat             | Internal Revenue Ser | 12345ABCDEFGHIJKLMNO | Flat      | USD      | gal | CiSales  | Active   |
  | OK Tax Rate Percent INACTIVE | State of Oklahoma    | 1A$                  | Percent   | (Empty)  |     | MFuel    | Inactive |

1 个答案:

答案 0 :(得分:0)

场景大纲:所有字段均有效

...鉴于

当...

则...

 Examples: 
  | Name                         | Taxing Authority     | Tax Code             | Rate Type | Currency | UOM | Tax Type | Status   |
  | OK Tax Rate Fixed            | Propane Education an | 1A                   | Fixed     | EUR      | bbl | SSales   | Active   |
  | Ok Tax Rate Flat             | Internal Revenue Ser | 12345ABCDEFGHIJKLMNO | Flat      | USD      | gal | CiSales  | Active   |

场景大纲:税率百分比不活跃

...鉴于

当...

则...

 Examples: 
  | Name                         | Taxing Authority     | Tax Code             | Rate Type | Currency | UOM | Tax Type | Status   |
  | OK Tax Rate Percent INACTIVE | State of Oklahoma    | 1A$                  | Percent   | (Empty)  |     | MFuel    | Inactive |