1.1.2 • Published 2 years ago
automation-utils v1.1.2
automation-utils
A set of useful methods for the test automation process.
Installation
Install automation-utils using npm
npm install automation-utils
Usage
var automationUtils = require("automation-utils")
automationUtils.generateUUID()
Methods
Jump-to:
- generateUUID()
- person.generateRandomPerson()
- person.generateRandomName()
- person.generateRandomLastName()
- person.generateRandomPhoneNumber()
generateUUID()
Creates a Globally Unique Identifier and returns a string.
person.generateRandomPerson()
Creates a random person with the following attributes:
var person = {
personName: string,
lastName: string,
email: string (personName + lastName@gmail.com),
phone: string (xx xxxxx-xxxx),
};
person.generateRandomName()
Creates a random name and returns a string.
person.generateRandomLastName()
Creates a random last name and returns a string.
person.generateRandomPhoneNumber()
Creates a ranfom phone number and returns a string.