Centralize test configuration
Hard120 pts~45 min
- Configuration
- Environment variables
Practice app · Acme Ops
A sign-in page with field validation and an authenticated dashboard.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Move the URL, credentials and timeouts into one configuration source that environment variables can override.
Your task
- 1Create a config object/class with baseUrl (default TEST_URL), username, password and a timeout.
- 2Allow overrides from environment variables (for example TQA_USERNAME, TQA_TIMEOUT) with sensible defaults.
- 3Sign in using only values from the config — no credential literals inside sendKeys calls.
- 4Assert the dashboard title is “Dashboard | Acme Ops”.
Acceptance criteria
- Configuration is centralised and overridable
- Credentials are not typed as literals
- The dashboard is shown
- At least 1 assertion passes
Fixtures
- username
- qa@target.dev
- password
- Test@123
Selenium WebDriver 4 · SDET · Page Object Model & architecture