These LTIMindtree QA interview questions follow the usual three-step process for QA Analyst roles: an L1 technical round on Selenium, Java and API basics, an L2 round on frameworks, live locators and problem-solving, and an HR round. Each answer is short and practical, with code where you'd be expected to write it.
L1 Round
1. What is Selenium and what are its main components?
Selenium is an open-source suite for automating web browsers. WebDriver is the library you code against; Selenium IDE records and plays back tests in the browser; Selenium Grid runs tests on remote machines and browsers in parallel. In projects we write WebDriver tests in Java with TestNG, run them from Maven and Jenkins, and use Grid or a cloud provider for cross-browser runs.
2. What waits does Selenium have? Write the explicit wait syntax.
Implicit wait (global, presence only), explicit wait (a condition on one element) and fluent wait (an explicit wait with custom polling and ignored exceptions).
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
WebElement msg = wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("success")));
3. Explain Java collections with an example.
The Collections Framework provides List (ordered, duplicates allowed), Set (no duplicates) and Map (key-value pairs). In automation: a List<WebElement> of search results, a Set<String> of window handles, and a Map<String,String> of test data from a properties file.
List<String> names = new ArrayList<>();
for (WebElement e : driver.findElements(By.cssSelector(".product-name"))) names.add(e.getText());
assertEquals(new HashSet<>(names).size(), names.size(), "duplicate product names");
4. Explain the static keyword.
static members belong to the class, not to each object. A static variable is shared by all instances, a static method can be called without an object (utility methods such as ConfigReader.get("url")), a static block runs once when the class loads, and a static nested class doesn't need an outer instance. See static and final in Java.
5. Write a sample POST request.
given()
.baseUri("https://api.example.com")
.contentType(ContentType.JSON)
.body(Map.of("name", "Asha", "job", "QA"))
.when()
.post("/users")
.then()
.statusCode(201)
.body("name", equalTo("Asha"));
6. PUT vs PATCH?
PUT replaces the whole resource with the body sent (fields left out may be cleared) and is idempotent. PATCH updates only the fields sent.
7. Reverse a string read from the console.
Scanner sc = new Scanner(System.in);
String input = sc.nextLine();
StringBuilder rev = new StringBuilder();
for (int i = input.length() - 1; i >= 0; i--) rev.append(input.charAt(i));
System.out.println(rev);
8. Relative vs absolute XPath?
Absolute XPath starts from the root and breaks when the layout changes; relative XPath starts with // and anchors on stable attributes, so it's what real projects use.
9. How do you run test cases in parallel?
Set parallel="methods", "classes" or "tests" with a thread-count in testng.xml, keep the WebDriver in a ThreadLocal so threads don't share a browser, and make test data independent.
L2 Round
10. Have you designed a framework from scratch? Explain Page Object Model.
Describe your stack and layers: base classes, page objects, tests, utilities, config and test data, reporting and CI. In POM each page is a class holding its locators and actions, so tests call loginPage.loginAs(user) and a UI change is fixed in one place. See how to explain your automation framework.
11. Live exercise: search for a term and write the XPath for a result link.
Open the page in DevTools, find the result link, prefer a text-based relative XPath such as //a[contains(normalize-space(),'Playwright')] or anchor on the result container, and confirm it matches exactly one element. Explain why you avoid absolute paths and generated class names.
12. Authentication vs authorization?
Authentication proves who you are (login, token). Authorization decides what you can do (roles and permissions). An API returns 401 when authentication fails and 403 when an authenticated user isn't allowed.
13. Which status code means Service Unavailable?
503: the server is temporarily unable to handle the request, for example during maintenance or overload, often with a Retry-After header. Don't confuse it with 500 (unexpected server error) or 504 (gateway timeout).
14. Check whether an input is alphanumeric.
boolean isAlphanumeric(String s) {
return s != null && s.matches("[A-Za-z0-9]+");
}If the interviewer wants it without regex, loop through characters with Character.isLetterOrDigit.
15. Checked vs unchecked exceptions? OOP in your framework? Implicit vs explicit wait?
These repeat L1 themes at more depth: be ready with examples from your own framework, for example custom exceptions wrapping checked ones, BasePage inheritance, and why you use explicit waits only.
16. How do you handle an alert that needs text input?
Switch to it and send keys: Alert a = driver.switchTo().alert(); a.sendKeys("text"); a.accept();. Only prompt alerts accept text.
17. How do you do data-driven testing?
With a TestNG @DataProvider that returns rows from code, JSON, CSV or Excel, and a test that runs once per row:
@DataProvider(name = "logins")
public Object[][] logins() {
return new Object[][] { {"standard_user", "secret_sauce", true}, {"locked_out_user", "secret_sauce", false} };
}
@Test(dataProvider = "logins")
public void login(String user, String pass, boolean ok) { ... }
18. When does a Git conflict occur and how do you resolve it?
When two branches change the same lines of a file (or one deletes a file the other edits) and Git can't merge them automatically. Open the file, keep the right code between the <<<<<<<, ======= and >>>>>>> markers, remove the markers, run the tests, then git add and commit or continue the rebase.
HR Round
- Tell me about yourself beyond your technical background: one or two genuine interests or strengths outside work that show learning or teamwork.
- Why LTIMindtree? Mention the kind of clients and domains, the scale of projects and growth in automation, tied to your goals.
- Why are you switching? Stay positive: bigger challenges, broader automation, new domains.
- A difficult situation you handled: a STAR story with a measurable result.
- Pressure and tight deadlines: prioritise by risk, communicate early, automate repetitive checks.
- Relocation: answer honestly and clearly.
For structured answers to these, see the QA HR interview guide.
FAQs
How many rounds are there in an LTIMindtree QA interview?
Candidates commonly report an L1 technical round, an L2 technical or managerial round and an HR round, though the process varies by team and experience level.