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
3.5

based on 33.7k Reviews

Filter interviews by

Tech Mahindra QA Automation Engineer Interview Questions and Answers

Updated 2 Sep 2022

Tech Mahindra QA Automation Engineer Interview Experiences

1 interview found

I applied via Recruitment Consulltant and was interviewed before Sep 2021. There was 1 interview round.

Round 1 - Technical 

(3 Questions)

  • Q1. Project in which i worked, Android development
  • Q2. Appium and selenium related questions
  • Q3. Sdlc and stlc basic concepts

Interview Preparation Tips

Interview preparation tips for other job seekers - Learn basic of testing, istqb certificate prefer

Interview questions from similar companies

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Approached by Company and was interviewed in Feb 2024. There was 1 interview round.

Round 1 - Technical 

(5 Questions)

  • Q1. Playwright related questions
  • Q2. Scenario based questions
  • Q3. API testing and data-related
  • Q4. Difference between soft and hard assertions
  • Ans. 

    Soft assertions allow test execution to continue after a failure, while hard assertions stop the test execution immediately.

    • Soft assertions are used when you want to check multiple conditions in a test case without stopping the execution on the first failure.

    • Hard assertions are used when you want to stop the test execution immediately after a failure.

    • Soft assertions are typically used in scenarios where you want to col...

  • Answered by AI
  • Q5. How to navigate the browser
  • Ans. 

    To navigate the browser, use methods like get(), navigate().to(), navigate().back(), navigate().forward(), and navigate().refresh().

    • Use driver.get("url") to open a specific URL

    • Use driver.navigate().to("url") to navigate to a specific URL

    • Use driver.navigate().back() to navigate back to the previous page

    • Use driver.navigate().forward() to navigate forward to the next page

    • Use driver.navigate().refresh() to refresh the curr

  • Answered by AI

Interview Preparation Tips

Topics to prepare for Cognizant QA Automation Engineer interview:
  • playwright
  • automation
Interview preparation tips for other job seekers - not received a reply from HR even I get good response from technical interview

Skills evaluated in this interview

I applied via Naukri.com and was interviewed in May 2022. There were 3 interview rounds.

Round 1 - Technical 

(1 Question)

  • Q1. Basic knowledge on sql, Basic questions on manual testing, core java and automation questions
Round 2 - HR 

(2 Questions)

  • Q1. We will check communication
  • Q2. Why should hire you? Why it? Introduce yourself?
Round 3 - Behavioral 

(1 Question)

  • Q1. Basic knowledge, salary discussion

Interview Preparation Tips

Topics to prepare for Infosys QA Automation Engineer interview:
  • Manual Testing
  • Core Java
  • Selenium
Interview preparation tips for other job seekers - I am technically strong and communication is good. Looking for opportunity
Interview experience
5
Excellent
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. Technical interview and HR
Round 3 - HR 

(1 Question)

  • Q1. Technical interview and HR

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare according to the topis that you mentioned in your resume

I applied via Naukri.com and was interviewed in Mar 2022. There was 1 interview round.

Round 1 - One-on-one 

(1 Question)

  • Q1. Difference between set and list? Difference between throw and throws?
  • Ans. 

    Set is an unordered collection of unique elements while list is an ordered collection of elements. Throw is used to throw an exception while throws is used to declare an exception.

    • Set does not allow duplicate elements while list can have duplicates.

    • Set does not maintain the order of elements while list maintains the order.

    • Throw is used to explicitly throw an exception in a method while throws is used to declare the exc...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Study selenium and java in depth

I was interviewed before May 2020.

Interview Questionnaire 

1 Question

  • Q1. They asked me about Software Development and Interview was done by Junior Developer.

Interview Preparation Tips

Interview preparation tips for other job seekers - It's rude to Interview a Software QA by Developer, there is much difference between Software Automation and Software Automation Testing. IBM Employee Vishnu Priya interviewed me without basic knowledge of Software Testing and completely distracted the Interview with API Development Questions. She was dumb about Assertions in Software Testing, Assertions are a key part of Automation Testing. She was very aggressive while she was asking me the questions.
Which language QA must remember when QA worked on several tools with several languages?
Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

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

Round 1 - Technical 

(10 Questions)

  • Q1. What is the output of below code class Animal{ Animal(){ System.out.println("animal is created") } class Dog extends Animal{ Dog(){ System.out.println("Dog is created")} class TestSuper4{ pub...
  • Ans. 

    The output of the code will be 'animal is created' followed by 'Dog is created'.

    • The code defines a class Animal with a constructor that prints 'animal is created'.

    • It also defines a class Dog that extends Animal, with a constructor that prints 'Dog is created'.

    • In the main method, an instance of Dog is created, which will trigger the constructors of both Animal and Dog classes.

  • Answered by AI
  • Q2. Output of this : System.out.println(10+20+"Hello"+30+40) - Explain
  • Q3. Output of this : String name="Hello"; name=name+"There"; system.out.println(name)
  • Ans. 

    The output will be 'HelloThere'

    • Concatenation of 'Hello' and 'There' results in 'HelloThere'

    • The final string is printed using System.out.println()

  • Answered by AI
  • Q4. StringBuffer buffer=new StringBuffer("Hello") buffer.append("There"); System.out.println(buffer);
  • Ans. 

    The code creates a StringBuffer object with 'Hello' and appends 'There' to it before printing the final string.

    • StringBuffer is mutable, so the original 'Hello' string can be modified

    • The append() method adds the specified string to the end of the buffer

    • The final output will be 'HelloThere'

  • Answered by AI
  • Q5. Which is valid or invalid a. ChromeDriver driver=new ChromeDriver(); b. WebDriver driver=new ChromeDriver(); c. WebDriver driver2=new WebDriver(); driver2=new ChromeDriver();
  • Ans. 

    Option a is valid, option b is valid, option c is invalid.

    • Option a is valid because ChromeDriver is a subclass of WebDriver, so it can be assigned to a WebDriver reference.

    • Option b is valid because ChromeDriver is a subclass of WebDriver, so it can be instantiated using a WebDriver reference.

    • Option c is invalid because WebDriver is an interface and cannot be instantiated directly. It can only be used as a reference typ

  • Answered by AI
  • Q6. Program to sort the input in descending order without using inbuild method/functions
  • Ans. 

    Sort input array of strings in descending order without using inbuilt functions

    • Iterate through the array and compare each element with the rest to find the largest element

    • Swap the largest element with the first element, then repeat the process for the remaining elements

    • Continue this process until the array is sorted in descending order

  • Answered by AI
  • Q7. Difference between findElement and findElements
  • Ans. 

    findElement returns the first matching element on the page, while findElements returns a list of all matching elements.

    • findElement returns a single WebElement matching the locator provided

    • findElements returns a list of WebElements matching the locator provided

    • findElement will throw NoSuchElementException if no element is found, while findElements will return an empty list

  • Answered by AI
  • Q8. Difference between getwindowhandle and getwindowhandles() and what is output type
  • Ans. 

    getwindowhandle returns the handle of the current window, getwindowhandles() returns handles of all open windows

    • getwindowhandle returns a single window handle, while getwindowhandles() returns a set of window handles

    • getwindowhandle is used to switch between windows in Selenium WebDriver

    • Output type of getwindowhandle is String, while output type of getwindowhandles() is Set

Answered by AI
  • Q9. Question on finding the xpaths on website
  • Q10. Difference between String and StringBuilder?
  • Ans. 

    String is immutable, while StringBuilder is mutable and more efficient for concatenating strings.

    • String is immutable, meaning its value cannot be changed once it is created.

    • StringBuilder is mutable, allowing for modifications to the string without creating a new object.

    • StringBuilder is more efficient for concatenating multiple strings as it does not create new objects each time.

    • Example: String str = "Hello"; StringBuil

  • Answered by AI

    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

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

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

    Round 1 - One-on-one 

    (7 Questions)

    • Q1. Code to print the no of Times the letters present in a string
    • Ans. 

      Code to count the occurrences of each letter in a string and print the result

      • Iterate through each character in the string

      • Use a dictionary to store the count of each letter

      • Print the count of each letter at the end

    • Answered by AI
    • Q2. What are the ways to start a Appium server
    • Ans. 

      Appium server can be started using command line, programmatically in code, or using Appium desktop app.

      • Start Appium server using command line by running 'appium' command

      • Start Appium server programmatically in code using Appium server programmatically in code using AppiumDriverLocalService class

      • Start Appium server using Appium desktop app by launching the app and starting the server

    • Answered by AI
    • Q3. How to run tests parallel for mobile devices
    • Ans. 

      Tests can be run parallel for mobile devices using test automation frameworks like Appium or Espresso.

      • Use test automation frameworks like Appium or Espresso to run tests parallel for mobile devices

      • Leverage cloud-based testing platforms like Sauce Labs or BrowserStack for parallel testing on multiple devices

      • Implement parallel test execution using tools like TestNG or JUnit in combination with Appium or Espresso

      • Utilize d...

    • Answered by AI
    • Q4. How do you automate otp in mobile
    • Ans. 

      Automating OTP in mobile involves using automation tools to interact with the OTP input field and validate the received OTP.

      • Use automation tools like Appium or Espresso to interact with the OTP input field

      • Extract the OTP from the message received on the mobile device

      • Validate the extracted OTP with the OTP input field

      • Handle scenarios where OTP validation fails

    • Answered by AI
    • Q5. What are desired capabilities
    • Ans. 

      Desired capabilities are a set of properties or attributes that define the behavior of a browser or mobile device in Selenium automation testing.

      • Desired capabilities are key-value pairs that are used to configure the WebDriver instances in Selenium.

      • They can be used to set properties like browser name, version, platform, and other settings.

      • For example, setting 'browserName' to 'chrome' will launch the Chrome browser dur

    • Answered by AI
    • Q6. How do you tell appium to run tests on ios or Android devices
    • Ans. 

      To run tests on iOS or Android devices using Appium, specify the platformName capability in desired capabilities.

      • Specify platformName capability as 'iOS' for iOS devices and 'Android' for Android devices

      • Include other necessary desired capabilities like deviceName, platformVersion, appPackage, appActivity, etc.

      • Example: capabilities.setCapability('platformName', 'iOS');

    • Answered by AI
    • Q7. How to set up automation for ios devices
    • Ans. 

      Setting up automation for iOS devices involves using tools like Appium and Xcode for testing mobile applications.

      • Install Xcode on your Mac machine

      • Set up Appium for iOS automation

      • Connect your iOS device to the Mac machine

      • Create test scripts using Appium for iOS apps

      • Execute the test scripts on the connected iOS device

    • Answered by AI

    Skills evaluated in this interview

    Interview experience
    5
    Excellent
    Difficulty level
    -
    Process Duration
    -
    Result
    -
    Round 1 - Technical 

    (1 Question)

    • Q1. Basic selenium and Basic Java
    Round 2 - Technical 

    (1 Question)

    • Q1. Java Program - Reverse a string Selenium - stale element
    • Ans. 

      Reverse a string using Java program and handle stale element in Selenium

      • Create a Java program to reverse a string using StringBuilder or char array

      • In Selenium, handle stale element exception by refreshing the element or using WebDriverWait

      • Example: Java program - input: 'hello', output: 'olleh'; Selenium - handle stale element by refreshing the element before interacting with it

    • Answered by AI
    Round 3 - HR 

    (1 Question)

    • Q1. What is your expected salary
    • Ans. 

      My expected salary is based on my experience, skills, and the market rate for Automation Test Engineers.

      • I have researched the average salary range for Automation Test Engineers in this location.

      • I am looking for a competitive salary that reflects my expertise in automation testing.

      • I am open to negotiation based on the overall compensation package offered.

    • Answered by AI

    Tech Mahindra Interview FAQs

    How many rounds are there in Tech Mahindra QA Automation 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 QA Automation 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 QA Automation, Automation Engineering, C#, Cucumber and Testng.
    What are the top questions asked in Tech Mahindra QA Automation Engineer interview?

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

    1. Appium and selenium related questi...read more
    2. Sdlc and stlc basic conce...read more

    Tell us how to improve this page.

    Interview Questions from Similar Companies

    TCS Interview Questions
    3.7
     • 10.3k Interviews
    Accenture Interview Questions
    3.9
     • 8.1k Interviews
    Infosys Interview Questions
    3.7
     • 7.5k Interviews
    Wipro Interview Questions
    3.7
     • 5.6k Interviews
    Cognizant Interview Questions
    3.8
     • 5.5k Interviews
    Capgemini Interview Questions
    3.8
     • 4.8k Interviews
    HCLTech Interview Questions
    3.5
     • 3.7k Interviews
    Genpact Interview Questions
    3.9
     • 3k Interviews
    LTIMindtree Interview Questions
    3.8
     • 2.9k Interviews
    IBM Interview Questions
    4.1
     • 2.4k Interviews
    View all
    Tech Mahindra QA Automation Engineer Salary
    based on 40 salaries
    ₹3.2 L/yr - ₹9.5 L/yr
    12% less than the average QA Automation Engineer Salary in India
    View more details

    Tech Mahindra QA Automation Engineer Reviews and Ratings

    based on 4 reviews

    3.7/5

    Rating in categories

    3.0

    Skill development

    3.9

    Work-life balance

    2.6

    Salary

    3.0

    Job security

    3.4

    Company culture

    2.3

    Promotions

    3.2

    Work satisfaction

    Explore 4 Reviews and Ratings
    Software Engineer
    26.3k salaries
    unlock blur

    ₹2 L/yr - ₹9 L/yr

    Senior Software Engineer
    21.3k salaries
    unlock blur

    ₹5.5 L/yr - ₹22.7 L/yr

    Technical Lead
    11.6k salaries
    unlock blur

    ₹9.5 L/yr - ₹37 L/yr

    Associate Software Engineer
    5.2k salaries
    unlock blur

    ₹1.8 L/yr - ₹6 L/yr

    Team Lead
    4.9k salaries
    unlock blur

    ₹5.2 L/yr - ₹17 L/yr

    Explore more salaries
    Compare Tech Mahindra with

    Infosys

    3.7
    Compare

    Cognizant

    3.8
    Compare

    Accenture

    3.9
    Compare

    Wipro

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