Tallmage
7 years agoNew Contributor
Checking if Application Already Started, Without Throwing Warning
Hello,
I'm looking at optimizing our tests. Currently, our tests start the Application Under Test, do the test, and then stop the test. This ensures a clean working environment and sanitized conditions for verifications.
It also takes a long time.
- We try to keep our tests at a 1 to 1 mapping (1 Test for 1 Verification). But that becomes a problem if we're running, say, 900 verifications. In our suite, that would be 900 restarts.
- We also don't want to write all the verifications in one gigantic test script, this becomes less than ideal to maintain.
- We could suppress the error that says the application is already started, but the product owner doesn't want us to do suppress the warning.
- We could disable the log when looking if the application is already started, but, the product owner doesn't want us to disable the log.
Is there a way to start up the Application Under Test, run X tests against it, and then stop it, in one run, without 1 gigantic wrapper test, without supressing the warning, or without disabling the logs?
Additional information:
- We write our tests in Python, using NameMapping and TestedApps.
- Our AUT is windows based in .NET.
Thank you for your time.