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
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

  1. Sign in as Requester and create a draft record.
  2. Submit the record for approval and verify status becomes Pending Approval.
  3. Search for pending records and confirm the count.
  4. Sign in as Approver and approve or reject the record.
  5. 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.

Live
Active user: Not signed in

Select a user to start.

Pending approvals: 0
Name Email Role Status Owner Actions
0 of 0 records Ready.

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.