QuickTest Professional crashes or hangs while recording against an ActiveX control.
I am reproducing the solution from Mercury Support.This helped us a long way, my team wasted a lot of time on this issue.
Diagnosis: There is a conflict between QuickTest Professional and the ActiveX control. Determine which control is causing the problem and disable the hooking to that control.
Solution: Disable hooking into problem ActiveX controls
There is a way to create the list of all the ActiveX controls which QuickTest Professional has captured and to disable the hooking of the “problematic” objects.
1. Make sure QuickTest Professional is closed and open up the registry editor.
2. Navigate to the following registry key:
HKEY_CURRENT_USERSOFTWAREMercury InteractiveQuickTest ProfessionalMicTestActiveX Add-in
3. Add a DWORD key value with the name DebugMode; set its value to 1.
a. Go to Edit -> New -> DWORD Value.
b. Enter DebugMode for the Value name.
c. Right-click the new value and select Modify from the pop-up menu.
d. Enter 1 in the Value data field.
e. Click .
This setting instructs QuickTest Professional to add the ProgID of any ActiveX control encountered to the registry while recording.
4. Launch QuickTest Professional and record against your application to a point where you can reproduce the crashing or hanging issue.
5. Refresh or restart the registry editor. You will find the ProgIDs for the ActiveX controls that QuickTest Professional has hooked into under the following key:
HKEY_CURRENT_USERSOFTWAREMercury InteractiveQuickTest ProfessionalMicTestActiveX Add-inProgID
6. Disable the hooks into each of the listed ActiveX controls. Right-click a ProgID value and select Modify. Change the Value data to 0.
The value of the field can be one of the following:
00000000 – Disable record
00000001 – Record
FFFFFFFF – Default mode (indifferent)
Setting the value to 0 will instruct QuickTest Professional not to hook into the control.
Note:
This will modify the way QuickTest Professional identifies the controls.
For example, after disabling the hooking on the control
“Msacal.70.ocx.Calendar”
While spying on the object the Class Name property will be
WinObject:CalendarWndClass
instead of:
ActiveX: MSCAL.Calendar.
7. After changing the values for all the keys, restart QuickTest Professional and record against your application to see if the problem occurs.
If the problem still occurs, contact Customer Support. The problem does not appear to be a conflict between the add-in and a control. Make sure you reference this article as something you have tried.
If the problem does not occur any longer, you know it was caused by a conflict between one of the ActiveX controls and the add-in. Set all of the values in the ProgIDs back to FFFFFFFF. Continue with step 8 to determine which control causes the problem.
8. Close QuickTest Professional, set the value for one ProgID to 0, and restart QuickTest Professional. See if the problem reproduces.
9. Repeat step 8 for each ProgID until you find the ProgID(s) that allow QuickTest Professional to record and replay without the hang or crash occurring.
If you want to keep track of further articles on QTP. I recommend you to subscribe via RSS Feed. You can also subscribe by Email and have new QTP articles sent directly to your inbox.
Check the up-to-date matrix for the currently supported versions of Active X by QTP (UFT).
Hi,
I have the following statment in my VBscript:
set obj=CreateObject(“Quicktest.Application”);
When I execute the VBscript by double-clicking on it, I get the following error:
Activex component can not create object Quicktest.Application
my e-mail is arthurunsw@gmail.com
Thanks
Hi Ankur,
Please give solution to below problem.
While running script in siebel qtp gets stuck in first line itself.
It does not go to second line.
first line:
SiebApplication(“Siebel Sales”).SiebScreen(“Leads”).SiebView(“My Leads”).SiebApplet(“Lead”).SiebPicklist(“Lead Status”).Select”Accept-Create New Project/Opty”
second line:
Browser(“Siebel Sales”).Dialog(“Microsoft Internet Explorer”).WinButton(“OK”).Click
HI,
I am using QTP 10.0. I am working on Siebel 8. Hwne trying to Automate the Siebel screen, I am not successful. Nothing is getting captured in the keyword view. Please help me to resolve this issue.
my email. srinivas.kakara@gmail.com
Regards
Srinivas
Hi This prakash ,
I Know Record and playback in QTP , Please guide me to get good knowledge on Vb Scripting.Could you explain at what time we have to use the Script (Please give me a real time example).And one more thing how to use lop and conditional statements.
My Email id is : jayaprakash.m2503@gmail.com
Just disable the ActiveX control in the browser. thats the easy way.
Dim app
Set app = CreateObject(“QuickTest.Application”)
for above statement I am facing Run Error: ActiveX component can’t create object: ‘QuickTest.Application’
Can Any one help me how to solve this Run Error
Hi,
I have created a script for a window based c# application with a tsr repository.
I opened the application and recorded the script.
Now I closed the application and opened it again but the QTp is showing the message that object repository is not found for the particular window object in the application.
please clarify my doubt.
Hi Ankur,
I have to trigger QTP 9.2 from QC 9.0? Could you please give me any suggestions where to start off or point to any source where i can get some stepwise information.
Basically,
I need to be able to:
1) Launch QTP 9.2 from QC 9.0.
2) Login with a valid login id and pwd.
3) Do some test / function.
4) Logout.
I am using QC 9.0 and QTP 9.2. Which add-in should i install to connect both to succeed in the above.
Thanks in Advance,
Alka
Hi Ankur,
I have to trigger QTP 9.2 from QC 9.0? Could you please give me any suggestions where to start off or point to any source where i can get some stepwise information.
Basically,
I need to be able to:
1) Launch QTP 9.2 from QC 9.0.
2) Login with a valid login id and pwd.
3) Do some test / function.
4) Logout.
Thanks in Advance,
Alka
Hi QA,
I had a similar issue with QTP, and discovered it is actually an issue with IE7. I am still investigating if this is a known issue or not, but as soon as I uninstalled IE7, QTP worked again.
It may be a component that is installed with IE7, or QTP may not be setup to work with it yet.
Hi Ankur,
Am new and my issue is that after QTP installation, i launch the application but when i click ‘ok’ on Add-in manager page along with ActiveX and web button selected. the page closed. i tried many times but i can’t launch QTP. i have IE7 install.can u help please.
Hi Ankur,
Am new and my issue is that after QTP installation, i launch the application but when i click ‘ok’ on Add-in manager page along with ActiveX and web button selected. the page closed. i tried many times but i can’t launch QTP. i have IE7 install.can u help please.
hi Ankur Jain
How to check the hyperlink & also how to count total hyperlink in my application through scripting.can u give the code.
Thanks & regards
Devendra singh
hi Ankur Jain,
any Qtp book with expample through scripting availiable in market .If any then tell me please.My mailid is dsingh@arwonders.com,devendra.singh@tvgenius.net.
Thanks
Devendra