Micro Focus QTP (UFT) Forums
QTP11 Crashing after running 2-3 scripts. - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: QTP11 Crashing after running 2-3 scripts. (/Thread-QTP11-Crashing-after-running-2-3-scripts)



QTP11 Crashing after running 2-3 scripts. - anand.shrivastava86 - 03-21-2012

Hi All,

we are currently facing problem with QTP while running automation scripts in batch. We are getting the below given error message after running couple of scripts from batch.

Problem signature:
Problem Event Name: APPCRASH
Application Name: QTPro.exe
Application Version: 11.0.1018.0
Application Timestamp: 4c568649
Fault Module Name: StackHash_75dc
Fault Module Version: 6.1.7601.17514
Fault Module Timestamp: 4ce7ba58
Exception Code: c0000374
Exception Offset: 000ce653
OS Version: 6.1.7601.2.1.0.256.4
Locale ID: 16393
Additional Information 1: 75dc
Additional Information 2: 75dc95060c651b2b5a7f17f6e4c4ed06
Additional Information 3: 3e9e
Additional Information 4: 3e9ea01f00e158b0ae7c379974280564


Just to give brief information about the way, we run the scripts.
We have a driver script (.vbs file) and an excel sheet which contains a list of test scripts to be run. When we want to run scripts, we run the driver script that opens QTP, execute all test scripts one by one mentioned in the excel sheet. So when we run driver script – vbs file, few scripts run successfully and then suddenly this error pops up and batch run gets stopped.

One thing we have observed that this error occurs most of the time on one of the following two statements.
1. On premature termination of scripts like in some case we use ExitTest() function.
2. While nullifying objects. At the end of the scripts we clear all the objects which we have created during the script using this statement: Set oRecordSet = Nothing

We felt that this could be the issue of memory so to handle that we added following in our framework but seems like it is not helping.
1. Rather than keeping QTP open and executing all the scripts, now we close QTP and restart it after every 10 script execution.
2. We also clear cookies and temp folders after running 10 scripts.
3. At the end of all the scripts we are clearing all objects used in the script.

Some more information:
About AUT: Web based application developed using Flex
Browser used: IE8
Tool: QTP 11
Add-ins used: Web, Visual Basic, Java, Flex 4.5.0, AIR 2.6.0

We would like to achieve uninterrupted batch run. We are not able to find the reason for this error and so not sure about any specific solution.
Can anyone help me on this.
Thanks in advance.

Anand Shrivastava


RE: QTP11 Crashing after running 2-3 scripts. - Sathiya - 03-21-2012

Hi,
Just to confrim....
please tell me whether your scripts opens and closes the browser every time? (while running 1st script opening the bowser,do the testing, closing the browser and again opening the browser for 2nd script)


RE: QTP11 Crashing after running 2-3 scripts. - anand.shrivastava86 - 03-21-2012

Hi,

Thanks for the reply.
Yes, Script opens and closes browser every time.

Anand


RE: QTP11 Crashing after running 2-3 scripts. - Sathiya - 03-23-2012

me faced the same issue...
please modify your script to open the browser once and close after executing all the scripts.. it will work fine without any error....



RE: QTP11 Crashing after running 2-3 scripts. - linhke - 06-13-2012

Hi,

I have the same issue with QTP 10.0, but it happen after opening IE 8:

AppName: qtpro.exe AppVer: 10.0.4861.0 AppStamp:494a672d
ModName: msvcr80.dll ModVer: 8.0.50727.6195 ModStamp:4dcddbf3
fDebug: 0 Offset: 0001715b

Could you help me please?

Many thanks