Automation Test Engineer question bank
254 questions. Filter by level and skill, track what you've solved, and see how many people get each one right.
- Choosing a stable locator
- Waiting for an element
- Page Object Model
- A test without assertions
- Headless mode
- Structure of a good test
- API or UI test
- Where test code lives
- The test pyramid
- Reading a CSS selector
- A missing await
- toBe versus toEqual
- What a pytest fixture does
- BeforeEach or BeforeAll
- Status code for a created resource
- Which method is idempotent
- Postman collections in CI
- Smoke suite or regression suite
- What makes a test flaky
- How Selenium talks to a browser
- Browsers Playwright covers
- Running tests in Docker
- Passwords in test code
- Why validate a JSON schema
- Boundary value inputs
- Equivalence partitioning
- What an end-to-end test is
- Using the trace viewer
- Running only tagged tests
- Screenshots on failure
- Triggering a workflow
- Naming a test
- Reviewing test code
- Matching runner to language
- Arrange, Act, Assert
- An upside-down test pyramid
- Sharing fixtures in pytest
- Asserting that an error is raised
- Running pytest in parallel
- A keyword-driven framework
- Layers in a test framework
- Where test passwords belong
- Failing the pipeline
- A toThrow test that errors
- Comparing decimal results
- Checking an email was sent once
- A double that returns fixed data
- An in-memory repository
- Reading a Gherkin scenario
- A failure message that helps
- Expecting an exception in JUnit 5
- What a smoke suite is for
- Finding a button by role and name
- Recording a first draft of a test
- Stepping through a failing test
- What a browser context gives you
- Uploading a file
- Testing a phone layout
- Grouping actions in the report
- Checking many fields at once
- A menu that opens on hover
- Dragging a card to another column
- Choosing from a native dropdown
- Ticking a checkbox safely
- Running against different environments
- A staging site with a self-signed certificate
- Keeping videos only for failures
- No more downloading chromedriver
- Checking that something is absent
- Absolute or relative XPath
- Accepting a browser alert in Selenium
- The Select helper in Selenium
- quit() or close()
- Uploading a file in Selenium
- What Selenium Grid is for
- A reusable Cypress command
- Languages Playwright supports
- Checking that a tab is active
- Where Cypress test code runs
- Loading test data in Cypress
- Web-first assertions
- StaleElementReferenceException
- Speeding up logged-in tests
- Testing an error state
- Failures only in parallel
- Checking an API response
- Debugging a CI-only failure
- Same test, many inputs
- Click intercepted by an overlay
- Duplicate email on sign-up
- A custom Playwright fixture
- Counting parametrized tests
- Shared driver in parallel runs
- Reading a REST Assured test
- Tests fail after an hour
- 401 or 403
- GraphQL error with status 200
- A matrix build
- Slow dependency install in CI
- Splitting a suite across machines
- Using retries wisely
- Waiting for a request in Cypress
- Cypress values are not returned
- An explicit wait in Selenium
- Mobile locators in Appium
- Reading a k6 threshold
- Load, stress or soak
- Tests that fail at midnight
- Passes in the suite, fails alone
- If statements inside a test
- Tests for several user roles
- Showing results in CI
- Testing with a payment provider
- Page objects and navigation
- Watching a real method
- Faking an async API call
- Testing a debounced search
- Clean-up in a pytest fixture
- An expected failure that starts passing
- Full line coverage, half the branches
- Catching API breaks between teams
- Integration tests with a real database
- Making test objects readable
- Random test data you can replay
- Quarantining flaky tests
- How fast can it get
- Undoing database changes per test
- A test that passes for the wrong reason
- Testing a private helper
- Code that is hard to test
- Stubbing a downstream HTTP service
- Checking the shape of an API response
- A mock leaking into other tests
- Number formats differ on CI
- An if statement inside a test
- Stop at the first failure or not
- Seeing all field failures in JUnit
- Tests that depend on each other
- Picking boundary test values
- The app uses data-qa, not data-testid
- Why locators survive re-renders
- What Playwright checks before a click
- Waiting for a backend status
- Changing a request on its way out
- Picking one product card
- The risk of first()
- Checking a downloaded report
- A confirm dialog that never accepts
- A link that opens a new tab
- One suite, several browsers
- A user in Dubai
- First run of a screenshot test
- Trace settings for CI
- Marking a known bug
- Creating test data quickly
- An autocomplete that ignores fill
- Full text or part of it
- Checking the number of results
- Starting the app for the tests
- A wait that ignores early errors
- A button with extra spaces
- Hovering in Selenium
- Switching to a new window in Selenium
- What "clickable" really checks
- Relative locators in Selenium 4
- The risk of @CacheLookup
- Shadow DOM in Selenium
- Logging in once in Cypress
- Stubbing an API in Cypress
- Fast-forwarding time in Cypress
- How Cypress retries a chain
- A date picker used on ten pages
- Picking a date six months ahead
- A toast that vanishes quickly
- Automated accessibility checks
- Checking a sorted column
- Handling flaky tests at scale
- Breaking changes between services
- Clean state for each test
- Hidden race in a test
- Element inside an iframe
- Noisy screenshot comparisons
- A 90-minute test suite
- Choosing a tool for multi-tab flows
- How small flakiness adds up
- Missing the response you wait for
- Retries hiding a real bug
- Asserting on eventual consistency
- Waiting for network idle
- Can I deploy this service
- Green tests, broken production
- Leftover test data
- Worker-scoped fixtures
- Limits of automated accessibility checks
- Virtual users or arrival rate
- One shared staging for everyone
- Feature flags and tests
- High coverage, weak tests
- Running only affected tests
- Copying production data for tests
- Reusing one page for speed
- Testing an event consumer
- Emulators or real devices
- Snapshot tests with changing fields
- DRY or DAMP tests
- Ordering pipeline stages
- Tests that run in production
- What WebDriver BiDi adds
- Tests that break on every refactor
- Mocking a third-party SDK
- A jest.mock factory error
- A patch that does nothing
- Testing with generated inputs
- Shuffling test order on purpose
- Running only the affected tests
- Gherkin that reads like a script
- Safety net for legacy code
- An 80% coverage gate
- A test that depends on set order
- SQLite in tests, Postgres in production
- A cache that remembers old tests
- A test that can never fail
- Work that outlives the test
- A fixture nobody asked for
- Testing code that uses randomness
- A fake that drifted from reality
- Testing a 15-minute session timeout
- Replaying recorded API traffic
- A five-second assertion in a long test
- A login setup that shows in reports
- An element inside shadow DOM
- A row that is not in the DOM
- A variable that is undefined in evaluate
- Checking structure, not pixels
- Paying one invoice in a table
- A CAPTCHA on the sign-up form
- Logging in with an authenticator code
- Checking that a spinner is gone
- Retrying a group of steps
- A click that does nothing
- Extra words in a table cell
- Implicit plus explicit waits
- Clicking through JavaScript
- Passes headed, fails headless
- Uploads that fail on Grid
- A cookie that will not set
- Logging in on another domain in Cypress
- When page objects get too big
- Finding an item in an infinite feed
- Faster loads, new failures
- getText() returns an empty string
- Simulating a slow network everywhere
- Moving off a flaky Selenium suite
- Should page objects assert