Course outline: Career kit
Module 04 · Career kit
Test automation interview questions
15 questions an interviewer may ask about test automation, each with a short answer you can say out loud.
Questions and answers
What is Automation Testing, and why is it used?
Automation Testing uses tools to execute tests automatically, increasing efficiency, coverage, and repeatability while reducing manual effort.
Which tests would you recommend automating vs. keeping manual?
Automate regression, smoke, and repetitive tests; keep exploratory, usability, and ad-hoc tests manual.
What are common automation testing tools for web (e.g., Selenium)?
Common tools include Selenium, Cypress, Playwright, TestCafe, and Puppeteer.
Explain the concept of a test automation framework (e.g., Page Object Model).
A framework provides structure and best practices for automation. Page Object Model organizes code by separating page interactions from test logic.
What are some best practices in maintaining automated test scripts?
Use modular code, clear naming, version control, regular reviews, and keep scripts up to date with application changes.
Define Continuous Integration (CI) and how it relates to automated tests.
CI is the practice of frequently integrating code changes and running automated tests to detect issues early.
What challenges do you face when implementing test automation in Agile?
Challenges include rapid changes, test maintenance, environment setup, and aligning automation with sprint goals.
How do you handle dynamic elements in Selenium?
Use robust locators (e.g., XPath, CSS), explicit waits, and avoid relying on unstable attributes.
Explain how you’d integrate automated tests into a CI/CD pipeline.
Configure the pipeline to trigger tests on code changes, run tests automatically, and report results for each build.
What is the ROI consideration for test automation?
ROI is evaluated by comparing automation costs to benefits like reduced manual effort, faster releases, and defect prevention.
How do you select which test cases are prime candidates for automation?
Choose stable, repetitive, high-value, and time-consuming tests that are critical for application functionality.
What is cross-browser testing, and why is it important in automation?
Cross-browser testing ensures the application works correctly across different browsers and versions, improving user experience.
Explain data-driven testing in Selenium.
Data-driven testing runs the same test with multiple data sets, often using external files like CSV, Excel, or JSON.
How do you handle synchronization issues (waits) in Selenium or other tools?
Use explicit, implicit, or fluent waits to handle timing issues and ensure elements are ready before interacting.
What is the difference between using Selenium IDE, RC (retired), and WebDriver?
Selenium IDE is a record/playback tool, RC is deprecated, and WebDriver is the current standard for robust browser automation.
New to some of these? Read the lesson behind this topic.
More interview topics
- QA basics
- SDLC
- STLC
- Testing principles
- Levels of testing
- Functional testing
- Non-functional testing
- White box testing
- Black box testing
- Gray box testing
- Test planning and documentation
- Test execution and defects
- Jira and work management
- API testing
- Mobile app testing
- Database testing
- Performance and security testing
- Bug reporting and communication
- Agile testing
- Localisation and globalisation
- Test metrics and reporting
- QA team structure