| .. | ||
| ADVANCED_LOAD_TEST_README.md | ||
| check_profile_tabs.py | ||
| complete_journey_test.py | ||
| complete_profile_and_analyze.py | ||
| complete_profile_to_assessment.py | ||
| comprehensive_dom_verification.py | ||
| debug_dom_inspector.py | ||
| debug_password_reset.py | ||
| debug_question_29.py | ||
| debug_question_detection.py | ||
| diagnose_issues.py | ||
| generate_synthetic_data.py | ||
| LOAD_TEST_300_STUDENTS.md | ||
| load_test_e2e_assessment_advanced.py | ||
| load_test_e2e_assessment.py | ||
| LOAD_TEST_ISSUES_FIXED.md | ||
| LOAD_TEST_README.md | ||
| PC1_100_students.sh | ||
| PC2_100_students.sh | ||
| PC3_100_students.sh | ||
| process_students.py | ||
| profile_data_example.json | ||
| quick_dom_check.py | ||
| QUICK_START_LOAD_TEST.md | ||
| README.md | ||
| run_300_students_load_test.sh | ||
| RUN_LOAD_TEST_500_STUDENTS.sh | ||
| test_complete_flow.py | ||
| test_complete_student_journey.py | ||
| test_profile_filling_with_screenshots.py | ||
| test_single_student.py | ||
| test_single_user_assessments.py | ||
| validate_dom_locators.py | ||
| verify_all_tests_independent.py | ||
| verify_conditional_attributes.py | ||
| verify_current_dom.py | ||
| verify_data_testid_implementation.py | ||
| verify_toast_dom_direct.py | ||
| verify_ui_team_implementation.py | ||
Scripts Directory
This directory contains utility scripts for automation testing.
End-to-End Scripts
complete_profile_to_assessment.py
Purpose: Complete student profile to 100% and navigate to assessments page.
Usage:
# Basic usage with default profile data
python scripts/complete_profile_to_assessment.py --cpid <CPID> --password <PASSWORD>
# With custom profile data from JSON file
python scripts/complete_profile_to_assessment.py --cpid <CPID> --password <PASSWORD> --profile-data profile_data_example.json
# Run in headless mode
python scripts/complete_profile_to_assessment.py --cpid <CPID> --password <PASSWORD> --headless
Example:
python scripts/complete_profile_to_assessment.py --cpid BATBAT311A --password Admin@123
python scripts/complete_profile_to_assessment.py --cpid DESDES29BB --password Admin@123 --profile-data scripts/profile_data_example.json
What it does:
- ✅ Login with smart password handling (tries provided password, then Admin@123 if needed)
- ✅ Handle password reset modal (if new student)
- ✅ Handle profile incomplete modal (if profile < 100%)
- ✅ Complete profile to 100% using provided data (or defaults)
- ✅ Navigate to Assessments page
- ✅ Verify student is assessment-ready
Profile Data Format:
See profile_data_example.json for the expected JSON structure.
Options:
--cpid: Student CPID (required)--password: Student password (required)--profile-data: Path to JSON file with custom profile data (optional)--headless: Run in headless mode (optional)
Other Scripts
complete_journey_test.py
Complete student journey including assessments (full flow).
generate_synthetic_data.py
Generate synthetic student data for testing.
process_students.py
Process multiple students from Excel file.