I am using QTP 8.2 and .NET add-in 8.2. My application is web based .NET Application.
I have a webpage, and in this i have a link named "Market", when i click this link, i will
get a drop down list, and if i put mouse on any of the option, it get selected(heilighted)
and then if i clik on the selected option the "market" link will change with the new selected
one. This is working fine(Without QTP Recording mode) means "manually".
I am doing same operation with QTP Recording mode. Here i can able to click the "Market"
link and code is generating in QTP and i am getting drop down box.
problem: But interestingly, if i put mouse on any of the options, it is not get selected
(Not heilighted) and no code generated in QTP and then if i click the option, the "market"
link is not changing and QTP does not generating any code.
Did any body came across this type of situation?
Why does the application is bahaving different, when it was in Recording mode?
1. QTP by default doesn't record for mouse over event. You have manually write the event like obj.OnMouseOver or use trigger event.
or you can change the recording level by going to tools->webeventrecording config.
2. market link: You need to check that market link doesn't exist and you new link exist. If your more particular with the position of teh link in the page verify with the x and y co-ordinates before and after the change in link name.
Did you set your QTP to record against the specific web site you're testing or against any website? I ask because I had a similar problem with QTP not recognising .NET forms on a VB.NET application I'm testing when I told it to test against my application in particular. It worked fine when I told it to record against any open window. I have also rasied this with Mercury.
I'm not a complete idiot - some parts are missing.