Micro Focus QTP (UFT) Forums
Selecting different icon each run - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Selecting different icon each run (/Thread-Selecting-different-icon-each-run)



Selecting different icon each run - Signpost - 06-11-2009

Hi All,
Totally new to QTP so this may be a very simple question. I have a list of icons which my program can associate to a document.

eg
document1 - icon_zdoc
document2 - icon-xdoc
etc

When I run the test the first time I assign it as above, doc1 - icon-zdoc. Each icon can only be used once per document. When I run QTP a second time the doc is passed a diff variable so it will always change dependant on date and time. How can I set it up so that the icon will be different each time also?

Thanks,
Jer