Micro Focus QTP (UFT) Forums
Generate Invalid Values - 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 Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: Generate Invalid Values (/Thread-Generate-Invalid-Values)



Generate Invalid Values - rsk_beckon - 01-08-2014

Hi

I would like to generate the invalid values for some fields like ID Type, ID Number. For ex ID type range from A to D and I need to test by providing the value out of this range and ID number like it should be alpha numeric. How I should generate this invalid value using VB script(QTP). Whether I need to use regular expression? If so how?


RE: Generate Invalid Values - K Gaurav Varshney - 01-08-2014

Hi,

You may use random function to generate such string and then use this random function value as your test data.

Regards,
K