如何添加我们在SpecFlow

时间:2018-06-14 03:07:50

标签: specflow web-api-testing

我想添加垂直管道,以便我可以将数据表放在"示例" Specflow中的功能。有人给我任何小费,所以我可以通过吗?我的场景大纲如下:

 @mytag  
   Scenario Outline: Check Noun Words

   Given Access the AnalyzeStateless URL

    And  language code
    And content of <Sentence>
    And the Expected KeyWord <Expected KeyWords>
    And the Expected Family ID <Expected FID>
    And the index <Index>
    When return the XML response
    Then the keyword should contain <FamilyID>



Examples: 
    | Index  | Sentence  | Expected KeyWords | Expected FID |
    |   1    | I need a personal credit card | personal | 92289  |

&#34;示例&#34;功能已在上述情况下手动输入。我在excel文件上有一千行,任何适当的方法可以一次性获取所有值?

1 个答案:

答案 0 :(得分:0)

您是否看过Specflow.Excel,它允许您将示例保存在excel文件中?