Skip to main content
No Result Found

Generate dynamic data for every test run with functions

Create reliable tests with dynamic inputs

Functions play a crucial role in facilitating tests with diverse inputs for each run. Imagine the common scenario of testing new user registrations by signing up with a unique user in every iteration. Without the ability to generate a fresh user for each test run, the test is prone to failure. Leveraging functions enables you to easily generate a unique email for each test run.

Types of dynamic data that can be generated

With functions, one can generate various kinds of data which caters to most of the use cases today.

  1. Alphabet - Generate random string of alphabets with preferred length
  2. Number - Generate random numbers with preferred length. For eg:- Generate 10 digit random number to input in mobile number field
  3. Email - Generates random email address with the domain specified. Useful when testing new user workflows
  4. Password - Generate random password based on the character length specified

How to import a function?

  1. Navigate to the input step where you want to generate dynamic data to be used
  2. Click on the step name or the “>” icon to open the step configuration details
  3. Click on “+” and select “Add a functionAdd function
  4. Select appropriate option from the list to generate dynamic data. In the below example, Email to generate random email with example.com domain Select and create a function

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle