Feature-scoped step definitions with SpecFlow?

前端 未结 6 1052
感动是毒
感动是毒 2020-12-15 05:55

I\'m using SpecFlow to do some BDD-style testing. Some of my features are UI tests, so they use WatiN. Some aren\'t UI tests, so they don\'t.

At the moment, I have a

6条回答
  •  甜味超标
    2020-12-15 06:23

    Also consider using implementation-agnostic DSL along with implementation-specific step definitions. For example, use

    When I search for 'Barbados'

    instead of

    `When I type 'Barbados' in the search field and push the Search button

    By implementing multiple step definition assemblies, the same Scenario can execute through different interfaces. We use this approach to test UI's, API's, etc. using the same Scenario.

提交回复
热议问题