Add office photos
Tech Mahindra logo
Engaged Employer

Tech Mahindra

Verified
3.5
based on 35.2k Reviews
Video summary
Filter interviews by
Test Lead
Experienced
Clear (1)

Tech Mahindra Test Lead Interview Questions and Answers

Updated 25 Aug 2024

Q1. How to implement POM framework pattern

Ans.

POM framework pattern can be implemented by creating separate classes for each page and storing locators and methods in them.

  • Identify the web pages and create a separate class for each page

  • Store the locators and methods related to that page in its respective class

  • Create a separate class for common methods and utilities

  • Use inheritance to access the methods and locators from parent classes

  • Use TestNG or JUnit to execute the tests

  • Example: LoginPage.java, HomePage.java, BasePage.j...read more

Add your answer
right arrow

Q2. How to write xpath in selenium?

Ans.

XPath in Selenium is used to locate elements on a web page using XML path expression.

  • Use // to select nodes in the document from the current node that match the selection no matter where they are

  • Use / to select nodes in the document from the root node that match the selection

  • Use @ to select attributes

  • Use text() to select the text of the element

  • Examples: //input[@id='username'] to locate an input element with id 'username'

Add your answer
right arrow

Q3. who to analyse test requirement

Ans.

Test requirements should be analyzed by the test lead or a team of testers.

  • The test lead should review the project requirements and identify the testing needs.

  • The test lead should collaborate with the development team to ensure that the requirements are testable.

  • The test lead should prioritize the testing requirements based on risk and impact.

  • The test lead should document the testing requirements and communicate them to the testing team.

  • The testing team should review and prov...read more

Add your answer
right arrow

Q4. what is Maven framework

Ans.

Maven is a build automation tool used primarily for Java projects.

  • Maven uses a Project Object Model (POM) to manage dependencies and build process

  • It can download required dependencies automatically from a central repository

  • Maven can also generate reports and documentation for the project

  • Example: mvn clean install command builds and packages the project

  • Example: pom.xml file contains project configuration and dependencies

View 1 answer
right arrow
Discover Tech Mahindra interview dos and don'ts from real experiences

Q5. What is RTM and what is its uses?

Ans.

RTM stands for Requirements Traceability Matrix. It is a document that links requirements to test cases to ensure all requirements are covered.

  • RTM helps in ensuring all requirements are covered by test cases

  • It provides traceability between requirements and test cases

  • RTM helps in tracking the progress of testing based on requirements

  • It assists in identifying any gaps in test coverage

  • Example: If a requirement states 'User should be able to login', RTM will show which test cases...read more

Add your answer
right arrow

Q6. Dictionary and how to use it?

Ans.

A dictionary is a collection of words and their definitions, typically organized alphabetically.

  • A dictionary is used to look up the meanings of words.

  • It can also provide information on pronunciation, usage, and etymology.

  • Dictionaries can be physical books or online resources.

  • Examples: Merriam-Webster, Oxford English Dictionary

Add your answer
right arrow

Q7. Difference between Icollection and ILIST?

Ans.

IList is a collection interface that allows duplicate elements and maintains the order, while ICollection is a base interface for all collections.

  • IList extends ICollection interface.

  • IList allows duplicate elements and maintains the order, while ICollection does not guarantee order.

  • IList has additional methods like Insert, RemoveAt, etc., which are not present in ICollection.

Add your answer
right arrow

Q8. what is TestNG framework

Ans.

TestNG is a testing framework for Java that supports various testing types and provides advanced features.

  • TestNG supports unit, functional, end-to-end, and integration testing

  • It provides annotations for test configuration, grouping, and sequencing

  • TestNG allows parallel execution of tests and generates detailed reports

  • It supports data-driven testing and parameterization

  • TestNG integrates with build tools like Maven and Gradle

  • Example: @Test annotation is used to mark a method as...read more

Add your answer
right arrow

Q9. Data types on c#

Ans.

Data types in C# include int, string, bool, double, etc.

  • C# has various data types like int, string, bool, double, char, etc.

  • Each data type has a specific range and memory allocation.

  • Examples: int num = 10; string name = 'John'; bool isTrue = true;

Add your answer
right arrow
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at Tech Mahindra Test Lead

based on 8 interviews
3 Interview rounds
Technical Round
HR Round - 1
HR Round - 2
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Test Lead Interview Questions from Similar Companies

Wipro Logo
3.7
 • 16 Interview Questions
View all
Recently Viewed
REVIEWS
Tech Mahindra
No Reviews
SALARIES
Tech Mahindra
REVIEWS
Reliance Communications
No Reviews
SALARIES
Tech Mahindra
SALARIES
Tech Mahindra
DESIGNATION
REVIEWS
Tech Mahindra
No Reviews
SALARIES
Reliance Communications
SALARIES
Reliance Communications
SALARIES
Tech Mahindra
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter