Is it acceptable to write a “Given When Then When Then” test in Gherkin?

前端 未结 5 772
伪装坚强ぢ
伪装坚强ぢ 2020-12-23 21:26

Is it acceptable to write a \"Given When Then When Then\" test in Gherkin? A real-life example is as follows all AllPlayers.com

Scenario: Successfully regist         


        
5条回答
  •  一向
    一向 (楼主)
    2020-12-23 22:02

    I would also say No.

    The Given is a precondition for setup. The When is an action (which can be a do nothing) The Then form asserts.

    If you need more actions then break the test down.

    This will become far more useful once the first Then's fail for localising the problems.

提交回复
热议问题