Generate Test Data | Bondar Academy
Course: AI-based testing with testRigor
Module: Advanced Tricks and Techniques
Instructor: Artem Bondar
Lesson Summary
Lesson Overview: This lesson focuses on generating unique test data for test cases using TestRigger . It covers how to automate the testing of a signup feature by creating unique usernames, emails, and passwords. Generating Unique Test Data To test the signup feature, it is essential to provide unique credentials each time. TestRigger offers commands to generate this data easily: Generate Unique Name: Use generate unique name to create a unique username. Generate Unique Email: Use generate unique email for a unique email address. Password: A hard-coded password can be used, e.g., welcome . Creating Articles with Random Data In addition to user credentials, you can generate random data for articles: Generate from Template: Use generate from template to create titles and descriptions. For example, ****testing generates random characters followed by "testing". Character Types: # for numbers (e.g., phone numbers). $ for lowercase letters. % for uppercase letters. Using Regular Expressions For more complex data generation, you can use regular expressions : generate from regex [A-Z]{50} This command generates a string of 50 uppercase letters. Summary of Key Commands generate unique name - Generates a unique username. generate unique email - Generates a unique email address. generate from template - Creates random strings based on specified templates. generate from regex - Generates strings based on regular expressions. This lesson demonstrates how to effectively use TestRigger to automate the generation of test data, enhancing the efficiency of your testing process.