| || |
QTP 9.5 Inconsistent recording
QTP is driving me bananas! Here's my issue:
I'm recording a basic process flow on an intranet browser based application. I'm clicking web checkboxes but it's not recording it as web checkboxes. Then i click on 'images' or icons which have associated actions and no recording happens even though the application responds and executes the action.
Weird thing No.1: i recorded it yesterday and it actually recorded something (still incorrect) but now throws an error trying to execute it's own recorded code.
Weird thing No.2: I use the object spy tool to click on the ojbects and it identifies them as i expect, but what's recorded during runtime is quite different.
Weird thing No.3: I use QTP on a colleagues computer on the same intranet application and it records exactly as i expect (both QTP's are the exact same version with same add-ins both with concurrent server licences). I can play this script on my PC which runs perfectly!
Here's a sample of the code
Browser("Name").Page("Name_2").WbfGrid("ctl05_MyDa taGrid1").SetCellData 9,14,"OFF"
Browser("Name").Page("Name_2").WbfGrid("ctl05_MyDa taGrid1").ClickCell 9,1
The exact same action recorded on a different machine.
Browser("Name").Page("Name_2").WebCheckBox("Name_3 ").Set "OFF"
Browser("Name").Page("Name_2").Image("UnApproved selected checkboxes").FireEvent "onmouseover"
Browser("Name").Page("Name_2").Image("UnApproved selected checkboxes").Click 11,1
Does anyone have any ideas why this might be happening? it's just very concerning as I would be chasing tails if i didn't have a second licenced pc and hadn't found that ambiguity. Doesn't give me much confidence in the scripts.
I've checked the Object smart identification. I've rebooted the application, QTP and my PC. I've checked the selected Add-ins.
Any feedback would be greatly appreciated!
Re: QTP 9.5 Inconsistent recording
Its not a 9.5 problem its a configuration problem.
Create an init script from the PC that is working and start QTP on the other system with it.
If you dont know how to do this look in the help file.