Automation Testing Cheat Sheet 2026
The 30 highest-yield Automation Testing facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
- What is the purpose of WebDriverWait in Selenium? → To pause execution until an expected condition is met
- Which file is used to configure TestNG test execution, specifying suites, tests, and classes? → testng.xml
- In TDD, when must unit tests be written relative to the production code? → Before writing the production code
- Which of the following tabs in QTP allows you to run a script line to change the current value of a variable in a function library? → Command
- What is Explicit Wait in Selenium? → Waiting for a specific condition on a specific element before proceeding
- Which Selenium component provides a grid for running tests in parallel across multiple machines and browsers? → Selenium Grid
- Which ExpectedCondition should you use to wait until an element is clickable? → elementToBeClickable()
- Which HTTP header indicates the content format of an API response body? → Content-Type
- In API testing, what is a JSON schema used for? → Validating the structure and data types of an API response
- What does 'test coverage' measure in functional automation? → The amount of code or requirements exercised by tests
- What does the Appium Inspector tool help testers do? → Inspect and identify UI element locators (like accessibility IDs) in mobile apps
- What does BDD stand for in software development methodology? → Behavior-Driven Development
- To make a list of recovery scenarios the default for all new tests, which of the following parameters would you choose? → Selecting Set as Default button at Recovery pane of test setting
- In GitLab CI, what keyword defines the sequence of execution phases in a pipeline? → stages
- The type of checkpoints in QTP is determined by elements such as screen resolution, operating systems, and RG8 settings. → Bitmap
- What is the primary purpose of an explicit wait in functional UI automation? → Wait for a specific condition before proceeding
- Any QTP user can access the test's active screen information. → Both A & B
- What does 'test coverage' measure in automation testing? → The percentage of application code or requirements exercised by automated tests
- What problem does a flaky test most directly cause for a CI pipeline? → Loss of trust in test results
- Which HTTP status code indicates that the requested API resource was not found? → 404 Not Found
- What is a common use of mocking or stubbing in functional automation? → To replace unstable external dependencies with controlled responses
- Which checkpoint type is used to verify the property values of an object in a test application and is supported by all add-in environments in QTP? → Standard
- What is the purpose of a test fixture in an automation framework? → To set up and tear down the environment needed for test execution
- Which class in Selenium allows you to perform keyboard and mouse actions like drag-and-drop? → Actions
- Which approach helps automated tests handle dynamic element IDs? → Use stable attributes like data-test or partial matches
- In mobile automation, what does 'context switching' in Appium mean? → Switching between NATIVE_APP and WEBVIEW contexts to interact with hybrid app layers
- What does the term 'flaky test' mean in automation? → A test that passes and fails intermittently without code changes
- To add an object to the local object repository, which of the following is used? → Object Spy
- Which command-line tool is used to list connected Android devices for Appium testing? → adb devices
- What is the purpose of an API authentication header like Authorization: Bearer ? → To provide credentials proving the caller is allowed to access the API resource
Turn these facts into recall: