Windowtester automatically exits the application after the test case is closed. How can I prevent windowtester from quitting the application, so that I can run multiple test cases on the same instance of the application without restarting the application. Because this will save me a lot of time.
Prevent windowtester from exiting the application automatically after the test is over
71 views Asked by Mandar Nageshkar At
2
There are 2 answers
0
On
You can run multiple tests per test case in the same instance of the application. There might be a way to also run multiple test cases in the same instance, e.g. when you run the tests with Maven Surefire and forkmode set to 'once', but I haven't tested it yet.
As ekostadinov mentioned this is definitely not recommended.
If you want second opinion about this and not looking for E2E I recommend you to reconsider Test consistency preserving in your case. With new instances and cleared cache you maybe closer to real-life Use case and metrics.
As example if is used Selenium each time get you clean instance of the browser. Not that you can't modify it, but it's recommended that each test should stand alone, independent from any other test or side-effects.