Val alpha = fabricator.alphaNumeric() // initialize alpha numeric moduleĪlpha.getInteger // random integer in 0 to 1000 rangeĪlpha.getInteger(100) // random integer in 0 to 100 rangeĪlpha.getInteger(200, 300) // random integer in 200 to 300 rangeĪlpha.getIntegerRangeAsScalaList(1,10,1) // will returnĪlpha.getIntegerRangeAsJavaList(1,10,1) // will return Or you can generate string basing on a pattern. As for strings, you can generate either fully random string, This module allows you to generate any random number or string. Let's look closer what each module can build : Alphanumeric To start using it you need to import fabricator.* and then make a call to appropriate module. Words - generates random words, sentences and even blocks of text.Mobile - generates random mobile platforms push tokens or id's.Location - generates random coordinates, geohash.Internet - generates random url's, domains, e-mails, ip's, mac addresses, color codes, social networks id's.Finance - generates random credit cards, bsn numbers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |