Skip to main content

Task 16: Employee Bulk Import

Test Cases

IDScenarioExpected ResultStatus
T16-01Admin/HR uploads valid employee CSVImport succeeds with success count and no failed rows
T16-02Admin/HR uploads valid employee XLSXImport succeeds with success count and no failed rows
T16-03Missing required import columnsReturns 422 with missing column message
T16-04Duplicate employee_number/work_email in fileDuplicate rows are rejected and listed in error report
T16-05Existing employee_number/work_email already in DBRow is rejected and listed in error report
T16-06Unknown entity/department/role nameRow is rejected with mapping validation error
T16-07HR imports row with role AdminRow is rejected
T16-08Partial import (some pass, some fail)Valid rows are created; failed rows appear in downloadable CSV report
T16-09Download error report URL returned by import APICSV report downloads successfully

Demo Walkthrough

  1. Download sample CSV from the Import dialog
  2. Prepare a CSV with 5 valid rows and 2 invalid rows (duplicate email, bad entity)
  3. Upload the file → Show success summary: 5 imported, 2 failed
  4. Download error report → Show specific error for each failed row
  5. Verify imported employees appear in the employee list
  6. Try uploading as Employee role → Show 403