Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by Tech Mahindra Team. If you also belong to the team, you can get access from here

Tech Mahindra Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

Tech Mahindra Automation Test Engineer Interview Questions, Process, and Tips

Updated 21 May 2024

Top Tech Mahindra Automation Test Engineer Interview Questions and Answers

  • Q1. What is Select class in Selenium. Write down syntax and explain the methods
  • Q2. What is polymorphism and explain with examples you used in your project
  • Q3. How to point to any other branch other than master in Jenkins
View all 16 questions

Tech Mahindra Automation Test Engineer Interview Experiences

7 interviews found

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
4-6 weeks
Result
Selected Selected

I applied via Job Portal and was interviewed in Apr 2024. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. 1. Explain your project. 2. Explain Oops concept
  • Ans. 

    I have worked on a project to automate testing processes using various tools and frameworks.

    • Implemented automation scripts using Selenium WebDriver for web application testing

    • Utilized TestNG framework for test case management and execution

    • Integrated Jenkins for continuous integration and deployment

    • Used Page Object Model design pattern for better code maintenance

    • Performed API testing using tools like Postman

  • Answered by AI
Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(3 Questions)

  • Q1. Defect life cycle
  • Q2. Palindrome java program
  • Q3. Reverse string java program
  • Ans. 

    Reverse a string in Java using StringBuilder or iterative approach.

    • Use StringBuilder's reverse() method to reverse the string.

    • Iterate through the string from end to start and build the reversed string.

    • Handle null or empty string cases.

    • Example: input 'hello' -> output 'olleh'

  • Answered by AI

Skills evaluated in this interview

Automation Test Engineer Interview Questions Asked at Other Companies

asked in TCS
Q1. How to handle scrollbar and mouse activities Jenkins and Github S ... read more
asked in Infosys
Q2. Introduce yourself 1.What is STLC 2. difference between Test plan ... read more
Q3. What is Automation? what is selenium?what is xpath? what is regre ... read more
asked in TCS
Q4. 1) cucumber 2) Defects worked on, tell me about the bugs you foun ... read more
asked in Capgemini
Q5. 1] Introduction 2] Sanity Vs Smoke testing 3] Waits in selenium a ... read more
Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Naukri.com and was interviewed in Dec 2023. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. Oops concept, Selenium ,One Reverse string handle program without Reverse function.Collection frameworks questions on Hash Table and Hash Map, findelements vs findelement,ArrayList vs LinkList, Regression ...
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Walk-in and was interviewed in Jan 2023. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Technical 

(2 Questions)

  • Q1. Programming questions related to Java
  • Q2. Questions related to Automation and Manual testing
Round 3 - HR 

(2 Questions)

  • Q1. Questions related to my family
  • Q2. Questions related to company

Interview Preparation Tips

Interview preparation tips for other job seekers - To develop programming and coding skill as well as to improve the communication skill.

Tech Mahindra interview questions for designations

 Senior Automation Test Engineer

 (1)

 Automation Test Lead

 (1)

 Test Engineer

 (22)

 Senior Automation Engineer

 (2)

 QA Automation Engineer

 (1)

 Automation Engineer

 (1)

 Senior Test Engineer

 (18)

 Manual Test Engineer

 (5)

I applied via Referral and was interviewed in Nov 2021. There was 1 interview round.

Interview Questionnaire 

12 Questions

  • Q1. Explain your framework in detail
  • Ans. 

    My framework is a hybrid framework that combines data-driven and keyword-driven approaches.

    • The framework uses Excel sheets to store test data and keywords.

    • It uses Selenium WebDriver for browser automation.

    • It has a modular structure with reusable functions and libraries.

    • It generates detailed HTML reports for test results.

    • It supports parallel execution of tests.

    • It has built-in exception handling and logging mechanisms.

  • Answered by AI
  • Q2. What is Maven and explain it's structure
  • 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 uses a central repository to download dependencies

    • Maven has a defined directory structure for projects

    • Plugins can be added to extend Maven's functionality

  • Answered by AI
  • Q3. What is setting.xml in Maven
  • Ans. 

    settings.xml is a configuration file used by Maven to customize its behavior.

    • It contains information about the local repository location, proxy settings, and server credentials.

    • It can be used to define profiles for different environments.

    • It is located in the .m2 directory in the user's home directory.

    • It can be overridden by using the -s or --settings command-line option.

  • Answered by AI
  • Q4. How to link TestNG file in Maven POM
  • Ans. 

    To link TestNG file in Maven POM, add the TestNG dependency and plugin in POM.xml

    • Add TestNG dependency in POM.xml

    • Add TestNG plugin in POM.xml

    • Configure TestNG plugin to run the TestNG XML file

    • Example: org.testng testng 7.4.0 org.apache.maven.plugins maven-surefire-plugin 3.0.0-M5 testng.xml

  • Answered by AI
  • Q5. What is Select class in Selenium. Write down syntax and explain the methods
  • Ans. 

    Select class in Selenium is used to handle dropdowns and multi-select options on a web page.

    • Syntax: Select select = new Select(driver.findElement(By.id("dropdownId")));

    • Methods: selectByVisibleText(), selectByValue(), selectByIndex(), getOptions(), isMultiple(), getAllSelectedOptions(), deselectAll(), deselectByVisibleText(), deselectByValue(), deselectByIndex()

    • Select class is used to handle dropdowns and multi-select o...

  • Answered by AI
  • Q6. What is Jenkins and how to create job in jenkins
  • Ans. 

    Jenkins is an open-source automation server used for continuous integration and delivery. It allows creating and managing jobs.

    • Jenkins is a popular tool for automating software development processes.

    • It provides a web-based interface for creating and managing jobs.

    • Jobs in Jenkins are used to define tasks and workflows for building, testing, and deploying software.

    • To create a job in Jenkins, navigate to the Jenkins dashb...

  • Answered by AI
  • Q7. How to point to any other branch other than master in Jenkins
  • Ans. 

    To point to any other branch in Jenkins, use the 'Branch specifier' field in the 'Source Code Management' section.

    • In the Jenkins job configuration, go to the 'Source Code Management' section

    • Select the appropriate SCM tool (e.g. Git, SVN)

    • In the 'Branch specifier' field, enter the name of the branch you want to point to (e.g. 'develop', 'feature/xyz')

    • Save the configuration and run the job

  • Answered by AI
  • Q8. What is the design pattern used in my framework
  • Ans. 

    I don't have the available data to answer this question.

    • N/A

  • Answered by AI
  • Q9. What is polymorphism and explain with examples you used in your project
  • Ans. 

    Polymorphism is the ability of an object to take on many forms. It allows objects of different classes to be treated as if they were the same type.

    • Polymorphism is achieved through method overriding and method overloading

    • Example: A parent class Animal has a method called makeSound(). Child classes like Dog, Cat, and Cow can override this method to make their own unique sound.

    • Another example is method overloading where a...

  • Answered by AI
  • Q10. What is abstraction and difference between interface and abstract class
  • Ans. 

    Abstraction is a way of hiding implementation details. An interface is a contract that specifies the behavior of a class.

    • Abstraction is achieved through abstract classes and interfaces

    • Abstract classes can have both abstract and non-abstract methods

    • Interfaces can only have abstract methods and constants

    • A class can implement multiple interfaces but can only inherit from one abstract class

    • Abstract classes can have constru...

  • Answered by AI
  • Q11. Write SQL query to delete duplicate records
  • Ans. 

    SQL query to delete duplicate records

    • Use the DELETE statement with a subquery to identify and delete duplicate records

    • The subquery should select the duplicate records based on the columns that define uniqueness

    • Use the ROW_NUMBER() function to assign a unique number to each row, and delete rows with a number greater than 1

  • Answered by AI
  • Q12. Write SQL query to get the 10th highest salary from employee table
  • Ans. 

    SQL query to get the 10th highest salary from employee table

    • Use ORDER BY and LIMIT clauses

    • Subquery can be used to get the 10th highest salary

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Focus more on the framework you have in your organization and you should know why have you used particular line in your framework.

Skills evaluated in this interview

Get interview-ready with Top Tech Mahindra Interview Questions

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed before Mar 2023. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. What is Robot framework? Challenges faced during testing? Types of Testing. How to handle bugs? Whether you will be able to work for extra hours during prod releases?
  • Ans. 

    Robot Framework is a generic open-source automation framework for acceptance testing and acceptance test-driven development (ATDD).

    • Robot Framework is a keyword-driven test automation framework that uses tabular test data syntax.

    • Challenges faced during testing include identifying and prioritizing test cases, handling dynamic elements, and maintaining test scripts.

    • Types of testing include functional testing, regression t...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Concentrate basics and theory part. Should be able to explain the real time scenarios clearly.

Skills evaluated in this interview

Automation Test Engineer Jobs at Tech Mahindra

View all

I was interviewed in Feb 2022.

Round 1 - One-on-one 

(2 Questions)

  • Q1. What is sprint retrospective
  • Ans. 

    Sprint retrospective is a meeting held at the end of a sprint to review the team's performance and identify areas for improvement.

    • It is a time-boxed meeting

    • It is attended by the entire team including the product owner and scrum master

    • The team discusses what went well, what didn't go well, and what can be improved in the next sprint

    • Action items are identified and assigned to team members for follow-up

    • The goal is to cont...

  • Answered by AI
  • Q2. What is sprint backlog
  • Ans. 

    Sprint backlog is a prioritized list of tasks to be completed during a sprint.

    • It is created during sprint planning

    • It contains user stories, bugs, and technical tasks

    • It is updated daily during the sprint

    • It helps the team to stay focused on the sprint goal

    • It is owned by the development team

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - The interviewer was quite rude. Have ap patience and give the interview properly

Skills evaluated in this interview

Interview questions from similar companies

Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(6 Questions)

  • Q1. Write a code for febonacci series
  • Q2. Dynamic webElements handling using Xpath?
  • Q3. What is spike in agile?
  • Q4. Difference between agile and waterfall based model?
  • Q5. Sprint point system? Explain?
  • Q6. Payment failure by debit card in e-commerce site? Make test scenarios?
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.

Round 1 - Technical 

(9 Questions)

  • Q1. Difference between absolute and relative Xpath
  • Ans. 

    Absolute Xpath starts from the root element, while relative Xpath starts from any node in the DOM structure.

    • Absolute Xpath starts with a single forward slash (/) and starts selection from the root node.

    • Relative Xpath starts with a double forward slash (//) and starts selection from the current node or any node in the DOM structure.

    • Absolute Xpath is more brittle and prone to breaking if the structure of the page changes...

  • Answered by AI
  • Q2. What would be return if multiple tabs are open
  • Ans. 

    The return would be the number of tabs open in the browser.

    • The return value would be an integer representing the count of open tabs.

    • For example, if there are 5 tabs open, the return value would be 5.

  • Answered by AI
  • Q3. What are the waits in selenium
  • Ans. 

    Types of waits in Selenium include Implicit Wait, Explicit Wait, and Fluent Wait.

    • Implicit Wait: Waits for a certain amount of time before throwing a NoSuchElementException.

    • Explicit Wait: Waits for a certain condition to occur before proceeding further in the code.

    • Fluent Wait: Waits for a condition to be true with a defined polling frequency.

    • Example: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

  • Answered by AI
  • Q4. Exceptions in selenium
  • Ans. 

    Exceptions in Selenium are errors that occur during test execution, disrupting the flow of the test script.

    • Exceptions are thrown when there is an unexpected behavior in the application under test or in the test script itself.

    • Common exceptions in Selenium include NoSuchElementException, ElementNotVisibleException, TimeoutException, and StaleElementReferenceException.

    • Handling exceptions in Selenium can be done using try-...

  • Answered by AI
  • Q5. What is feature and step definitions in cucumber BDD
  • Ans. 

    Feature files contain high-level description of the functionality to be tested, while step definitions are the implementation of the steps in the feature file using code.

    • Feature files are written in Gherkin syntax and describe the behavior of the application in plain text.

    • Step definitions are written in programming languages like Java, Ruby, etc., and map the steps in the feature file to automation code.

    • Feature files a...

  • Answered by AI
  • Q6. How to input data in cucumber
  • Ans. 

    Data can be input in Cucumber using feature files and step definitions.

    • Data can be input in feature files using scenarios and scenario outlines

    • Step definitions can be used to define the actions to be taken with the input data

    • Data tables can be used in feature files to input structured data

    • Examples keyword can be used in scenario outlines to provide multiple sets of input data

  • Answered by AI
  • Q7. Basic Java questions like access modifiers, method overloading and overriding
  • Q8. What is Test case, Test plan and Test Secenarios
  • Ans. 

    Test case is a set of conditions or variables under which a tester will determine whether a system under test satisfies requirements. Test plan is a document outlining the scope, approach, resources, and schedule of testing activities. Test scenarios are detailed descriptions of possible interactions with the system.

    • Test case: specific conditions to be tested, expected results, steps to execute

    • Test plan: overall strate...

  • Answered by AI
  • Q9. Hooks in Java
  • Ans. 

    Hooks in Java are methods that allow subclasses to override or extend the behavior of a superclass.

    • Hooks are commonly used in frameworks like JUnit and TestNG for test automation.

    • They are often used for setup and teardown operations before and after test methods.

    • Examples include @Before, @After, @BeforeClass, and @AfterClass annotations in JUnit.

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - The second round interview was quite challenging, with numerous questions focused on core Java topics such as data structures and linked lists. It felt less like a testing interview and more akin to a developer interview.

Skills evaluated in this interview

Interview experience
2
Poor
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.

Round 1 - One-on-one 

(7 Questions)

  • Q1. What is a constructor and it's purpose?
  • Ans. 

    A constructor is a special type of method in a class that is automatically called when an object of that class is created.

    • Constructors have the same name as the class they belong to

    • They are used to initialize the object's state or perform any necessary setup

    • Constructors can have parameters to customize the initialization process

    • Example: public class Car { public Car(String color) { this.color = color; } }

  • Answered by AI
  • Q2. Can you override a Static Method?
  • Ans. 

    Yes, a static method can be overridden in Java using the concept of method hiding.

    • In Java, static methods cannot be overridden in the traditional sense like instance methods.

    • When a subclass defines a static method with the same signature as a static method in the superclass, it is called method hiding.

    • Method hiding does not follow polymorphism and is resolved at compile time based on the reference type.

    • Example: class...

  • Answered by AI
  • Q3. Can you create a Static local variable inside a Static method
  • Ans. 

    Yes, a static local variable can be created inside a static method.

    • Yes, a static local variable can be declared inside a static method in programming languages like C++.

    • Static local variables retain their values between function calls.

    • Example: static void myStaticMethod() { static int count = 0; count++; }

  • Answered by AI
  • Q4. What is the memory allocation for a String?
  • Ans. 

    String memory allocation is dynamic and depends on the length of the string.

    • String memory allocation is dynamic and can change based on the length of the string.

    • In Java, a String object is stored in the heap memory.

    • Each character in a String typically takes up 2 bytes of memory.

    • String objects in Java are immutable, meaning once a String object is created, it cannot be changed.

  • Answered by AI
  • Q5. Can you create a Static method inside an Abstract class or Interface?
  • Ans. 

    Yes, you can create a static method inside an abstract class or interface.

    • Static methods can be defined in interfaces since Java 8.

    • Static methods in interfaces are used for providing utility methods that are not tied to any specific instance of the interface.

    • Static methods in abstract classes can be used for common functionality that does not require an instance of the class.

  • Answered by AI
  • Q6. What is the Parent class of Java?
  • Ans. 

    The parent class of Java is the Object class.

    • All classes in Java are directly or indirectly derived from the Object class.

    • The Object class is the root class in Java's class hierarchy.

    • It provides methods that are common to all objects in Java, such as toString(), equals(), and hashCode().

  • Answered by AI
  • Q7. What is Window Handles in Selenium?
  • Ans. 

    Window Handles in Selenium are unique identifiers used to handle multiple browser windows in a Selenium test script.

    • Window Handles are unique alphanumeric strings assigned to each browser window opened by Selenium.

    • They are used to switch between different browser windows during a test script execution.

    • Window Handles can be obtained using getWindowHandles() method in Selenium.

    • Example: Set handles = driver.getWindowHandl

  • Answered by AI

Interview Preparation Tips

Topics to prepare for Mphasis Automation Test Engineer interview:
  • Selenium
  • Java
  • OOPS
  • Manual Testing
Interview preparation tips for other job seekers - Nowadays, the interviewers expect the same Java language of a Developer as a Tester. But, how will that be possible? If a Tester has the same knowledge as a Developer, then why would he/she become a Tester instead of a Developer? Please open up your thoughts to the Interviewer, so that they can think before confusing with the deep logical knowledge.

Skills evaluated in this interview

Tech Mahindra Interview FAQs

How many rounds are there in Tech Mahindra Automation Test Engineer interview?
Tech Mahindra interview process usually has 1-2 rounds. The most common rounds in the Tech Mahindra interview process are Technical, One-on-one Round and Resume Shortlist.
How to prepare for Tech Mahindra Automation Test Engineer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Tech Mahindra. The most common topics and skills that interviewers at Tech Mahindra expect are Automation Testing, Selenium, Java, Cucumber and Test Engineering.
What are the top questions asked in Tech Mahindra Automation Test Engineer interview?

Some of the top questions asked at the Tech Mahindra Automation Test Engineer interview -

  1. What is Select class in Selenium. Write down syntax and explain the metho...read more
  2. What is polymorphism and explain with examples you used in your proj...read more
  3. How to point to any other branch other than master in Jenki...read more

Tell us how to improve this page.

Tech Mahindra Automation Test Engineer Interview Process

based on 5 interviews

1 Interview rounds

  • Technical Round
View more
Tech Mahindra Automation Test Engineer Salary
based on 726 salaries
₹3.1 L/yr - ₹15.3 L/yr
19% more than the average Automation Test Engineer Salary in India
View more details

Tech Mahindra Automation Test Engineer Reviews and Ratings

based on 29 reviews

3.4/5

Rating in categories

3.4

Skill development

3.3

Work-life balance

2.9

Salary

3.4

Job security

3.3

Company culture

2.5

Promotions

2.7

Work satisfaction

Explore 29 Reviews and Ratings
Selenium UI Automation Test Engineer

Hyderabad / Secunderabad,

Pune

+1

4-9 Yrs

Not Disclosed

Explore more jobs
Software Engineer
26.4k salaries
unlock blur

₹2 L/yr - ₹9.2 L/yr

Senior Software Engineer
21.4k salaries
unlock blur

₹5.5 L/yr - ₹23 L/yr

Technical Lead
11.7k salaries
unlock blur

₹9.5 L/yr - ₹38 L/yr

Associate Software Engineer
5.5k salaries
unlock blur

₹1.8 L/yr - ₹8.2 L/yr

Team Lead
5k salaries
unlock blur

₹5.2 L/yr - ₹17 L/yr

Explore more salaries
Compare Tech Mahindra with

Infosys

3.6
Compare

Cognizant

3.8
Compare

Accenture

3.8
Compare

Wipro

3.7
Compare
Did you find this page helpful?
Yes No
write
Share an Interview