Demo to preview the settings
Introduction
Generate random user data for testing. Two calls for retrieving a single random user or a list of random users. Data includes name, email, location, gender, D.O.B., phone numbers, photos, and more.
Getting Started
There are two main ways to use this plugin. Either to generate a single random user or to generate a list of random users. We'll look at each call individually and show some examples of each so you'll know exactly which to use for your use case.
Generate a Random User
Generates a single random user for your application.
Set up the datasource
Since you're wanting to generate a single random user, we'll use a single group to act as the data source and pass the information to it.
Use this group as the datasource for whatever information you want to display about your new random user.
Set up the API call
Now that we've defined the datasource, let's pick out the correct API to use. For our example, use the Display data in group, and choose Get data from an external api from the list of options.
From this list pick Random User Generator - Generate a User
Because we're trying to display the result of this API call, you'll have to continue formatting the expression to get only a single item from the API call (even though we're only generating one random user). The final expression will look like this:
You'll notice you can change the number of results to return, the gender of users generated, as well as their nationality.
That's it! You can now display any of the information from this API call in your group.
Generate a List of Random Users
Generates a list of random users for your application.
Set up the datasource
Since you're wanting to generate a list of random users, we'll use a repeating group to act as the data source and pass the information to it.
Set up the API call
Now that we've defined the datasource, let's pick out the correct API to use. For our example, use the Display List action and choose Get data from an external api from the list of options.
From this list pick Random User Generator - Generate List of Users
The final expression should look like this:
You'll notice you can change the number of results to return, the gender of users generated, as well as their nationality.
That's it! You can now display any of the information from this API call in your repeating group.