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

前端 未结 2 1918
南旧
南旧 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:49

    For NUnit: Tests inside a scenario run in alphabetical order, so if you want to run them in specific order just rename scenarios like

    Scenario: 1 Login positive
    Scenario: 2 Login negative
    Scenario: 3 Registration positive
    

    For other frameworks look here: https://www.ontestautomation.com/running-your-tests-in-a-specific-order/

提交回复
热议问题