Automation lab Aú CRUD Operations (CRUD_OPERATIONS)
Lab 103: CRUD + search with dual-user approval
Create records, submit for approval, and approve or reject as a second user.
advanced
advanced
Objectives
Use for test scripts- Execute CRUD actions with role-based permissions.
- Validate search results across status changes.
- Assert approval outcomes for two distinct users.
Sandbox
CRUD Operations | web-ui | advanced | active
CRUD + search with dual-user approval
Create records, submit them for approval, and switch users to approve or reject.
Reading and understanding requirements
Choosing stable locators
Designing assertions based on business rules
Learning objectives
- Execute CRUD actions with role-based permissions.
- Validate search results across status changes.
- Assert approval outcomes for two distinct users.
Steps
- Sign in as Requester and create a draft record.
- Submit the record for approval and verify status becomes Pending Approval.
- Search for pending records and confirm the count.
- Sign in as Approver and approve or reject the record.
- Search again and verify the final status and count.
Expected results
- Requester can create, edit, and submit drafts.
- Approver can approve or reject pending records.
- Search filters by name, email, role, or status.
- Row actions change based on the active user.
- Status messages reflect each step.
Practice sandbox
Switch between Requester and Approver to manage approvals.
Active user:
Not signed in
Select a user to start.
Pending approvals: 0
| Name | Role | Status | Owner | Actions |
|---|
0 of 0 records
Ready.
Request
New request
Confirm delete
Delete request?
Assertions to practice
- Only Requester can create, edit, submit, or delete drafts.
- Only Approver can approve or reject pending records.
- Search reflects status changes and row counts.
- Action buttons change when the active user switches.