Software Testing Software Testing Automation & Tools 1 — Questions and Answers
Question 1: Which of the following is a key benefit of test automation?
- Eliminates the need for manual testers entirely
- Enables rapid regression testing across releases (Correct answer)
- Requires no maintenance after initial setup
- Detects all types of defects automatically
Correct answer: Enables rapid regression testing across releases
Test automation excels at running regression suites quickly and repeatedly across builds, providing fast feedback on code changes.
Question 2: What is a test harness in software testing?
- A physical device for load testing
- A collection of software and data that enables automated test execution (Correct answer)
- A manual testing checklist
- A defect tracking system
Correct answer: A collection of software and data that enables automated test execution
A test harness is a framework of tools, drivers, stubs, and data that supports automated test execution in a controlled environment.
Question 3: Which approach captures user interactions and replays them as automated tests?
- Data-driven testing
- Record and playback (Correct answer)
- Keyword-driven testing
- Model-based testing
Correct answer: Record and playback
Record and playback tools capture UI interactions (clicks, keystrokes) and generate scripts that can replay those actions automatically.
Question 4: In data-driven testing, test scripts are separated from:
- The testing framework
- Test data (inputs and expected results) (Correct answer)
- The test environment
- The CI/CD pipeline
Correct answer: Test data (inputs and expected results)
Data-driven testing externalizes test data into spreadsheets or databases, allowing the same script to run with multiple data sets.
Question 5: What is the primary purpose of a test stub?
- Replace a called component not yet developed (Correct answer)
- Record test results
- Generate test data automatically
- Simulate network latency
Correct answer: Replace a called component not yet developed
A test stub simulates a called module or component that does not yet exist or is unavailable, enabling top-down integration testing.
Question 6: Continuous Integration (CI) in the context of testing means:
- Testing only at the end of a sprint
- Automatically building and testing code every time a change is committed (Correct answer)
- Integrating all testers into one team
- Running performance tests continuously
Correct answer: Automatically building and testing code every time a change is committed
CI automatically triggers builds and automated test suites whenever code is committed, providing immediate feedback on integration issues.
Which of the following is a key benefit of test automation?