Testing scenario 1. Creating a New Badge
- Login as admin user
- Navigate to Site Administration > Badges > Add a new badge
- Fill in the required badge details:
- Name: "Test Achievement Badge"
- Description: "This is a test badge for verification purposes"
- Image: Upload a test badge image (PNG format)
- Click "Create badge"
- On the next screen, set badge criteria:
- Click "Add badge criteria"
- Select "Manual issue by role"
- Choose "Manager" or "Teacher" role
- Save criteria
- Enable the badge:
- Click "Enable access" under Badge status
- Confirm the enabling action
Testing scenario 2. Awarding the Badge
- Still as admin:
- Go to Site Administration > Badges > Manage badges
- Find your "Test Achievement Badge"
- Click on "Recipients" (0)
- Click "Award badge"
- In the award screen:
- Search for your test user
- Select the user
- Click "Award badge"
Testing scenario 3. Verifying and Downloading Badge
- Logout from admin account
- Login as the test user
- Navigate to profile menu > Badges or directly to badges/mybadges.php
- Verify:
- The awarded badge is visible
- Badge details are correct
- Test download:
- Click on the badge
- Click "Download" button
- Verify the badge file downloads successfully