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 and Answers

Updated 21 May 2024

17 Interview questions

An Automation Test Engineer was asked
Q. Write a Java program to reverse a string.
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'

An Automation Test Engineer was asked
Q. Write a Java program to check if a given string is a palindrome.
Ans. 

A palindrome is a word, phrase, or sequence that reads the same backward as forward. This Java program checks for palindromes.

  • Use a StringBuilder to reverse the input string and compare it with the original.

  • Example: 'madam' is a palindrome, while 'hello' is not.

  • Consider ignoring case and non-alphanumeric characters for a more robust check.

  • Example code snippet: String str = 'A man, a plan, a canal, Panama!'; Stri...

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
asked in LTIMindtree
Q3. 1. diff b/w findelements vs findelement? 2. set vs map? 3. wap fo ... read more
asked in Capgemini
Q4. 1] Introduction 2] Sanity Vs Smoke testing 3] Waits in selenium a ... read more
asked in Capgemini
Q5. What is assertion? What is soft assertion? What is hard assertion ... read more
An Automation Test Engineer was asked
Q. What is a 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

An Automation Test Engineer was asked
Q. What is a 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...

What people are saying about Tech Mahindra

View All
coolestlime
Verified Icon
1w
works at
Infosys
Delay expected?
I have cleared the interview and got a verbal communication of offer. I uploaded the documents a month ago but no offer letter no response yet
Got a question about Tech Mahindra?
Ask anonymously on communities.
An Automation Test Engineer was asked
Q. Write an 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

An Automation Test Engineer was asked
Q. What is the Select class in Selenium? Write down the 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-sel...

An Automation Test Engineer was asked
Q. How do you link a 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

Are these interview questions helpful?
An Automation Test Engineer was asked
Q. What is abstraction, and what are the differences between an interface and an 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 co...

An Automation Test Engineer was asked
Q. What is polymorphism, and can you explain with examples how you used it 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 wh...

An Automation Test Engineer was asked
Q. How do you configure Jenkins to point to a branch other than the master branch?
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

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
  • Ans. 

    A palindrome is a word, phrase, or sequence that reads the same backward as forward. This Java program checks for palindromes.

    • Use a StringBuilder to reverse the input string and compare it with the original.

    • Example: 'madam' is a palindrome, while 'hello' is not.

    • Consider ignoring case and non-alphanumeric characters for a more robust check.

    • Example code snippet: String str = 'A man, a plan, a canal, Panama!'; String cl...

  • Answered by AI
  • 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

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.

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
  • 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

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

I appeared for an interview 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

I applied via Internshala and was interviewed in May 2021. There were 3 interview rounds.

Interview Questionnaire 

2 Questions

  • Q1. They aske qustn relateed to resume
  • Ans. 

    Discussing my resume highlights my skills, experiences, and projects relevant to the software engineering role.

    • Experience with Java and Python in developing web applications.

    • Led a team project that improved application performance by 30%.

    • Contributed to open-source projects, enhancing my coding skills and collaboration.

    • Completed an internship at XYZ Corp, where I developed a feature that increased user engagement.

  • Answered by AI
  • Q2. What made you choose this company

Interview Preparation Tips

Interview preparation tips for other job seekers - always be prepared with what you have wrote in your resume I will suggest..bcoz there is no other qustn than basics

Interview Questionnaire 

1 Question

  • Q1. In 5 programs without effecting one by one how can you debug a particular program and how can you know tha program is calling in debug
  • Ans. 

    To debug a particular program without affecting others, use breakpoints and step through the code.

    • Set a breakpoint in the program you want to debug

    • Step through the code using a debugger to identify the issue

    • Use logging statements to track the flow of the program

    • Check the call stack to see which functions are being called

    • Use conditional breakpoints to stop the program at specific points

  • Answered by AI

Skills evaluated in this interview

I applied via Campus Placement and was interviewed before Aug 2021. There were 3 interview rounds.

Round 1 - Aptitude Test 

The first round was an aptitude test with questions ranging from basic mathematical concepts to logical/analytical questions. English was also included in the test. The difficulty was medium and I was able to solve 70-80% of the questions.

Round 2 - Coding Test 

Two coding questions were the part of the test. I was supposed to solve and pass all the test cases for both the questions. The coding questions tested my knowledge in the field of arrays, loops and pointers. I was able to solve one and partially solve another.

Round 3 - Technical 

(1 Question)

  • Q1. The interview was a mixture of both HR as well as Technical. I was asked decent questions and tested my knowledge in the fundamentals of programming.

Interview Preparation Tips

Topics to prepare for LTIMindtree Software Engineer interview:
  • Python
  • Java
  • Full Stack
Interview preparation tips for other job seekers - Make sure that you are good in the fundamentals of Programming(if you are looking for an IT job) or just be good at a particular thing which perfectly suites your current necessities and also helps your career to grow in the future. Do not be disheartened if things do not go your way, there is always hope and a lot of companies would like to hire an intelligent candidate like you.
Cheers :)

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.

Overall Interview Experience Rating

3.8/5

based on 5 interview experiences

Difficulty level

Easy 25%
Moderate 75%

Duration

Less than 2 weeks 75%
4-6 weeks 25%
View more
Tech Mahindra Automation Test Engineer Salary
based on 747 salaries
₹3.3 L/yr - ₹14.5 L/yr
11% more than the average Automation Test Engineer Salary in India
View more details

Tech Mahindra Automation Test Engineer Reviews and Ratings

based on 31 reviews

3.8/5

Rating in categories

3.8

Skill development

3.7

Work-life balance

3.3

Salary

3.8

Job security

3.6

Company culture

2.8

Promotions

3.2

Work satisfaction

Explore 31 Reviews and Ratings
Software Engineer
26.6k salaries
unlock blur

₹3.7 L/yr - ₹9.2 L/yr

Senior Software Engineer
22.2k salaries
unlock blur

₹9 L/yr - ₹18.5 L/yr

Technical Lead
12.4k salaries
unlock blur

₹16.9 L/yr - ₹30 L/yr

Associate Software Engineer
6.1k salaries
unlock blur

₹1.9 L/yr - ₹5.7 L/yr

Team Lead
5.3k salaries
unlock blur

₹6.5 L/yr - ₹17.8 L/yr

Explore more salaries
Compare Tech Mahindra with

Infosys

3.6
Compare

Cognizant

3.7
Compare

Accenture

3.7
Compare

Wipro

3.7
Compare
write
Share an Interview