Posts: 4
Threads: 1
Joined: Aug 2009
Reputation:
0
08-19-2009, 12:50 PM
Hi All
I am new to this forum. I have 200 QTP test scripts which I run everynight in a regression suite.
From last one week, I see that QTP hangs after completing 50-60 scripts.
Can any one please let me know how to analyse this issue?
Is there any log which gives me details on what is going wroking in QTP?
My application for which I have written these scripts / SUT(System Under Test) is working fine and is responding also.
I see that only QTP is not responding.
Please help me and let me know :
What all steps I need to take before starting my regression? ( any cleanup activities for QTP to run smoothly)
Waiting for the replies...Your help is appreciated.
Thanks in advance
Prabhat
Posts: 159
Threads: 0
Joined: Mar 2009
Reputation:
0
08-19-2009, 01:51 PM
Hi,
few questions.
1. Is object created and destroyed properly in the script, its more about how script is written.
2. Are you running from remote machine or any vpn required to access the license.
3. What is your system configuration (memory,RAM and processor)
Moreover you can just remove temp files to free up memory and virtual memory.
Posts: 4
Threads: 1
Joined: Aug 2009
Reputation:
0
08-19-2009, 03:18 PM
Please see my reply below :
few questions.
1. Is object created and destroyed properly in the script, its more about how script is written.
- Yes. Its taken care.
2. Are you running from remote machine or any vpn required to access the license.
- I am running in the network mschine ( not remotely) but accessing the license from the pool (license server)
3. What is your system configuration (memory,RAM and processor)
- 3GBRAM, 3.2GHz Processor,Intel®Xenon
Posts: 516
Threads: 17
Joined: Jul 2009
Reputation:
3
08-19-2009, 03:18 PM
besides the above you have to run the batch file which will release and check the status of dlls'.
here is the path of batch file: C:\Program Files\Mercury Interactive\QuickTest Professional\bin\QuickTestProfessional.bat
Here i have a question, are you running the scripts from QC or QTP?
Please let me know if you need any more info.
Thanks,
SUpputuri
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
08-19-2009, 03:21 PM
The best which I can suggest, which I am also using is Restart your machine each time your script completes. this can be done if you open and run your test using QTP AOM.
Posts: 4
Threads: 1
Joined: Aug 2009
Reputation:
0
08-19-2009, 04:24 PM
You mean after completion of each test script?
Then in that case i will have to restart my system 200 times!!!
Before starting execution I am restarting the machine, cleaning the temp files and setting up the required environment for the application to run.
I am not using QTP AOM. We have Reusable Actions, Reusable Functions etc.
Do you suggest to use QTP AOM?
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
08-19-2009, 04:29 PM
Yes, Exactly I meant to use QTP AOM. restart your machine after completion of each script. In this way you will not have to bother for any memory issues and your scripts will be running fine.
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
08-19-2009, 06:04 PM
Saket -
This aint a good approach. In larger automation projects a restart is as good as a script execution time. Instead of this you can monitor QTP health to check for memory leaks or after say every 50 scripts invoke the AOM to Clear cookies,temporary internet files etc if IE is used.
Most of the times QTP hangs and this issue has been beaten back and forth at HP support, however there inefficiency has no bounds. They have been fighting for a solution, meantime they suggest to monitor QTP memory leaks.
Prabhat - What version of QTP do you use ?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.