[AAE-2456] - added lowercase random string generator for e2e tests (#5645)

This commit is contained in:
Vito 2020-04-27 17:18:24 +01:00 committed by GitHub
parent f03592f230
commit 13e17f8673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,6 +35,15 @@ export class StringUtil {
return StringUtil.generateRandomCharset(length, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789');
}
/**
* Generates a random lowercase string.
*
* @param length If this parameter is not provided the length is set to 8 by default.
*/
static generateRandomLowercaseString(length: number = 8): string {
return StringUtil.generateRandomCharset(length, 'abcdefghijklmnopqrstuvwxyz0123456789');
}
/**
* Generates a random email address following the format: abcdef@activiti.test.com
*