05-08-2008 11:02 AM
Solved! Go to Solution.
05-08-2008 11:12 AM
Stick with one add-in. If you use one add-in then di-select it and choose another the script will not run. So stay with what it was recorded with. I usally document in the script which add-in was used to execute the script.
I hope this helps.
05-08-2008 11:33 AM
In general, when this happens, make sure:
1. You install the .net framework first before installing .net add-in.
2. Patches if any applicable to your versions of QTP / .NET add-ins are all installed.
3. Launch QTP before launching your application under test.
05-08-2008 11:44 AM
I have .NET Framework 3.0 (SP1) installed
I launched QTP with the .NET add-in then started the app
Since all objects were learned as class Swf (SwfWindow, SwfButton, SwfCheckBox, etc..), does that mean I had the .NET Add-in loaded at the time? I'm pretty sure I did.
05-08-2008 11:49 AM
You say you have .NET 3.0 framework installed. a) What is your QTP version and
b) what version of .NET runtime is your application using?
c) Also, is your application WPF based? If so, are you loading WPF add-in as well?
05-09-2008 04:47 AM
you are probably noticing this. Can you confirm?
When you bring up QTP with .NET add-in loaded and then the application, at first it recognizes everything as standard Windows Objects...but if you try to "record" anything, it starts recognizing everything from then on with Swf....class as it should have in the first place.
05-09-2008 08:22 AM
05-09-2008 10:22 AM
Start QTP with .NET add-in loaded, start the application, spy on the main window of the application as well as any other standard control like a button etc, and post screenshots of what the Object Spy sees in each case.
05-09-2008 10:28 AM
Location of the files :
C:\Program Files\Mercury Interactive\QuickTest Professional\bin
Read this :
05-09-2008 10:53 AM
05-09-2008 11:00 AM
your add-in manager dialog does not look right. Where are the default add-ins that are supposed to be there? ..like VB, ActiveX etc..I know you may not need those for your application. But, it means that during installation, these add-ins were omitted somehow and hence QTP cannot be considered installed properly. Please uninstall completely and go through custom installation procedure and make sure the default set up is not modified in anyway except for the addition of .NET add-in.
05-09-2008 11:08 AM
I just noticed that my install path is C:\Program Files\HP.. instead of C:\Program Files\Mercury Interactive... I assume that doesn't matter?
Beyond that, neither of the .bat files you specify exist in this dir or anywhere on my C: drive for that matter.
Since they say to delete the install dir when re-installing, I'm going to do that now that I know where the install dir is. Maybe those .bat files will get re-created?
05-09-2008 11:19 AM
We are on QTP 9.2 ,and after the HP-Mercury merger ,the file name was changed to HP.thats why ur files are stored in diff location.
Iam not sure why you dont see those files .
05-09-2008 12:04 PM
I don't know what they do but I ran them anyway but QTP still doesn't see the objects as class Swf either before or after running the .bat files.
Could you attach them and I could try running them? I've got nothing to lose at this point.
05-09-2008 12:07 PM
05-09-2008 12:11 PM
I use QTP 9.5 and I can tell you for a fact those .bat files do not exist in 9.5. What you are seeing is fine. What you may not be paying attention to is one of my posts above where I mentioned your installation is not right based on how your add-in manager dialog looked like. Can you read that again and attempt what I suggested?
By the way, when I uninstall, I restart after the uninstall, get rid of HP folder, get rid of Mercury Interactive folder under Program files\Common Files, get rid of Mercury Interactive (entire key hierarchy) in both HKLM and HKCU in registry and restart again.
05-09-2008 02:06 PM
Krishna is right there are no batch files in QTP9.5 .
The batch files registers all the Dll files that QTP has .I installed QTP9.5 trial version on a different machine and copied over the two .bat files(from QTP9.2) to the bin folder of QTP 9.5 and when I ran them it registered all the files that QTP had.
Prob if you haven't uninstalled QTP yet you can try this .Copy these files to the bin folder of your QTP and run them.
05-09-2008 11:01 PM
Can u try this.We are currentlu working on QTP 9.0.
Go to Automation Menu,select Record and run settings.In Record and run settings Dialog box select "windows Apllications" tab.Then select radio button next to the "Record and run test on any open windows-based application".
I hope it will work.
05-12-2008 05:50 AM
06-16-2008 06:17 AM
One more point, QTP unable to identify any objects while recording.
I want the objects to be identified as .net objects.
Any help pls, Attached snapshot