irontest icon indicating copy to clipboard operation
irontest copied to clipboard

Common setup/teardown for data driven test case

Open simonalexander2005 opened this issue 5 years ago • 2 comments
trafficstars

It would be useful to have the option for one-off "Setup" and "Teardown" steps that run before the first / after the last data-driven test case.

One use-case for this is, I have a cache that needs to be loaded before the first test case, but it doesn't need to be loaded every time.

Another use-case is cleaning up database entries that have been affected by the test cases

A third possible use-case for this is if a message needs to be sent through a flow before all of the tests start, perhaps to start something up or set a configuration

simonalexander2005 avatar Apr 09 '20 09:04 simonalexander2005

This feature looks intuitive/logical to have from impression, as it makes the data driven test case's capability more 'complete'. But due to few users are requesting this feature, I am thinking to leave it as a low priority item for now.

zheng-wang avatar Apr 09 '20 10:04 zheng-wang

This feature looks intuitive/logical to have from impression, as it makes the data driven test case's capability more 'complete'. But due to few users are requesting this feature, I am thinking to leave it as a low priority item for now.

That's fine, I just raised it because it would be useful and it gives others a chance to have their say too - but of course you have to prioritise development.

simonalexander2005 avatar Apr 09 '20 10:04 simonalexander2005