Using Selenium-based automation for testing user authentication flows including login and signup functionality Validating successful and error scenarios.
├── tests/
│ ├── test_login.py # Login test cases (valid & invalid credentials)
│ ├── test_signup.py # Signup test cases (empty fields & invalid email)
| └── conftest.py # Pytest configuration & fixtures
|
├── Utils/
│ └── Config.py # Configuration file (URLs, test data)
|
├── requirements.txt # Python dependencies
├── test-case.md # Test Case Documentation
└── README.md
1. Install Dependencies
pip install -r requirements.txtNo manual driver setup required. The project uses webdriver-manager to automatically download and manage the correct ChromeDriver version.
2. Configure Test Data
Update Utils/Config.py with your test credentials:
BASE_URL = "https://automationexercise.com/login"
VALID_EMAIL = "your-email@example.com"
VALID_PASSWORD = "your-password"
INVALID_EMAIL = "wrong@email.com"
INVALID_PASSWORD = "wrongpassword"Run All Tests
pytest -vRun Specific Test File
# Login tests only
pytest -v tests/test_login.py
# Signup tests only
pytest -v tests/test_signup.pypytest -v tests/test_login.py::test_login_valid- Python 3.7+
- Selenium 4.0+
- pytest 8.0+
- webdriver-manager 4.0+