Random User API
Problem Statement
Manually creating diverse user profiles for testing purposes is time-consuming and doesn't
reflect real-world scenarios accurately.
Description
Imagine you're tasked with developing a social media website prototype for your college project.
To ensure the platform's functionality and user experience are tested comprehensively, you
need a reliable method to generate and manage realistic user profiles with varying attributes
such as demographics, interests, and network connections.
Solution
To address this challenge effectively using UiPath, you can integrate the Random User
Generator API.
https://randomuser.me/api/
This integration will allow you to automate the generation and management of diverse user
profiles, enhancing the complexity of your automation project.
1. UiPath Integration: Utilize UiPath Studio to create automation workflows that interact
with the Random User Generator API. Use HTTP Request activities to fetch user profiles
dynamically in JSON format.
2. Data Management in UiPath: Implement data parsing and manipulation activities within
UiPath to extract relevant user information from the API response. Store this data in
variables or DataTables for further use in your automation workflows.
Relevant fields: name, gender, address.street.number, address.street.name,
address.city, address.state, address.country, address.postcode, dob.age, email
3. Write to Excel: Extracted data to be written to an excel file.
4. Country filter: Creating separate sheets based on country from your randomly
generated user profiles data in Excel.
5. Sort based on age: Sort whole data based on age of the person.
6. Testing and Validation: Execute and validate your UiPath automation workflows using
the generated user profiles. Ensure that each workflow handles edge cases and
exceptions gracefully, demonstrating robust error handling.
Concepts covered: API, JSON, Deserialize, Datatable, Excel