upskill-event-manager/wordpress-dev/bin/create-complete-test-data.sh
bengizmo a24d3af81b feat: Add certificate test data generation and verification
- Add comprehensive test data generation scripts for certificate testing
- Create scripts to verify certificate data and attendee filtering
- Add detailed findings and documentation on test data
- Include certificate tests for various filter combinations
- Fix issues with attendee filtering implementation in template
- Add validation for certificate template file syntax
- Document test data structure and verification results
2025-05-21 09:41:09 -03:00

35 lines
No EOL
1.4 KiB
Bash
Executable file

#!/bin/bash
# Create complete test events, attendees, and certificates
echo "=== Creating Complete Test Data on Staging Server ==="
echo "Remote host: 146.190.76.204"
echo "Remote user: roodev"
echo "==============================="
# Copy PHP script to server and execute
echo "[1;33mCopying test data generator script to server...[0m"
scp /Users/ben/dev/upskill-event-manager/wordpress-dev/bin/create-test-events-for-certificates.php roodev@146.190.76.204:~/public_html/
echo "[1;33mExecuting script on server...[0m"
ssh roodev@146.190.76.204 "cd ~/public_html/ && php create-test-events-for-certificates.php"
# Clean up
ssh roodev@146.190.76.204 "rm ~/public_html/create-test-events-for-certificates.php"
echo "[0;32mComplete test data creation finished![0m"
echo "The script has created:"
echo "1. New test events with venues"
echo "2. Attendees with varied names and emails"
echo "3. Check-ins for most attendees"
echo "4. Certificates with varied statuses (active, revoked, emailed)"
echo ""
echo "You can test the certificate system at: https://wordpress-974670-5399585.cloudwaysapps.com/certificate-reports/"
echo ""
echo "Features to test with this data:"
echo "1. Certificate listing with pagination"
echo "2. Filtering by event name"
echo "3. Filtering by attendee name/email (new feature)"
echo "4. Filtering by revocation status"
echo "5. Certificate download functionality"
echo "6. Certificate email functionality"