Choose the best scenario where automation testing is more suitable than manual testing.
Think about when repeating the same steps many times is needed.
Automation is best for repetitive tests with stable requirements because it saves time and reduces human error. Manual testing is better for exploratory or usability tests where human insight is needed.
Identify the reason manual testing is preferred in some cases.
Consider tests that need human feelings or opinions.
Manual testing is preferred when human intuition, judgment, or visual feedback is necessary, such as in usability or exploratory testing.
Given the following Python code that decides whether to automate or manually test a feature, what will be printed?
def decide_test_type(repetitive: bool, stable_requirements: bool, needs_human_judgment: bool) -> str: if repetitive and stable_requirements and not needs_human_judgment: return "Automate" elif needs_human_judgment: return "Manual" else: return "Manual" print(decide_test_type(repetitive=True, stable_requirements=False, needs_human_judgment=False))
Check the conditions carefully and see which branch matches the input.
The function returns "Automate" only if repetitive and stable_requirements are True and needs_human_judgment is False. Here, stable_requirements is False, so it returns "Manual".
You have a function should_automate(repetitive, stable_requirements, needs_human_judgment) that returns True if automation is suitable. Which assertion correctly tests that automation is chosen for repetitive and stable tests without human judgment?
def should_automate(repetitive, stable_requirements, needs_human_judgment): return repetitive and stable_requirements and not needs_human_judgment
Check when the function returns True based on the logic.
The function returns True only if repetitive and stable_requirements are True and needs_human_judgment is False. Only option A matches this.
In a continuous integration/continuous deployment (CI/CD) pipeline, which test case below is best suited for automation?
Think about tests that can run automatically without human input in CI/CD.
Tests that verify stable, repeatable functionality like page loading are ideal for automation in CI/CD pipelines. Manual or exploratory tests are not suitable for automation in this context.