Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
incrementing a value during runtime
#1
Not Solved
Hi all,
Quick question on using QTP. I have taken over a suite of tests which were written a few yrs back so trying to get myself up to speed.
One issue I am stumped at fixing is the following.
There is a list of icons a - z which are selected by a checkbox. So the first time I go in I select icon_a and it works correctly. Then the next time it goes it it tries icon_a again but this throws a pop up error because image is already in use. I have written a function to click on the ok button with this error which works but now I cant figure how to increment to icon_b, icon_c etc etc untill it finds one it can use. I cant use an incrementer because it will be a new run each time it tries this step.
Any one any ideas?
Thanks,
J
Reply
#2
Not Solved
you can build an array with all the button id's in and then increment on each element of the array
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Frames Auto-Incrementing In The Repository zunebuggy 0 1,241 11-15-2017, 10:18 PM
Last Post: zunebuggy
  Incrementing jbelkin@gmail.com 2 4,618 09-30-2011, 12:48 PM
Last Post: susangeet02

Forum Jump:


Users browsing this thread: 1 Guest(s)