We are facing an issue during sequential execution of multiple Windows desktop automation scripts in Sahi Pro.
Problem Description
When one of the test scripts fails, the application window (Teamcenet.exe) remains open. Because of this, the next test script is unable to launch the application cleanly. This leads to more failures and interrupts the entire execution flow.
Expected Behavior
When a test fails, the script should:
Close the application cleanly, or
Restore the environment to a known state
so that the next script can start with a fresh application instance.
Actual Behavior
- The application window stays open after a failure
- Subsequent scripts cannot launch the application
- Execution of the entire batch is affected
Request for Guidance
Could you please advise on the recommended approach or configuration to ensure that:
- The application is properly closed when a test fails, or
- The environment is reset before the next script begins?