Dear Community enthusiasts, are you up to Unlock the Future further?
Virtual series day 5 happened today : See Unlock the Future: Join the 20 Use Cases Challenge Learning Sprint - Day 5 at UiPath Visakhapatnam and now it’s time to put your skills to the test.
Are you ready for #5 Challenge from the 20 Use Cases Challenge Learning Sprint , crafted together with @pradeep_ch ,@pathrudu and with the help of @loredana_ifrim & @Ana_Bulhac ? Let’s level up your UiPath skills!
Here is the Challenge #5 we have in store for you :
Automated Test Cases - Create Loan Request
Objective:
Ensure that the loan application form validates user inputs correctly.
Test steps:
- Navigate to UiBank.
- Enter invalid email formats and validate error message or lack of form submission.
- Enter negative or non-integer values for “Loan Amount,” “Yearly Income,” and “Age,” and verify form behaviour.
Expected outcome:
Form does not submit and remains on the same page if mandatory fields are missing, or inputs are invalid.
Test Case Overview: Validate Senior Rejection
Objective: Ensure that loan applications from users above 65 years of age are rejected, as per the acceptance criteria.
Manual Test Steps:
- Navigate to UiBank
- Click ‘Products’ in the header menu.
- Click ‘Loans’ in the dropdown menu.
- Click ‘Apply For a Loan’ button.
- Enter ‘senior@example.com’ in the ‘Email Address’ field.
- Enter ‘30000’ in the ‘Loan Amount’ field.
- Select ‘3’ in the ‘Loan Term’ field.
- Enter ‘30000’ in the ‘Yearly Income’ field.
- Enter ‘66’ in the ‘Age’ field.
- Click ‘Submit Loan Application’ button.
Expected Postcondition:
- Loan application should be rejected with the message: “Not approved due to age.”
Test Case Overview: Approve Mid-Age Loan
Objective: Validate that a loan application from a mid-aged applicant (aged 31-45) is approved based on loan amount and income criteria.
Manual Test Steps:
- Navigate to UiBank
- Click ‘Products’ in the header menu.
- Click ‘Loans’ in the dropdown menu.
- Click ‘Apply For a Loan’ button.
- Enter ‘midge@example.com’ in the ‘Email Address’ field.
- Enter ‘30000’ in the ‘Loan Amount’ field.
- Select ‘5’ in the ‘Loan Term’ field.
- Enter ‘90000’ in the ‘Yearly Income’ field.
- Enter ‘40’ in the ‘Age’ field.
- Click ‘Submit Loan Application’ button.
Expected Postcondition:
Loan application should be approved with the message: “Congrats! You’ve been approved for a loan with UiBank!”
Automating User Profile Generation with Random User API
Problem Statement:
Creating diverse user profiles manually for testing purposes is time-consuming and doesn’t reflect real-world scenarios accurately. To test the functionality and user experience of a social media platform prototype, there is a need for a reliable and scalable solution to generate realistic user profiles.
Description:
Imagine you are developing a social media website prototype for a college project. Comprehensive testing requires user profiles with varying demographics, interests, and network connections. Manually creating these profiles isn’t feasible due to time constraints and the lack of real-world variability.
Solution Using UiPath:
To address this challenge, integrate the Random User Generator API (https://randomuser.me/api/) with UiPath to automate the generation of diverse user profiles. This will allow for realistic and dynamic test data creation to test the platform more effectively.
Workflow Implementation:
Step 1: UiPath Integration with Random User Generator API
• Use HTTP Request activities in UiPath Studio to interact with the Random User API and fetch user profiles dynamically in JSON format.
Step 2: Data Management in UiPath
• Parse the API response using JSON Deserialize activities to extract user information such as:
- name
- gender
- address (street number, street name, city, state, country, postcode)
- dob (age)
Step 3: Writing Data to Excel
• Store the parsed user profile data in UiPath DataTables.
• Use Write Range activity to export the extracted data into an Excel file for future use in automation workflows.
Relevant Fields:
• Name: First Name, Last Name
• Gender
• Address: Street number, Street name, City, State, Country, Postcode
• Date of Birth: Age
• Email
Benefits:
• Scalability: Automatically generate a large number of diverse user profiles in seconds.
• Realism: The user profiles include realistic demographic data, increasing the validity of the test scenarios.
• Efficiency: Saves time and effort compared to manually creating user profiles.
Demonstration:
In the session, I will show how to:
- Use UiPath to make an HTTP Request to the Random User API.
- Parse the JSON response and extract user details.
- Save the extracted data to an Excel sheet for further use in testing automation.
Expected Outcome:
Participants will learn how to use UiPath to generate dynamic test data and manage it effectively for comprehensive testing purposes, especially when working with automation projects that require realistic data.
Sample Data: {
“results”: [
{
“gender”: “female”,
“name”: {
“title”: “Miss”,
“first”: “Lara”,
“last”: “Celius”
},
“location”: {
“street”: {
“number”: 9586,
“name”: “Dammanns vei”
},
“city”: “Fitjar”,
“state”: “Sogn og Fjordane”,
“country”: “Norway”,
“postcode”: “0480”,
“coordinates”: {
“latitude”: “43.5092”,
“longitude”: “57.2947”
},
“timezone”: {
“offset”: “-6:00”,
“description”: “Central Time (US & Canada), Mexico City”
}
},
“email”: “lara.celius@example.com”,
“login”: {
“uuid”: “8103f22a-b9b7-4501-953d-46e8f4a0e9e0”,
“username”: “smallfish459”,
“password”: “celtic”,
“salt”: “KTCucg2w”,
“md5”: “2c4ba219ab9622049500a32e7707e69b”,
“sha1”: “aacfb5c2772145d26af8cf3dfb4534c0dad7f866”,
“sha256”: “aabe25dbe76377d7b9dde5ff2562fe815f392ad17f5628993722f3a56cc492ad”
},
“dob”: {
“date”: “1994-10-13T16:37:48.810Z”,
“age”: 29
},
“registered”: {
“date”: “2013-01-20T12:46:07.372Z”,
“age”: 11
},
“phone”: “36086801”,
“cell”: “48602810”,
“id”: {
“name”: “FN”,
“value”: “13109405455”
},
“picture”: {
“large”: “https://randomuser.me/api/portraits/women/96.jpg”,
“medium”: “https://randomuser.me/api/portraits/med/women/96.jpg”,
“thumbnail”: “https://randomuser.me/api/portraits/thumb/women/96.jpg”
},
“nat”: “NO”
}
],
“info”: {
“seed”: “5bc64ffb21a117fc”,
“results”: 1,
“page”: 1,
“version”: “1.4”
}
}
Event Date: Today onwards!
Deadline : Quiz submissions must be submitted no later than the 2024-09-21T20:59:00Z, your time-zone!
Scoring System
- All submissions earn one star for participation, regardless of correctness.
- Correct solutions/Quiz answers receive 5 stars .
- The most creative/best practice solution earns an additional maximum 5 stars .