North-E
15 years agoOccasional Contributor
Any difference between script execution by TC and similar manual actions?
Hello!
I'm testing Visual Studio C++ application with TC v7.5 (JScript language is used). It is the multiple document application, and I wrote special scripts to manipulate with documents' windows.
To understand how I can close one of these windows I recorded a script clicking close icon (X) on the top right of it. TC generated the code with window object's Close() method. During test run the window closes without clicking close icon (X), and this thing wasn't disturbing me before...
But suddenly one of my tests crashed the application on determined window closing. This happens every time I run the test. I tried to repeat it manually...but the application is still alive. I also tried to close the window by Ctrl + F4, and result is the same - application crashes only during automatic test execution.
Therefore, I have the following question: is there any difference between automatic and manual test execution (exactly - between calling methods)? I thought they are the same but I have no explanation of behavior described higher at the moment.
Thank you for attention.
I'm testing Visual Studio C++ application with TC v7.5 (JScript language is used). It is the multiple document application, and I wrote special scripts to manipulate with documents' windows.
To understand how I can close one of these windows I recorded a script clicking close icon (X) on the top right of it. TC generated the code with window object's Close() method. During test run the window closes without clicking close icon (X), and this thing wasn't disturbing me before...
But suddenly one of my tests crashed the application on determined window closing. This happens every time I run the test. I tried to repeat it manually...but the application is still alive. I also tried to close the window by Ctrl + F4, and result is the same - application crashes only during automatic test execution.
Therefore, I have the following question: is there any difference between automatic and manual test execution (exactly - between calling methods)? I thought they are the same but I have no explanation of behavior described higher at the moment.
Thank you for attention.