Recall & Review
beginner
What is the main purpose of running Selenium tests in a CI pipeline?
To automatically check that web applications work correctly after each code change, ensuring bugs are caught early.
Click to reveal answer
beginner
Which browser driver is commonly used with Selenium in CI pipelines?
ChromeDriver is commonly used to control Google Chrome browser during Selenium tests in CI pipelines.
Click to reveal answer
intermediate
Why do we use headless mode for browsers in CI pipelines?
Headless mode runs the browser without opening a window, saving resources and allowing tests to run on servers without displays.
Click to reveal answer
beginner
Name one common CI tool where Selenium tests can be integrated.
Jenkins is a popular CI tool where Selenium tests can be added to automate testing during builds.
Click to reveal answer
intermediate
What is a typical step to prepare the environment for Selenium tests in a CI pipeline?
Installing browser drivers and browsers, and setting environment variables before running tests.
Click to reveal answer
Why is headless mode preferred in CI pipelines for Selenium tests?
✗ Incorrect
Headless mode runs the browser without a UI, making tests faster and suitable for servers without displays.
Which of these is NOT needed to run Selenium tests in a CI pipeline?
✗ Incorrect
A physical display is not needed because headless mode allows running browsers without a monitor.
What does CI stand for in DevOps?
✗ Incorrect
CI means Continuous Integration, which is the practice of merging code changes frequently and testing automatically.
Which command installs ChromeDriver on a Linux CI server?
✗ Incorrect
On Linux, ChromeDriver can be installed using the package manager with 'sudo apt-get install chromium-chromedriver'.
What is the role of Selenium WebDriver in tests?
✗ Incorrect
Selenium WebDriver automates browser actions like clicking and typing to test web apps.
Explain how to set up Selenium tests to run automatically in a CI pipeline.
Think about what the CI server needs before running tests and how it runs them without a display.
You got /4 concepts.
Describe why running Selenium tests in CI helps improve software quality.
Consider how automation and frequent testing help developers catch problems quickly.
You got /4 concepts.