Interview Questions

WinRunner: How to generate user name uniquely?

Mercury WinRunner FAQ


(Continued from previous question...)

WinRunner: How to generate user name uniquely?

There are a couple of ways of dealing with this problem. One way is to maintain a file with the 'last value used' in it and just keep it up to date. If it's a data driven test, this value could even be in the data table. Alternately, you can always use the 'time' element as the value added to your string. That way you're always assured of a new number.

(Continued on next question...)

Other Interview Questions