Test suite run in test automation framework

These are the test cases I have created for testing desktop application.

There setup.Xaml is present this should execute only once and after that all test cases should execute.

But currently, for each test cases setup is BDD given and it is executing for every test cases

Is there any approach to run as a test suite that setup should only once in beginning and teardown at the end.

@Ragul_sharma

Ideally that is not how it works…

If you need to do that that means you are trying to test whole process at once instead of individual components

One thing you can try is to not close the required screens and configure not to open again if screen already exists and just attach

Cheers

Is it possible to give Order of test cases execution in test framework or main framework.xaml. Like first test setup,next test case1,2,3,… and test tear down.

To echo @Anil_G’s point, ideally you design test cases in a way that they are not dependent on each other. Why? Because then test set execution can be parallelized across multiple robots and therefore be much faster.

Having said that, if you really want to order test cases, take a look at the Enforcing an execution order section here.

1 Like

It’s related to each other like in same application only test cases are executed.initial steps are same.

@Ragul_sharma

Then your assumption would be that you run with only one bot and without ending the sessions

Test cases grouping and execution order can help

Cheers