Is there a way to run Specflow scenarios in desired order (C# Selenium)?

前端 未结 2 1912
南旧
南旧 2021-01-03 09:12

I\'m trying to run multiple Specflow tests in the Test Explorer, but the challenge is I\'m unable to run them in the desired order.

ex - I have 3 scenarios in my fea

2条回答
  •  自闭症患者
    2021-01-03 09:45

    I also think it is so annoying if the tests order in the feature files different than the text explorer. So here is my solution to that.

    Scenario: 01) Create test data
        Given ...
        When ...
        Then ...
        
    Scenario: 02) Modify data
        Given ...
        When ...
        Then ...
    
    Scenario: 03) Remove modified data
        Given ...
        When ...
        Then ...
    

    Source

提交回复
热议问题