How to run scenario outline examples in order?

316 views
Skip to first unread message

sandeep varma mudunuri

unread,
Aug 12, 2016, 3:42:34 PM8/12/16
to SpecFlow
Hi

I have a quick question regarding specflow scenario outline examples.I have created a specflow feature file with scenario outline and give multiple examples. in my case all examples has dependency on first example. but when i am running my feature file all examples are running out of order. can any one help me with that.

Thanks,
Sandeep Mudunuri  

Sam Holder

unread,
Aug 13, 2016, 1:24:53 AM8/13/16
to specflow

Each scenario should be complete and able to run on its own. If you have a dependency then you should make this explicit by moving the part that the others are dependent on into a background. This way the background will be run first before the rest of the feature and then the scenarios will run after.

Specflow generates the unit tests. A test runner runs them. Different runners may decide to run the tests in different orders, so it is a bad idea to rely on the order in which the runner decides to run the tests.


--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages