Automation Testing Interview Questions & Answers
All 419 unique questions in one place — 117 easy, 221 medium, 81 hard — grouped by topic.
Practise by topic
Practise the way your interview works
What are exceptions and how do you handle them?
Show answer
String vs StringBuilder?
Show answer
Difference between final, finally and finalize?
Show answer
What are wrapper classes in Java?
Show answer
Method overloading vs overriding?
Show answer
What is the difference between == and equals() in Java?
Show answer
Difference between an abstract class and an interface?
Show answer
What are the main OOP concepts in Java?
Show answer
Reverse a string in Java.
Show answer
Your framework throws NullPointerException in a page object on the first action. What are the likely causes?
Show answer
A teammate compares two strings with == and the test sometimes passes and sometimes fails. Explain.
Show answer
Your helper catches Exception and prints the stack trace, and tests pass even when steps fail. What is the issue?
Show answer
Write Java code to find duplicate elements in a list.
Show answer
Write Java code to count the occurrences of each character in a string.
Show answer
Tell me about a time you had to learn Java quickly for an automation role.
Show answer
How do you keep your Java and automation skills up to date?
Show answer
Describe a time you received critical feedback on your test code.
Show answer
Write Java code to find the second largest number in an integer array.
Show answer
What are try-with-resources and why use them?
Show answer
What is method overriding and where is it useful in frameworks?
Show answer
What is a constructor and can it be overloaded?
Show answer
What is the use of the this and super keywords?
Show answer
What is the difference between an array and an ArrayList?
Show answer
How does HashMap work internally?
Show answer
What is the difference between Comparable and Comparator in Java?
Show answer
How do you read data from Excel or properties files in Java?
Show answer
What is the difference between throw and throws?
Show answer
What are Java 8 streams and lambdas?
Show answer
What are Java collections and which ones do testers use most?
Show answer
Where do you use OOP concepts in your framework?
Show answer
What is polymorphism and how does it show up in Selenium?
Show answer
What is the difference between static and non-static members?
Show answer
What are access modifiers in Java?
Show answer
Difference between ArrayList and LinkedList?
Show answer
A test reading a properties file works in the IDE but fails in Jenkins with FileNotFoundException. Why?
Show answer
You see ConcurrentModificationException in your test utility. What causes it and how do you fix it?
Show answer
Your price comparison test fails because 19.99 + 0.01 is not equal to 20.0. Why?
Show answer
A test configuration value has to be the same for the whole run and accessed from many classes. How do you implement it?
Show answer
Your code review shows a test class with 30 copy-pasted lines in every method. How do you refactor it with Java features?
Show answer
Write a Java stream that extracts and sorts product prices from a list of WebElements.
Show answer
Tell me about a time you mentored a junior tester in Java and automation.
Show answer
How have you handled disagreement with a developer about whether something is a bug?
Show answer
What is the Optional class in Java and where is it useful in test code?
Show answer
What are generics in Java and how do they help in a test framework?
Show answer
Tell me about a time you had to explain a technical test failure to a non-technical manager.
Show answer
Your test framework leaks memory during long runs and Jenkins agents crash. How do you investigate?
Show answer
A utility method that parses dates from the UI breaks in parallel runs. What might be wrong?
Show answer
You need the same test to support Chrome, Firefox and Edge. How would you design driver creation in Java?
Show answer
You must read test data from a 50,000-row CSV for a data-driven test. How do you handle it efficiently in Java?
Show answer
What is the difference between ThreadLocal and a synchronized block in Java?
Show answer
What locators does Selenium support?
Show answer
Write an XPath for a button with the text "Login".
Show answer
Implicit vs explicit vs fluent wait?
Show answer
What is WebDriver and how does it communicate with the browser?
Show answer
findElement vs findElements?
Show answer
What is Selenium and what are its components?
Show answer
Write Selenium code to wait for a loader to disappear and then click a button.
Show answer
Selenium's driver version suddenly mismatches the browser version on agents. How do you prevent this?
Show answer
Why do you want to work as an automation tester rather than a manual tester?
Show answer
An assertion on element text fails even though the text looks identical on screen. What could be the reason?
Show answer
A cookie consent banner appears randomly and blocks clicks in your Selenium tests. How do you handle it?
Show answer
How do you handle a test that is flaky only in headless mode?
Show answer
What are the different types of waits in Selenium?
Show answer
How do you verify that an element is displayed, enabled or selected?
Show answer
How do you handle StaleElementReferenceException?
Show answer
How do you handle a dropdown that is not a <select> tag?
Show answer
What is the difference between driver.close() and driver.quit()?
Show answer
What is Selenium Grid and why use it?
Show answer
What are relative locators in Selenium 4?
Show answer
How do you upload a file with Selenium?
Show answer
How do you run JavaScript in Selenium?
Show answer
What are the Actions class use cases?
Show answer
What new features came with Selenium 4?
Show answer
How do you handle iframes?
Show answer
How do you scroll a page in Selenium?
Show answer
How do you handle a web table in Selenium?
Show answer
Difference between absolute and relative XPath?
Show answer
How do you switch between windows and tabs?
Show answer
How do you handle multiple windows?
Show answer
What is the difference between getText() and getAttribute()?
Show answer
How do you handle alerts and pop-ups?
Show answer
How do you handle dynamic elements whose ids change?
Show answer
How do you handle dropdowns in Selenium?
Show answer
A click works locally but throws ElementClickInterceptedException in CI. How do you fix it?
Show answer
A test fails with TimeoutException waiting for an element that is clearly visible on screen. What do you check?
Show answer
How do you handle an element inside a shadow DOM in Selenium 4?
Show answer
Write Selenium code to verify that all links on a page are not broken.
Show answer
Tests run fine on Chrome but fail on Firefox at the same step. How do you investigate?
Show answer
A dropdown option list loads only after typing three letters. How do you automate selecting a value?
Show answer
Your Selenium tests in CI produce blank screenshots in headless mode. What could be wrong?
Show answer
Describe a situation where automation was not the right answer.
Show answer
Tell me about a time you worked with a team in a different location or time zone on automation.
Show answer
What is the difference between the normal, eager and none page load strategies in Selenium?
Show answer
How do you handle a browser basic authentication pop-up in Selenium?
Show answer
How do you test a responsive page in a mobile viewport using Selenium?
Show answer
How would you automate a login flow with multiple user roles?
Show answer
How do you handle a website that uses CAPTCHA?
Show answer
A file download test passes locally but fails in a Grid node. How do you approach it?
Show answer
Your UI regression suite has 15 percent flaky failures. How would you bring it under control?
Show answer
How do you test an application that requires login on every test without slowing the suite?
Show answer
How do you automate a two-factor authentication step in a test environment?
Show answer
Tell me about a time you had to automate a very complex or unusual UI.
Show answer
How do you prioritise when the release is tomorrow and many automated tests are failing?
Show answer
How do you handle pressure when management wants 100 percent automation coverage?
Show answer
Tell me about a time you had to choose between Selenium and another tool for a project.
Show answer
What can testers do with Chrome DevTools Protocol support in Selenium 4?
Show answer
List common TestNG annotations and their order.
Show answer
What is the execution order of TestNG annotations?
Show answer
What is the purpose of testng.xml?
Show answer
What is TestNG and why is it used with Selenium?
Show answer
How do you test that a method throws an expected exception in TestNG?
Show answer
How do you include and exclude groups in testng.xml?
Show answer
What is the timeOut attribute in TestNG?
Show answer
Write a DataProvider that supplies two sets of login data and a test that uses it.
Show answer
Tell me about a time you found a critical bug through automation.
Show answer
How did you handle it when your test estimates turned out to be wrong in a sprint?
Show answer
How do you run tests in parallel?
Show answer
How do you take a screenshot on failure in TestNG?
Show answer
How do you pass parameters from testng.xml?
Show answer
What is data-driven testing?
Show answer
How do you group tests?
Show answer
How do you retry failed tests in TestNG?
Show answer
What does dependsOnMethods do?
Show answer
What is the difference between @BeforeTest and @BeforeMethod?
Show answer
How does the DataProvider annotation work?
Show answer
What is a DataProvider in TestNG?
Show answer
What are listeners in TestNG?
Show answer
What is the difference between hard and soft assertions?
Show answer
Which reporting tools do you use?
Show answer
What is the difference between @Test(priority) and dependsOnMethods in TestNG?
Show answer
What does alwaysRun = true do in TestNG?
Show answer
What is the difference between parallel="methods", "classes" and "tests" in testng.xml?
Show answer
Write a TestNG listener that logs test start and failure.
Show answer
How do you run the same test with data from Excel using a DataProvider?
Show answer
Half of your TestNG tests are skipped in CI with no failure shown. What could cause it?
Show answer
What are TestNG and JUnit 5 differences that matter in automation?
Show answer
A TestNG test passes when run alone but fails when the full class runs. What do you check?
Show answer
Tell me about a time a flaky test cost your team time and how you fixed it permanently.
Show answer
Tell me about a time you reduced the run time of a test suite significantly.
Show answer
How do you decide what to automate?
Show answer
How do you calculate automation ROI?
Show answer
What is the @Factory annotation in TestNG?
Show answer
What is IAnnotationTransformer in TestNG?
Show answer
Your retry analyzer makes the suite green but bugs are slipping into production. What is wrong?
Show answer
Parallel TestNG runs open browsers that interact with each other's tests. How do you fix it?
Show answer
What is ITestContext in TestNG and how can you use it to share data?
Show answer
What is an API and what are common HTTP methods?
Show answer
Common HTTP status codes?
Show answer
What is JSON and how is it used in API testing?
Show answer
What do HTTP status codes 200, 201, 400, 401, 403, 404 and 500 mean?
Show answer
What is API testing and why is it done before UI testing?
Show answer
What is the test pyramid and how does it guide automation?
Show answer
What is the difference between continuous delivery and continuous deployment?
Show answer
What is shift-left testing?
Show answer
What is a smoke test versus a sanity test in a pipeline?
Show answer
What are stubs, mocks, fakes and spies in testing?
Show answer
POST vs PUT vs PATCH?
Show answer
What is a webhook and how do you test it?
Show answer
How do you test an API that depends on another service that is down?
Show answer
What is Docker and how does it help tests?
Show answer
What is OAuth 2.0 in API testing?
Show answer
What is CI/CD and why does automation need it?
Show answer
What is contract testing?
Show answer
What is the difference between SOAP and REST?
Show answer
What is Postman and how do you automate with it?
Show answer
What is idempotency in REST APIs and why does it matter for testing?
Show answer
What is a quality gate in a CI/CD pipeline?
Show answer
Which tests should run at each stage of a CI/CD pipeline?
Show answer
How do you mock an external API in automation tests?
Show answer
How do you run Selenium tests in Docker containers in CI?
Show answer
Tests pass on QA but fail in the staging pipeline. How do you investigate?
Show answer
How would you test an API with rate limiting?
Show answer
Describe a time you convinced developers to fix a problem found by automation.
Show answer
Your CI pipeline is blocked because a downstream service needed for API tests is often down. What do you do?
Show answer
Tests pass locally but fail on Jenkins. Why?
Show answer
Explain your CI/CD pipeline for tests.
Show answer
How would you design a CI pipeline for nightly regression?
Show answer
How do you reduce flakiness in a CI pipeline?
Show answer
What is consumer-driven contract testing with Pact?
Show answer
How do you test API security basics as an automation tester?
Show answer
How do you manage test environments for a CI pipeline?
Show answer
A third-party payment API is slow and makes your tests time out in CI. What do you do?
Show answer
How do you test GraphQL APIs compared with REST?
Show answer
What metrics do you track for test automation in CI/CD?
Show answer
How do you test an API that supports multiple versions at the same time?
Show answer
Your pipeline runs the full test suite on every commit, even for documentation-only changes. How do you optimise it?
Show answer
What is Gherkin and what are its main keywords?
Show answer
What is the difference between Scenario and Scenario Outline in Cucumber?
Show answer
What is a step definition in Cucumber?
Show answer
How do you run only selected scenarios using tags in Cucumber?
Show answer
What is the Cucumber runner class and what does it configure?
Show answer
What are the three amigos in BDD?
Show answer
What is dryRun in Cucumber and when do you use it?
Show answer
How do you generate reports from Cucumber?
Show answer
Write a Scenario Outline for login with three data sets.
Show answer
What is the Rule keyword in Gherkin?
Show answer
Some scenarios are still being developed and must not run in CI yet. How do you handle them?
Show answer
What is BDD and how does Cucumber work?
Show answer
What is the Background keyword and when should you avoid it?
Show answer
What are Cucumber hooks and how are they different from Background?
Show answer
What are Cucumber Expressions and how do they differ from regular expressions?
Show answer
How do you share state between step definition classes in Cucumber Java?
Show answer
What is a DataTable in Cucumber and how do you use it?
Show answer
Write a step definition that reads a DataTable as a list of maps.
Show answer
What makes a good Gherkin scenario?
Show answer
What is the difference between imperative and declarative Gherkin?
Show answer
Cucumber says a step is undefined even though the step definition exists. How do you fix it?
Show answer
What causes an AmbiguousStepDefinitionsException?
Show answer
How do you attach a screenshot to the Cucumber report when a scenario fails?
Show answer
How do you rerun only failed Cucumber scenarios?
Show answer
Should every test in a project be written in Cucumber?
Show answer
How do you use Cucumber with REST Assured for API BDD tests?
Show answer
Tell me about a time you introduced BDD to a team. How did it go?
Show answer
How do you handle test data cleanup in Cucumber scenarios?
Show answer
Tell me about a time a BDD conversation clarified a requirement before development started.
Show answer
How do you run Cucumber scenarios in parallel?
Show answer
Your team has 600 Cucumber scenarios and step definitions have become a mess of duplicates. What do you do?
Show answer
Business stakeholders never read your feature files. Is BDD still worth it?
Show answer
How do you create a custom parameter type in Cucumber?
Show answer
What is the scope of a step definition class instance in Cucumber?
Show answer
Explain the given-when-then structure in REST Assured.
Show answer
Write a REST Assured POST test that sends a JSON body and checks the response.
Show answer
What is the difference between path params and query params in REST Assured?
Show answer
How do you extract a value from one response and use it in the next request?
Show answer
How do you log requests and responses in REST Assured?
Show answer
How do you measure and assert API response time in REST Assured?
Show answer
What is the difference between extract().response() and extract().path()?
Show answer
How do you send form parameters and headers in REST Assured?
Show answer
How do you validate response headers and cookies in REST Assured?
Show answer
An API returns 200 but your REST Assured assertion on a field fails with a null value. How do you debug it?
Show answer
Write a REST Assured test for a DELETE request followed by a check that the resource is gone.
Show answer
Write a REST Assured PUT test that updates a resource using a POJO.
Show answer
An API returns a list in random order and your assertion on the first element fails intermittently. How do you fix it?
Show answer
How do you validate a JSON response in REST Assured?
Show answer
How do you verify response time and headers in REST Assured?
Show answer
What is REST Assured?
Show answer
Write a GET test in REST Assured.
Show answer
How do you pass authentication in an API test?
Show answer
What is RequestSpecification in REST Assured and why use it?
Show answer
What is serialization and deserialization in REST Assured?
Show answer
What is JsonPath and how do you use it for nested JSON?
Show answer
How do you validate a response against a JSON schema in REST Assured?
Show answer
What are filters in REST Assured?
Show answer
How do you handle authentication types in REST Assured?
Show answer
Write a REST Assured test that deserializes a response into a POJO.
Show answer
How do you upload a file with REST Assured?
Show answer
How do you assert on an array in a JSON response using Hamcrest?
Show answer
How do you test negative scenarios for an API?
Show answer
Write a REST Assured test using RequestSpecBuilder and ResponseSpecBuilder.
Show answer
How do you test an API that returns paginated results?
Show answer
How do you build dynamic JSON request bodies without hard-coded strings?
Show answer
Your API tests started failing with SSL handshake errors on a new test server. What do you do?
Show answer
How do you validate an XML response in REST Assured?
Show answer
Tell me about a time your API tests caught a breaking change before the UI tests did.
Show answer
An API test passes alone but fails when the suite runs in parallel. What could be wrong?
Show answer
How do you design a REST Assured framework for many microservices?
Show answer
Your API token expires after 15 minutes and long REST Assured suites start failing with 401. What do you do?
Show answer
Developers changed a field from a number to a string and your tests did not catch it. How do you prevent this?
Show answer
What is the Page Object Model?
Show answer
What is the Page Object Model and what problem does it solve?
Show answer
Write a simple page object class for a login page.
Show answer
How do you structure packages in a Selenium POM framework?
Show answer
What locator strategy do you follow inside page objects?
Show answer
What is the difference between a page object and a utility class in a test framework?
Show answer
What is PageFactory?
Show answer
How do you handle environment-specific configuration?
Show answer
What is the Hybrid framework?
Show answer
How do you manage test data in a framework?
Show answer
How do you make WebDriver thread-safe for parallel runs?
Show answer
Should assertions be written inside page objects?
Show answer
What is method chaining in Page Object Model?
Show answer
What is a BasePage and what should it contain?
Show answer
What are page components or page fragments in POM?
Show answer
How do you handle waits inside page objects?
Show answer
How do you pass the WebDriver to page objects in a parallel framework?
Show answer
A developer changed the UI and 40 tests failed with NoSuchElementException. How does POM help here?
Show answer
How do you avoid page object classes becoming too large?
Show answer
How do you verify that the correct page has loaded in POM?
Show answer
Write a BasePage helper that clicks an element after waiting for it to be clickable.
Show answer
What is the Fluent Page Object pattern?
Show answer
How do you handle a component that appears inside many different pages, like a modal dialog?
Show answer
What are the disadvantages of POM?
Show answer
How do you make page objects work with dynamic locators, such as a row containing a given name?
Show answer
Describe a time you improved the maintainability of an automation framework.
Show answer
What is the LoadableComponent pattern in Selenium?
Show answer
A login action can lead either to the dashboard or to an error message. How should the page object method return?
Show answer
How would you design an automation framework from scratch?
Show answer
PageFactory with @FindBy or By locators: which do you prefer and why?
Show answer
What is the Screenplay pattern and how does it compare to POM?
Show answer
How would you design a framework that supports both web and mobile using POM?
Show answer
You join a project where tests call driver.findElement directly everywhere. How do you move to POM?
Show answer
Should page objects use inheritance or composition?
Show answer
How do you test page objects themselves, or keep them reliable?
Show answer
Tell me about a time you led the design of a test framework for a new project.
Show answer
What is the difference between git fetch and git pull?
Show answer
How do you resolve a merge conflict in Git?
Show answer
What is a .gitignore file and what should an automation project ignore?
Show answer
What is git stash and when would you use it?
Show answer
What is the Maven build lifecycle?
Show answer
How do you pass parameters like browser and environment from Maven to your tests?
Show answer
How do you trigger a Jenkins job automatically?
Show answer
What is the post section in a Jenkins declarative pipeline?
Show answer
What does a good commit message look like?
Show answer
What is a Jenkins agent and how do labels help run tests?
Show answer
What are the advantages of version control for test code?
Show answer
What is the use of Maven in automation projects?
Show answer
How do you integrate Selenium tests with Jenkins?
Show answer
What is a Jenkins pipeline?
Show answer
What is the difference between git merge and git rebase?
Show answer
What is the Maven Surefire plugin and how do you configure it for TestNG?
Show answer
What are Maven dependency scopes?
Show answer
What are Maven profiles and how do you use them in automation?
Show answer
What is the difference between a declarative and a scripted Jenkins pipeline?
Show answer
Write a declarative Jenkinsfile that runs Maven tests and publishes results.
Show answer
How do you store passwords and tokens safely in Jenkins?
Show answer
Your Jenkins test stage marks the build green even though tests failed. Why?
Show answer
What branching strategy do you use for test automation code?
Show answer
What is git cherry-pick?
Show answer
How do you undo a commit that has already been pushed?
Show answer
Tell me about a time a CI pipeline you owned broke right before a release.
Show answer
How do you publish Allure or Extent reports from Jenkins?
Show answer
What is the difference between git reset --soft, --mixed and --hard?
Show answer
What is the Maven Failsafe plugin and how is it different from Surefire?
Show answer
Describe a time you automated a manual build or release step for the QA team.
Show answer
How do you run tests on multiple browsers in parallel in Jenkins?
Show answer
What is a Maven multi-module project and when would you use it for automation?
Show answer
How do you fix a Maven dependency conflict?
Show answer
Nightly Jenkins regression runs take 4 hours. How would you bring it down?
Show answer
What is Appium and how does its architecture work?
Show answer
What is the difference between native, hybrid and mobile web apps from a testing point of view?
Show answer
What are Appium capabilities and which ones are essential to start a session?
Show answer
Which locator strategies does Appium support and which should you prefer?
Show answer
Your team asks whether mobile tests should run on emulators or real devices. What do you recommend?
Show answer
What are appPackage and appActivity in Android automation?
Show answer
What is Appium Inspector and how do you use it?
Show answer
A runtime permission pop-up appears on first launch and breaks your Android tests. How do you handle it?
Show answer
The on-screen keyboard hides the login button in your mobile test. What do you do?
Show answer
What are the UiAutomator2 and XCUITest drivers in Appium?
Show answer
What changed in Appium 2 compared with Appium 1?
Show answer
How do you switch between native and webview contexts in a hybrid app?
Show answer
What is the difference between noReset and fullReset in Appium?
Show answer
How would you explain to a manager why mobile automation estimates are higher than web estimates?
Show answer
Why is XPath slow in Appium and what should you use instead?
Show answer
An element is visible in Appium Inspector but your test throws NoSuchElementException on the device. What do you check?
Show answer
Mobile tests pass on the emulator but fail on a low-end real device. How do you investigate?
Show answer
A mobile test fails intermittently because an animation is still running when you tap. How do you fix it?
Show answer
Write Java code to start an Android Appium session using UiAutomator2Options.
Show answer
Write Appium code to scroll to an element by its text using UiScrollable on Android.
Show answer
How do you capture a screen recording of a mobile test and attach it on failure?
Show answer
Tell me about a time you moved from web automation to mobile automation.
Show answer
Write Appium Java code to perform a vertical swipe using W3C Actions.
Show answer
How does Appium automate iOS apps and what setup is required?
Show answer
Your 200 mobile tests across six devices take too long to finish. How would you speed them up?
Show answer
In a hybrid Android app, driver.getContextHandles() returns only NATIVE_APP. Why?
Show answer
How do you run Appium tests in parallel on several Android devices?
Show answer
How do you test deep links in a mobile app with Appium?
Show answer
How would you design one mobile framework that serves both Android and iOS?
Show answer
Your company is debating a cloud device farm versus an in-house device lab. How do you advise?
Show answer
What is RemoteWebDriver and how is it different from ChromeDriver?
Show answer
What is the difference between a Docker image and a container?
Show answer
What is Docker Compose and why is it useful for Selenium Grid?
Show answer
How do you watch a test running inside a Docker Selenium container?
Show answer
Write Java code to create a RemoteWebDriver for a Selenium Grid using ChromeOptions.
Show answer
How do you check that the Grid is ready before starting the tests in CI?
Show answer
How do you increase the number of Chrome nodes with Docker Compose?
Show answer
How do you start a standalone Chrome container and run your tests against it?
Show answer
You configured 50 parallel threads but only 8 tests run at a time on the Grid. Why?
Show answer
What are the standalone, hub and node, and distributed modes of Selenium Grid 4?
Show answer
Why do Selenium browser containers need a larger shm_size?
Show answer
What does SE_NODE_MAX_SESSIONS control in the Docker Selenium images?
Show answer
How do you get reports, screenshots and downloaded files out of a Docker container?
Show answer
Describe a time you convinced your team to run tests in Docker.
Show answer
Write a docker-compose.yml that runs a Selenium hub with Chrome and Firefox nodes.
Show answer
Write a Dockerfile that runs a Maven and TestNG test suite.
Show answer
How do you record videos of tests running on a Docker Selenium Grid?
Show answer
Tests on the Grid fail with SessionNotCreatedException saying the new session request timed out. What do you check?
Show answer
Chrome inside a Docker node keeps crashing with session deleted because of page crash. How do you fix it?
Show answer
File upload tests pass locally but fail when they run on a remote Grid. Why?
Show answer
After aborted Jenkins builds, Grid slots stay busy and new tests wait. How do you handle it?
Show answer
Tests running inside Docker cannot reach the application running on the host's localhost. Why, and how do you fix it?
Show answer
Tell me about a time you set up test infrastructure that other teams started using.
Show answer
What are the main components of Selenium Grid 4?
Show answer
What is the New Session Queue in Selenium Grid 4 and what happens when all slots are busy?
Show answer
How does Selenium Grid decide which node gets a new session?
Show answer
What is Dynamic Grid in Selenium 4?
Show answer
How does running Selenium Grid on Kubernetes with autoscaling differ from Docker Compose?
Show answer
Your UI tests run noticeably slower on the Grid than on your laptop. How do you find the cause?
Show answer
You need 2,000 UI tests to run on every pull request in under 20 minutes. How would you design the infrastructure?
Show answer
What is performance testing and what are its main types?
Show answer
What are the main elements of a JMeter test plan?
Show answer
What do number of threads, ramp-up period and loop count mean in a JMeter Thread Group?
Show answer
What are JMeter listeners and why should you avoid most of them during a load run?
Show answer
What is parameterization in JMeter and how does CSV Data Set Config work?
Show answer
What are timers in JMeter and why is think time important?
Show answer
Why should JMeter load tests be run in non-GUI mode?
Show answer
Write the command to run a JMeter test in non-GUI mode and generate the HTML report.
Show answer
How do you record a JMeter script with the HTTP(S) Test Script Recorder?
Show answer
What is correlation in JMeter and why is it needed?
Show answer
What is the difference between average, median and 95th percentile response time?
Show answer
What are pre-processors and post-processors in JMeter?
Show answer
Why is JSR223 with Groovy preferred over BeanShell in JMeter?
Show answer
What is the Transaction Controller in JMeter used for?
Show answer
During a load test response times rise sharply. Which server-side metrics do you check?
Show answer
How do you handle stakeholders who ask for performance testing only a few days before go-live?
Show answer
How do you extract an auth token with JSON Extractor and use it in later JMeter requests?
Show answer
How do you pass thread count and duration to a JMeter test from the command line?
Show answer
Your recorded JMeter script fails with 403 on every request after login. What is the likely cause?
Show answer
Tell me about a time a performance test found a serious issue before release.
Show answer
How are throughput, response time and concurrent users related?
Show answer
How do you set up distributed load testing in JMeter?
Show answer
What is the difference between open and closed workload models in load testing?
Show answer
Write a JSR223 Groovy PostProcessor that reads a JSON response and stores a value as a JMeter variable.
Show answer
How do you run JMeter tests in a Jenkins pipeline and fail the build when an SLA is breached?
Show answer
Response times are fine with 50 users, but at 300 users the error rate jumps to 20 percent. How do you analyse it?
Show answer
JMeter runs out of memory during a large load test. What do you do?
Show answer
Your load test showed good results, but production slowed down at the same traffic. What could explain the difference?
Show answer
A stakeholder asks whether the system can handle 10,000 users. How do you plan the performance test?
Show answer
Response time grows slowly over a six-hour soak test while load stays constant. What does it suggest?
Show answer
Frequently asked questions
Is Selenium with Java still in demand for jobs in India in 2026?
Yes. Selenium with Java remains one of the most common stacks in Indian service companies, product companies and captive centres, especially for large existing suites. Newer tools like Playwright are growing, but many job descriptions still list Selenium, TestNG and REST Assured. Learning Selenium well also makes it easy to pick up other tools, because the concepts of locators, waits and framework design carry over.
How much Java do I need for an automation testing interview?
You need solid core Java: OOP concepts, strings, arrays, collections like ArrayList and HashMap, exceptions, static and final, and basic Java 8 streams. Most interviews include a short coding round with problems like reversing a string, finding duplicates or counting characters. You do not need advanced topics like Spring, but you must be able to read and write clean framework code.
What does a typical automation testing interview process look like?
Most processes have an online test or screening call, one or two technical rounds covering Java, Selenium, TestNG, API testing and framework design, a coding exercise, and a managerial or HR round. Senior roles add a design round on test strategy and CI/CD. Some companies give a take-home task to automate a few scenarios on a demo site.
Should I learn API testing along with Selenium?
Definitely. Most automation roles now expect REST Assured or Postman skills because API tests are faster and more stable than UI tests. Interviewers often ask you to write a GET or POST test, explain status codes and chain a token into another request. Knowing API testing also helps you speed up UI tests by creating test data through APIs.
How do I explain my automation framework in an interview?
Describe it in layers: the tech stack (Java, Selenium, TestNG, Maven), the design pattern (Page Object Model with a BasePage and components), how data and configuration are managed, how drivers are created and made thread-safe, how tests run in Jenkins, and how reports and screenshots are produced. Keep it to about two minutes and be ready for follow-up questions on any layer.
Can a manual tester move into automation testing?
Yes, and many do. Start with core Java for two to four weeks, then Selenium and TestNG, then build a small framework on a demo site with page objects and push it to GitHub. Add REST Assured and Jenkins next. Your manual testing experience is a strength, because you already know what to test; interviews mainly check that you can now code it reliably.