YUNOVA · Selenium & Test Automation
Module 11: CI/CD and cloud testing
Jenkins pipeline for Selenium tests
Key points
- A Jenkinsfile defines pipeline stages as code.
- Typical stages check out the code, build it and run the tests.
- Test reports are published after each run.
Selenium Grid with Docker
Key points
- Selenium Grid runs tests on many browsers and machines in parallel.
- Docker images provide a hub and browser nodes.
- Tests connect through RemoteWebDriver to the grid URL.
BrowserStack cloud testing
Key points
- BrowserStack runs tests on real browsers and devices in the cloud.
- Tests connect with RemoteWebDriver and capabilities naming the browser and OS.
- Credentials should be kept in environment variables, not in code.
GitHub Actions for Playwright tests
Key points
- A workflow YAML file in .github/workflows defines the job.
- Steps install dependencies and browsers, then run npx playwright test.
- Upload the report as an artifact to review failures.