Automation Testing Automation Functional Testing 3 — Questions and Answers
Question 1: What is the main benefit of running functional automation tests in parallel?
- Reduced total execution time (Correct answer)
- Guaranteed zero flakiness
- Smaller test code
- Higher network latency
Correct answer: Reduced total execution time
Parallel execution distributes tests across threads or machines to finish the suite faster.
Question 2: Which practice best supports maintainable automated test code?
- Hardcoding values everywhere
- Reusable helper methods and clear naming (Correct answer)
- One giant test method
- Avoiding all comments
Correct answer: Reusable helper methods and clear naming
Reusable helpers and descriptive names reduce duplication and make tests easier to update.
Question 3: What is a smoke test in an automated functional context?
- An exhaustive test of every feature
- A quick check of critical core functionality (Correct answer)
- A performance stress test
- A security penetration test
Correct answer: A quick check of critical core functionality
A smoke test verifies that the most critical paths work before deeper testing proceeds.
Question 4: When should a functional automated test ideally fail fast?
- Only at the very end
- As soon as a critical precondition is not met (Correct answer)
- Never, to gather all data
- Only on the third retry
Correct answer: As soon as a critical precondition is not met
Failing fast on broken preconditions saves time and gives a clearer failure signal.
Question 5: What is the role of a test runner in an automation framework?
- Designing UI mockups
- Discovering, executing, and reporting tests (Correct answer)
- Writing production code
- Managing customer support
Correct answer: Discovering, executing, and reporting tests
A test runner finds test cases, executes them, and reports pass/fail results.
Question 6: Which is a strong indicator that a UI test should be moved to the API level instead?
- It validates backend logic not visual layout (Correct answer)
- It uses a unique ID locator
- It runs in under one second
- It has a clear assertion
Correct answer: It validates backend logic not visual layout
Logic better verified at the service layer is faster and more stable as an API test.
Question 7: What does idempotency mean for an automated test setup step?
- It can only run once
- Running it multiple times yields the same state (Correct answer)
- It must use random data
- It disables cleanup
Correct answer: Running it multiple times yields the same state
An idempotent setup produces the same result no matter how many times it runs, aiding reliability.
What is the main benefit of running functional automation tests in parallel?