Hello all,
I was wondering if someone could possibly shed a bit of light on the current problem i am having with my automated testing
When recording a test on our system (Insight) to click on some drop down menu's on a policy application box, the lines of code recorded are as follows:
VbWindow("MDIMain").VbWindow("frmClientFastTrack_11").VbWindow("frmPolApp").VbFrame("fra(0)").Click 108,98
VbWindow("MDIMain").VbWindow("frmClientFastTrack_11").VbWindow("frmPolApp").ActiveX("xComboList.xCombo").VbComboBox("cmbList").Select "Combined"
VbWindow("MDIMain").VbWindow("frmClientFastTrack_11").VbWindow("frmPolApp").VbFrame("fra(0)").Click 39,84
VbWindow("MDIMain").VbWindow("frmClientFastTrack_11").VbWindow("frmPolApp").VbComboBox("cboPlanType").Select "Commercial Combined "
VbWindow("MDIMain").VbWindow("frmClientFastTrack_11").VbWindow("frmPolApp").Click 367,200
VbWindow("MDIMain").VbWindow("frmClientFastTrack_11").VbWindow("frmPolApp").VbComboBox("cboSaleMethod").Select "Internet "
VbWindow("MDIMain").VbWindow("frmClientFastTrack_11").VbWindow("frmPolApp").Click 344,227
VbWindow("MDIMain").VbWindow("frmClientFastTrack_11").VbWindow("frmPolApp").Dialog("APPLICATION FORM").Click 122,29
VbWindow("MDIMain").VbWindow("frmClientFastTrack_11").VbWindow("frmPolApp").Dialog("APPLICATION FORM").WinButton("OK").Click
The problem i am having is with the areas in red, each time the test is performed and a new client and policy application box is opened the number after the underscore increases by 1 digit, thus causing qtp to stop.
if the line of code is re-recorded the number on the above line of code has increased by 1 digit again.
My question really is, is there a way to allow qtp to consistently recognize the drop down boxes and ok button each time the test is run?
any help would be greatly appreciated.
regards James.



Reply With Quote

