Good day all,
Currently in my testing i have reached a specific test i must carry out in the system whereby i must settle outstanding debts on the system by selecting the transactions from a list. The code is as follows:
VbWindow("MDIMain_3").Window("Recon # 7455").ActiveX("InsSettle.ctlInsSettle").VbListView("lsvComm").Select "77405"
VbWindow("MDIMain_3").Window("Recon # 7455").ActiveX("InsSettle.ctlInsSettle").VbListView("lsvComm").SelectRange "79012"
VbWindow("MDIMain_3").Window("Recon # 7455").ActiveX("InsSettle.ctlInsSettle").VbButton("OK").Click
VbWindow("MDIMain_3").Dialog("Payment Method").WinButton("Yes").Click
VbWindow("MDIMain_3").Dialog("Outstanding").WinButton("Yes").Click
VbWindow("MDIMain_3").Dialog("Outstanding").WinButton("Yes").Click
VbWindow("MDIMain_3").Dialog("Outstanding").WinButton("Yes").Click
VbWindow("MDIMain_3").Dialog("Outstanding").WinButton("Yes").Click
The problem i am having is that when settling these transactions the list updates along with the transaction numbers (numbers after 'select' and 'selectRange') and also the last few lines of code show clicking on yes on a dialog box to accept the settlement, this box comes up for each transaction to be settled, and thus i need help with:
a) how to get QTP to select a set amount of items on the list of transactions menu without the need to recognize the transaction numbers
and
b) How to make the above work so that i can set a certain number of box clicks.
any help is as always greatly appreciated.
James.