Random data for tests
Sometimes tests need random data. It could be that a test cannot register a user more than once.This is a quick command to generate a random series of characters. Give it a number of how many characters you want.
String name = RandomStringUtils.randomAlphabetic(20);
It does require the Apache Commons Lang library. http://commons.apache.org/proper/commons-lang/
selenium@lmnsolutions.com

No comments:
Post a Comment