I know the answer may differ for each test framework. But for the ones you know, what should happen?
In NUnit, you have TestFixtureSetUp
which runs only once before all tests in the fixture run and SetUp
which runs before each test method is run.
In MSTest you have TestInitializeAttribute
When run in a load test, the method marked with this attribute will run once for every virtual user iteration in the test. If you need to do initialization operations once, that apply to the entire test, use the ClassInitializeAttribute.
AssemblyInitializeAttribute
is run once for all tests in all classes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With