Skip to content

Version 1.21.x

Latest
Compare
Choose a tag to compare
@giulong giulong released this 28 Jan 12:26
· 18 commits to develop since this release

Datafaker

As requested in feature #313, an instance of datafaker is now available in all tests and pages. You can use it to generate fake data like this:

@Test
void test() {
    String name = faker.name().fullName(); // Miss Samanta Schmidt
    String number = faker.numerify("##");
    String anotherNumber = faker.expression("#{numerify '##'}");
    ...
}

Check all the details on how to configure it in the docs.