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 Senior QA Engineer Interview Questions and Answers

Updated 8 Jan 2025

9 Interview questions

A Senior QA Engineer was asked 5mo ago
Q. How do you switch to a frame and then switch back out of it in Selenium?
Ans. 

To switch to a frame in Selenium, use driver.switchTo().frame() method. To come out of a frame, use driver.switchTo().defaultContent() method.

  • Use driver.switchTo().frame() method to switch to a frame

  • Use driver.switchTo().defaultContent() method to come out of a frame

  • Example: driver.switchTo().frame("frameName");

  • Example: driver.switchTo().defaultContent();

A Senior QA Engineer was asked 5mo ago
Q. Given a 2x2 matrix, find the maximum diagonal sum.
Ans. 

To find the maximum diagonal sum in a 2X2 Matrix, sum the elements of the main diagonal and the opposite diagonal.

  • Sum the elements of the main diagonal (top left to bottom right) and the opposite diagonal (top right to bottom left).

  • Compare the sums of both diagonals and return the maximum sum.

  • Example: For a 2X2 Matrix [[1, 2], [3, 4]], the main diagonal sum is 1+4=5 and the opposite diagonal sum is 2+3=5. The maxi...

Senior QA Engineer Interview Questions Asked at Other Companies

asked in MakeMyTrip
Q1. Combination Sum Problem Statement Given an array of distinct posi ... read more
asked in MakeMyTrip
Q2. Next Greater Number Problem Statement Given a string S which repr ... read more
Q3. How do you retrieve data from a file using Selenium?
Q4. If you have two threads, and one thread burns completely in 30 mi ... read more
Q5. How can you execute a test case multiple times?
A Senior QA Engineer was asked 5mo ago
Q. How do you resolve merge conflicts in git?
Ans. 

Resolve merge conflicts in git by using git commands and tools.

  • Pull the latest changes from the remote repository

  • Use 'git status' to identify conflicting files

  • Open the conflicting files and manually resolve the conflicts

  • Add the resolved files to the staging area using 'git add'

  • Commit the changes with a merge message using 'git commit'

A Senior QA Engineer was asked 5mo ago
Q. Given a URL, how would you match the 14 characters preceding the @ symbol?
Ans. 

Extract the 14 characters before @ in a given URL

  • Use string manipulation to extract characters before @ symbol

  • Consider edge cases like no @ symbol or less than 14 characters before @

  • Handle special characters like %20 or %40

What people are saying about Tech Mahindra

View All
a senior engineer
1w
💼 OFFER RECEIVED – Sr. Test Engineer (Band U3) | Tech Mahindra | Noida 📎 Screenshot attached | CTC: ₹13.5 LPA
✅ Variable is paid monthly and fully (as confirmed by HR) ❓ Looking to know the MONTHLY IN-HAND SALARY after standard deductions & partial FBP usage Would appreciate any insights from current/ex-TechM folks! 🙏
FeedCard Image
Got a question about Tech Mahindra?
Ask anonymously on communities.
A Senior QA Engineer was asked 5mo ago
Q. Given a string ="This is my interview for QA engineer", write code to output each word with its vowel count.
Ans. 

Code to output each word with vowel count in a given string.

  • Split the string into words using space as delimiter

  • Iterate through each word and count the number of vowels

  • Store the word and its vowel count in an array of strings

A Senior QA Engineer was asked 5mo ago
Q. Write a regex to match a string that contains at least one uppercase letter, one lowercase letter, one digit, and one special character.
Ans. 

Regex pattern to match at least one capital letter, one small case letter, one digit, and one special character.

  • Use the regex pattern: (?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[^A-Za-z0-9])

  • Example: Password@123

A Senior QA Engineer was asked 5mo ago
Q. How do you bring specific commit changes to your branch?
Ans. 

Use git cherry-pick command to bring specific commit changes to your branch.

  • Identify the commit hash of the specific changes you want to bring to your branch.

  • Checkout to the branch where you want to apply the changes.

  • Use 'git cherry-pick <commit-hash>' command to apply the specific commit changes to your branch.

Are these interview questions helpful?
A Senior QA Engineer was asked 5mo ago
Q. How do you find the selected option text from a dropdown in Selenium?
Ans. 

To find the selected option text from a dropdown in Selenium, you can use the getFirstSelectedOption() method.

  • Use the Select class to work with dropdown elements in Selenium

  • Use the getFirstSelectedOption() method to get the selected option

  • Retrieve the text of the selected option using getText() method

A Senior QA Engineer was asked 5mo ago
Q. Given a dropdown containing options with duplicates, how would you find the duplicates and their frequency?
Ans. 

Find duplicates in a dropdown along with their occurrence/frequency.

  • Iterate through the dropdown options and store each option in a hashmap with its frequency.

  • Identify options with frequency greater than 1 as duplicates.

  • Return the duplicates along with their occurrence/frequency.

Tech Mahindra Senior QA Engineer Interview Experiences

1 interview found

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
No response

I applied via Referral and was interviewed in Dec 2024. There was 1 interview round.

Round 1 - Technical 

(9 Questions)

  • Q1. Match 14 characters before @ , given an url
  • Ans. 

    Extract the 14 characters before @ in a given URL

    • Use string manipulation to extract characters before @ symbol

    • Consider edge cases like no @ symbol or less than 14 characters before @

    • Handle special characters like %20 or %40

  • Answered by AI
  • Q2. Match Atleast one capital, once small case, 1 digit and 1 special character using regex?
  • Ans. 

    Regex pattern to match at least one capital letter, one small case letter, one digit, and one special character.

    • Use the regex pattern: (?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[^A-Za-z0-9])

    • Example: Password@123

  • Answered by AI
  • Q3. Given a string ="This is my interview for QA engineer"; write code to give an output of each word with vowel count?
  • Ans. 

    Code to output each word with vowel count in a given string.

    • Split the string into words using space as delimiter

    • Iterate through each word and count the number of vowels

    • Store the word and its vowel count in an array of strings

  • Answered by AI
  • Q4. Given a 2X2 Matrix, find the maximum diagonal sum?
  • Ans. 

    To find the maximum diagonal sum in a 2X2 Matrix, sum the elements of the main diagonal and the opposite diagonal.

    • Sum the elements of the main diagonal (top left to bottom right) and the opposite diagonal (top right to bottom left).

    • Compare the sums of both diagonals and return the maximum sum.

    • Example: For a 2X2 Matrix [[1, 2], [3, 4]], the main diagonal sum is 1+4=5 and the opposite diagonal sum is 2+3=5. The maximum d...

  • Answered by AI
  • Q5. How do you find the selected option text from dropdown in selenium?
  • Ans. 

    To find the selected option text from a dropdown in Selenium, you can use the getFirstSelectedOption() method.

    • Use the Select class to work with dropdown elements in Selenium

    • Use the getFirstSelectedOption() method to get the selected option

    • Retrieve the text of the selected option using getText() method

  • Answered by AI
  • Q6. Given a dropdown contains options with duplicates. Find those duplicates along with its occurrence/frequency?
  • Ans. 

    Find duplicates in a dropdown along with their occurrence/frequency.

    • Iterate through the dropdown options and store each option in a hashmap with its frequency.

    • Identify options with frequency greater than 1 as duplicates.

    • Return the duplicates along with their occurrence/frequency.

  • Answered by AI
  • Q7. How do you resolve merge conflicts in git?
  • Ans. 

    Resolve merge conflicts in git by using git commands and tools.

    • Pull the latest changes from the remote repository

    • Use 'git status' to identify conflicting files

    • Open the conflicting files and manually resolve the conflicts

    • Add the resolved files to the staging area using 'git add'

    • Commit the changes with a merge message using 'git commit'

  • Answered by AI
  • Q8. How to bring specific commit changes to your branch?
  • Ans. 

    Use git cherry-pick command to bring specific commit changes to your branch.

    • Identify the commit hash of the specific changes you want to bring to your branch.

    • Checkout to the branch where you want to apply the changes.

    • Use 'git cherry-pick <commit-hash>' command to apply the specific commit changes to your branch.

  • Answered by AI
  • Q9. How to switch to frame and come out of it in selenium?
  • Ans. 

    To switch to a frame in Selenium, use driver.switchTo().frame() method. To come out of a frame, use driver.switchTo().defaultContent() method.

    • Use driver.switchTo().frame() method to switch to a frame

    • Use driver.switchTo().defaultContent() method to come out of a frame

    • Example: driver.switchTo().frame("frameName");

    • Example: driver.switchTo().defaultContent();

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Keep doing any activity(remove/add/update resume, change skills etc..) in naukri/linkedin so that i catches recruiters attention

Interview questions from similar companies

I applied via Monster and was interviewed before Oct 2020. There were 3 interview rounds.

Interview Questionnaire 

1 Question

  • Q1. Technical selenium and architecture

Interview Preparation Tips

Interview preparation tips for other job seekers - Be ready with technical knowlage

Senior QA Engineer Interview Questions Asked at Other Companies

asked in MakeMyTrip
Q1. Combination Sum Problem Statement Given an array of distinct posi ... read more
asked in MakeMyTrip
Q2. Next Greater Number Problem Statement Given a string S which repr ... read more
Q3. How do you retrieve data from a file using Selenium?
Q4. If you have two threads, and one thread burns completely in 30 mi ... read more
Q5. How can you execute a test case multiple times?
Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

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

Round 1 - Technical 

(1 Question)

  • Q1. 1.Actions 2.Alerts 3.diff between string buffer and string builder 4. diff between hash map and hash table 5.program to find index of character in string 6.program to find character occurrences in a string...
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Selected Selected

I applied via Approached by Company and was interviewed before Apr 2023. There were 3 interview rounds.

Round 1 - Coding Test 

Basic selenium automation coding question and QA related MCQs

Round 2 - Technical 

(4 Questions)

  • Q1. Core java and selenium and Qs related to Leading the QA team
  • Q2. Count duplicates in a string
  • Ans. 

    Count duplicates in a string

    • Iterate through the string and store each character in a hashmap with its count

    • Return the count of characters with count greater than 1

  • Answered by AI
  • Q3. Write a Program to Sort Array
  • Ans. 

    Program to sort array of strings

    • Use a sorting algorithm like bubble sort, selection sort, or merge sort

    • Compare strings using strcmp() function in C or compareTo() method in Java

    • Handle edge cases like empty array or array with only one element

  • Answered by AI
  • Q4. Selenium Commands
Round 3 - HR 

(1 Question)

  • Q1. Salary Negotiation

Interview Preparation Tips

Interview preparation tips for other job seekers - It was best experience got the responses on faster basis.
Prepare well.

Skills evaluated in this interview

What people are saying about Tech Mahindra

View All
a senior engineer
1w
💼 OFFER RECEIVED – Sr. Test Engineer (Band U3) | Tech Mahindra | Noida 📎 Screenshot attached | CTC: ₹13.5 LPA
✅ Variable is paid monthly and fully (as confirmed by HR) ❓ Looking to know the MONTHLY IN-HAND SALARY after standard deductions & partial FBP usage Would appreciate any insights from current/ex-TechM folks! 🙏
FeedCard Image
Got a question about Tech Mahindra?
Ask anonymously on communities.
Interview experience
1
Bad
Difficulty level
-
Process Duration
Less than 2 weeks
Result
No response

I applied via Naukri.com

Round 1 - Technical 

(1 Question)

  • Q1. Introduce yourself and give some brief about work experience

Interview Preparation Tips

Interview preparation tips for other job seekers - I have appeared for the interview for the Role of QA Automation Engineer at Vadodara Branch. I joined the meeting early 5 minutes as usual then waited around 15 minutes of the panel and they joined the meeting. After that, I was asked to introduce myself and give some brief about my experience and role. So,I mentioned that I have 2 years of experience in Automation Testing which I had already mentioned to HR during the screening round and the panel asked rudely I have only 2 years' experience they put the meeting on hold for a longer time and came back and just message in the meeting saying we required at least 4 years of experience and how come you didn't tell HR.
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Campus Placement and was interviewed before Apr 2023. There were 4 interview rounds.

Round 1 - Aptitude Test 

Basic Aptitude questions. Candidate with average knowledge can crack it.

Round 2 - Coding Test 

Two programming questions were asked. Difficulty level was medium.

Round 3 - One-on-one 

(1 Question)

  • Q1. Technical questions related to programming.
Round 4 - HR 

(1 Question)

  • Q1. HR type questions

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare well and be confident.
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
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 

(1 Question)

  • Q1. Whais you testing experience in you projector
  • Ans. 

    I have over 5 years of experience in testing various software applications, including web and mobile projects.

    • Experience in manual and automated testing

    • Strong knowledge of testing methodologies and tools

    • Experience in creating test plans and test cases

    • Familiarity with Agile and Waterfall development methodologies

    • Experience in regression testing and performance testing

  • Answered by AI
Round 3 - Technical 

(1 Question)

  • Q1. What is SIT and steps involved in designing test cases
  • Ans. 

    SIT stands for System Integration Testing. It involves testing the interaction between different components/modules of a system.

    • Understand the system architecture and integration points

    • Identify the input and output data for each component/module

    • Design test cases to validate the interaction between components/modules

    • Execute test cases and analyze results

    • Report defects and retest after fixes

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Simple questions

Skills evaluated in this interview

Are these interview questions helpful?
Interview experience
2
Poor
Difficulty level
Moderate
Process Duration
4-6 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed before Feb 2023. There were 3 interview rounds.

Round 1 - Coding Test 

Basic Java concepts, selenium cases

Round 2 - One-on-one 

(1 Question)

  • Q1. Java - Sorting, merging, arrays
Round 3 - HR 

(1 Question)

  • Q1. Compensation, Work experiance
Interview experience
5
Excellent
Difficulty level
-
Process Duration
Less than 2 weeks
Result
-

I applied via Job Portal and was interviewed before Jun 2023. There was 1 interview round.

Round 1 - One-on-one 

(2 Questions)

  • Q1. Hashmap implementation
  • Ans. 

    Hashmap is a data structure that stores key-value pairs and allows for fast retrieval of values based on keys.

    • Hashmap is implemented using an array of linked lists or buckets to handle collisions.

    • Each key is hashed to determine its index in the array.

    • Common operations include put(key, value), get(key), and remove(key).

    • Example: HashMap<String, Integer> map = new HashMap<>(); map.put("apple", 5); int value = ...

  • Answered by AI
  • Q2. Difference between getWindowHandles and getWindowHandle
  • Ans. 

    getWindowHandles returns all open window handles, getWindowHandle returns handle of current window

    • getWindowHandles returns a set of all window handles currently open in the browser

    • getWindowHandle returns the handle of the current window being focused on

    • Example: driver.getWindowHandles() vs driver.getWindowHandle()

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare OOPs and selenium concepts

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
No response

I applied via Naukri.com and was interviewed in Aug 2024. There were 2 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. Difference between type and typeAndWait
  • Ans. 

    typeAndWait is used to wait for a specific element to appear before proceeding, while type does not wait.

    • typeAndWait is used in Selenium WebDriver to wait for a specific element to appear before typing into it

    • type does not wait for the element to appear and may cause errors if the element is not present

    • typeAndWait is useful for dynamic web pages where elements may take time to load

  • Answered by AI
  • Q2. How to change window size in selenium
  • Ans. 

    To change window size in Selenium, you can use the set_window_size() method of the WebDriver class.

    • Use driver.set_window_size(width, height) to change the window size

    • Specify the width and height in pixels as parameters

    • Example: driver.set_window_size(800, 600) will set the window size to 800x600 pixels

  • Answered by AI
Round 2 - Technical 

(1 Question)

  • Q1. Different listeners in TestNG
  • Ans. 

    TestNG provides different listeners to customize test execution and reporting.

    • TestNG provides several built-in listeners such as IInvokedMethodListener, ITestListener, ISuiteListener, etc.

    • Listeners can be used to perform actions before or after test methods, suites, or entire test runs.

    • Listeners can be implemented by creating classes that extend the corresponding listener interfaces.

    • Listeners can be configured in the t...

  • Answered by AI

Skills evaluated in this interview

Tech Mahindra Interview FAQs

How many rounds are there in Tech Mahindra Senior QA Engineer interview?
Tech Mahindra interview process usually has 1 rounds. The most common rounds in the Tech Mahindra interview process are Technical.
How to prepare for Tech Mahindra Senior QA 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, C, C++, HVAC and JMeter.
What are the top questions asked in Tech Mahindra Senior QA Engineer interview?

Some of the top questions asked at the Tech Mahindra Senior QA Engineer interview -

  1. How to switch to frame and come out of it in seleni...read more
  2. How do you find the selected option text from dropdown in seleni...read more
  3. Given a dropdown contains options with duplicates. Find those duplicates along ...read more

Tell us how to improve this page.

Overall Interview Experience Rating

4.5/5

based on 2 interview experiences

Difficulty level

Moderate 100%

Duration

2-4 weeks 100%
View more
Tech Mahindra Senior QA Engineer Salary
based on 76 salaries
₹10.7 L/yr - ₹18.8 L/yr
13% more than the average Senior QA Engineer Salary in India
View more details

Tech Mahindra Senior QA Engineer Reviews and Ratings

based on 5 reviews

2.4/5

Rating in categories

3.8

Skill development

2.9

Work-life balance

2.5

Salary

3.4

Job security

1.5

Company culture

1.5

Promotions

2.4

Work satisfaction

Explore 5 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

₹6.4 L/yr - ₹23.5 L/yr

Technical Lead
12.5k salaries
unlock blur

₹9.8 L/yr - ₹40 L/yr

Associate Software Engineer
6k salaries
unlock blur

₹1.9 L/yr - ₹5.7 L/yr

Team Lead
5.3k salaries
unlock blur

₹6.5 L/yr - ₹17.9 L/yr

Explore more salaries
Compare Tech Mahindra with

Infosys

3.6
Compare

Cognizant

3.7
Compare

Accenture

3.8
Compare

Wipro

3.7
Compare
write
Share an Interview