10-08-2009, 08:46 AM
Hi! Thanks for all your help, but Basanth is correct. The code only repeats the entire loop and iteration.
What I need to know is how can I show in the results that a particular window appeared nth times. Here goes the scenario.
I have an action that iterates 4 times when I run. This is because I have 4 sets of data. And for each iteration, a dialog box maybe displayed depending on the value inputted. I want to know how can I count the number of times that particular dialog box appeared in the run and display it (count) in the result. Below are some lines from the codes:
Please advise.
Thank you!
Yono
What I need to know is how can I show in the results that a particular window appeared nth times. Here goes the scenario.
I have an action that iterates 4 times when I run. This is because I have 4 sets of data. And for each iteration, a dialog box maybe displayed depending on the value inputted. I want to know how can I count the number of times that particular dialog box appeared in the run and display it (count) in the result. Below are some lines from the codes:
Code:
If JavaWindow("WINDOW_NAME").JavaDialog("DATA").Exist Then
Reporter.ReportEvent micDone, "Dialog box", "Dialog Box Appeared"
JavaWindow("WINDOW_NAME").JavaDialog("DATA").JavaButton("OK").Click
counter = counter +1 'This is where I am trying to get the count but this variable resets to 0 every new iteration.
End If
Please advise.
Thank you!
Yono