I currently run a QARun regression test pack against an application written in visual basic. I find with each new compilation of the vb app, I need to mofify scripts. Especially on edittext boxes. The most succesful way of working on this is to editclick the box, and fill in the entry using the type command.
However, this still means having to redfine title of the box (i.e. "~28" might become "~32". A lot of rescripting. Any answers?
We automated a VB application where the index (e.g. ~28) changed often depending on selections made. IDs didn't work for us... Can't remeber why now.
Although initially time consuming, I created object maps for each control. Since the developer's didn't give a unique name to each control (if they had object maps wouldn't be needed) I had to tweak the significant fields mask a little. This allowed us to have stable automation that only needed to be updated if the controls changed significantly.
Additionally, make sure that your "Attach using 4GL names" is checked in the Learn Settings (you need to restart QARun when this setting is changed). This will pick up the name of the control which works great if they're unique.
A problem is a difference between what is perceived and what is desired, that
we want to reduce (Dewey 1933)