QTP: I tried a lot to recognize the tabs but wasn't able to. The workaround, I had to go for Analog Recording, my last option. I know its a computer sensitive thing but have to do something.
WinRunner: I recorded the script & winrunner easily recognized the tabs. Even though it recorded it as AFX. It plays good until I close my screen. The workaround, I had to put the regular expression in that but atleast it will work on different machines.
So if WinRunner better than QTP?
The only benefit of QTP I have found until now is the active screen which make debugging easy.
If anyone has any workaround for my problem with QTP let meknow.
In what other ways QTP is better in testing what WR can also test. I am not talking about XML etc.
QTP ofcourse has a few drawbacks - I also think. MAny features that u see in WR like block commenting, comiple module etc, you will not find in QTP. I really dont know why. I am also a QTP user, but I feel like a traitor :-((
WR actually also does not recognize the tabs I talked about in my last message. It does the click on x&y. For QTP, you have to do low-level-recording to do that. SO its OK in that sense.
But the major prob I am not able to figure out is a popup window that QTP does not seem to understand at all. Record the window using add object, it shows only "Window class". No properties to that.
WR atleast this time scores over QTP. It recognize it as a popup menu & also shows "Create New" as an obj. Still need to modify that but atleast it works.
Recovery scenario is not a solution here - as it is not an error/unexpected behaviour. did you try to add the object using object spy and then highlight the object??? did QTP highlight the object???? if not try changing the object properties.
Since everyone's talking, I feel the need to chip in.
Firstly, it's not true that QTP has no Compiled Module. You write functions as .vbs files. They are just no longer called compiled modules but they serve the purpose.
Secondly, if the window being captured doesn't list any properties, you could go to Object Identification and change the mandatory properties for recognition. Alternately, you could go to Object Repository, click on the configure tab in front of 'Enable Smart Recognition' and select the property you want displayed. I think thats what you want...ain't sure tho.