Premium Employer

i

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

Infosys Verified Tick Work with us arrow

Compare button icon Compare button icon Compare

Filter interviews by

Infosys Automation Test Engineer Interview Questions and Answers

Updated 4 Jul 2025

72 Interview questions

An Automation Test Engineer was asked 1w ago
Q. How do you write XPath queries in the console?
Ans. 

XPath is a language for navigating through elements and attributes in XML documents, useful for locating elements in web pages.

  • Use `//tagname` to select all elements with the specified tag, e.g., `//div` selects all <div> elements.

  • Use `@attribute='value'` to select elements with a specific attribute, e.g., `//input[@type='text']` selects text input fields.

  • Use `contains()` to match partial attribute values, e...

An Automation Test Engineer was asked 2mo ago
Q. Given an integer array a[] = {23,56,34,78,45,82,30}, find the maximum and minimum values in the array.
Ans. 

To find the maximum and minimum values in an array, iterate through the elements and compare each value.

  • Initialization: Start by initializing two variables, max and min, with the first element of the array. Example: max = a[0], min = a[0].

  • Iteration: Loop through the array from the second element to the last. For each element, compare it with max and min.

  • Comparison: If the current element is greater than max, updat...

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 2mo ago
Q. Write a program to print the following star pattern: * *** ****** ********
Ans. 

This pattern displays stars in increasing order, showcasing a simple yet effective way to illustrate nested loops in programming.

  • Pattern Structure: The pattern consists of rows where each row has an increasing number of stars.

  • Row Count: There are 4 rows in total, with the first row having 1 star, the second 3 stars, the third 6 stars, and the fourth 8 stars.

  • Loop Implementation: A nested loop can be used to print t...

An Automation Test Engineer was asked 3mo ago
Q. Write a program to swap the values of two numbers.
Ans. 

Swapping two numbers can be done using various methods, including arithmetic operations and temporary variables.

  • Using a Temporary Variable: Store the first number in a temporary variable, assign the second number to the first, and then assign the temporary variable to the second. Example: a = 5, b = 10; temp = a; a = b; b = temp.

  • Using Arithmetic Operations: You can swap numbers without a temporary variable by usin...

🔥 Asked by recruiter 2 times
An Automation Test Engineer was asked 4mo ago
Q. What is the difference between a list and a set?
Ans. 

Lists are ordered and allow duplicates; sets are unordered and do not allow duplicates.

  • Lists maintain the order of elements. Example: [1, 2, 3, 3] has duplicates.

  • Sets do not maintain order and eliminate duplicates. Example: {1, 2, 3} only keeps unique values.

  • Lists can be indexed and sliced. Example: list[0] gives the first element.

  • Sets are optimized for membership tests. Example: '3 in set' is faster than '3 in li...

🔥 Asked by recruiter 16 times
An Automation Test Engineer was asked 4mo ago
Q. What is the difference between an abstract class and an interface?
Ans. 

Abstract classes allow partial implementation, while interfaces define a contract with no implementation.

  • Abstract classes can have both abstract methods (without implementation) and concrete methods (with implementation).

  • Interfaces can only declare methods (no implementation) and can include default methods since Java 8.

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

  • Example ...

An Automation Test Engineer was asked 5mo ago
Q. What is a spike in agile methodology?
Ans. 

A spike in agile is a time-boxed research or investigation task to gather information or explore potential solutions for a specific problem.

  • Spike is a temporary activity to reduce uncertainty or risk in a project.

  • It is time-boxed, meaning it has a fixed duration.

  • Spike is not a regular user story but a task to gather information or explore solutions.

  • Examples of spikes include researching a new technology, exploring...

Are these interview questions helpful?
An Automation Test Engineer was asked 5mo ago
Q. How would you create test scenarios for payment failure by debit card on an e-commerce site?
Ans. 

Test scenarios for payment failure by debit card in e-commerce site

  • Attempt payment with insufficient funds in the account

  • Attempt payment with expired debit card

  • Attempt payment with incorrect CVV code

  • Attempt payment with incorrect card details

  • Attempt payment while the bank's server is down

🔥 Asked by recruiter 2 times
An Automation Test Engineer was asked 5mo ago
Q. What are the differences between agile and waterfall methodologies?
Ans. 

Agile is iterative and flexible, while waterfall is sequential and rigid.

  • Agile focuses on delivering working software in short iterations, while waterfall follows a linear approach with distinct phases.

  • Agile allows for changes and adaptations throughout the project, while waterfall requires detailed planning upfront.

  • Agile promotes collaboration and communication within teams, while waterfall relies on strict docum...

An Automation Test Engineer was asked 5mo ago
Q. How do you handle dynamic web elements using XPath?
Ans. 

Dynamic webElements can be handled using Xpath by using relative Xpath expressions to locate elements based on their attributes or position in the DOM.

  • Use Xpath expressions to locate webElements based on their attributes such as id, class, name, etc.

  • Use Xpath functions like contains(), starts-with(), and text() to locate elements based on their text content.

  • Use Xpath axes like following-sibling, preceding-sibling,...

Infosys Automation Test Engineer Interview Experiences

40 interviews found

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

(6 Questions)

  • Q1. Write a code for febonacci series
  • Ans. 

    Code to generate Fibonacci series

    • Use a loop to generate Fibonacci numbers

    • Start with 0 and 1 as the first two numbers

    • Add the previous two numbers to get the next number

    • Repeat until desired number of Fibonacci numbers are generated

  • Answered by AI
  • Q2. Dynamic webElements handling using Xpath?
  • Ans. 

    Dynamic webElements can be handled using Xpath by using relative Xpath expressions to locate elements based on their attributes or position in the DOM.

    • Use Xpath expressions to locate webElements based on their attributes such as id, class, name, etc.

    • Use Xpath functions like contains(), starts-with(), and text() to locate elements based on their text content.

    • Use Xpath axes like following-sibling, preceding-sibling, pare...

  • Answered by AI
  • Q3. What is spike in agile?
  • Ans. 

    A spike in agile is a time-boxed research or investigation task to gather information or explore potential solutions for a specific problem.

    • Spike is a temporary activity to reduce uncertainty or risk in a project.

    • It is time-boxed, meaning it has a fixed duration.

    • Spike is not a regular user story but a task to gather information or explore solutions.

    • Examples of spikes include researching a new technology, exploring a co...

  • Answered by AI
  • Q4. Difference between agile and waterfall based model?
  • Ans. 

    Agile is iterative and flexible, while waterfall is sequential and rigid.

    • Agile focuses on delivering working software in short iterations, while waterfall follows a linear approach with distinct phases.

    • Agile allows for changes and adaptations throughout the project, while waterfall requires detailed planning upfront.

    • Agile promotes collaboration and communication within teams, while waterfall relies on strict documentat...

  • Answered by AI
  • Q5. Sprint point system? Explain?
  • Ans. 

    Sprint point system is a method used in Agile project management to measure the amount of work completed in a sprint.

    • Sprint points are used to estimate the effort required to complete a task or user story.

    • Points are assigned based on complexity, effort, and risk involved in completing the task.

    • Common point systems include Fibonacci sequence (1, 2, 3, 5, 8, 13, etc.) or t-shirt sizes (XS, S, M, L, XL).

  • Answered by AI
  • Q6. Payment failure by debit card in e-commerce site? Make test scenarios?
  • Ans. 

    Test scenarios for payment failure by debit card in e-commerce site

    • Attempt payment with insufficient funds in the account

    • Attempt payment with expired debit card

    • Attempt payment with incorrect CVV code

    • Attempt payment with incorrect card details

    • Attempt payment while the bank's server is down

  • Answered by AI
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
No response

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

Round 1 - Technical 

(5 Questions)

  • Q1. Can you explain the Maven build lifecycle?
  • Ans. 

    Maven build lifecycle consists of phases like compile, test, package, install, deploy.

    • Maven build lifecycle consists of three main phases: clean, default, and site.

    • Each phase consists of a series of goals that are executed in a specific order.

    • Some common goals in Maven build lifecycle include compile, test, package, install, and deploy.

    • The clean phase removes all files generated by the previous build.

    • The default phase ...

  • Answered by AI
  • Q2. What is the code to reverse a sentence?
  • Ans. 

    Code to reverse a sentence using array of strings.

    • Split the sentence into an array of words

    • Reverse the array

    • Join the array back into a sentence

  • Answered by AI
  • Q3. What is static block in java?
  • Ans. 

    Static block in Java is a block of code that is executed only once when the class is loaded.

    • Static block is used to initialize static variables of a class.

    • It is executed before the main method.

    • Syntax: static { // code to be executed }

    • Example: static { System.out.println("Static block executed"); }

  • Answered by AI
  • Q4. What is exclude and include in TestNG?
  • Ans. 

    Exclude and include in TestNG are used to specify which test methods to run or skip during test execution.

    • Exclude attribute is used to specify which test methods to skip during test execution

    • Include attribute is used to specify which test methods to run during test execution

    • Both attributes can be used in the testng.xml file or in the @Test annotation

    • Example: @Test(groups = {"smoke"}, excludeGroups = {"regression"})

  • Answered by AI
  • Q5. What is code for reverse a digit?
  • Ans. 

    To reverse a digit, convert it to a string and then reverse the string.

    • Convert the digit to a string

    • Use built-in functions to reverse the string

    • Convert the reversed string back to a digit if needed

  • Answered by AI
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Difference between list and set
  • Ans. 

    Lists are ordered and allow duplicates; sets are unordered and do not allow duplicates.

    • Lists maintain the order of elements. Example: [1, 2, 3, 3] has duplicates.

    • Sets do not maintain order and eliminate duplicates. Example: {1, 2, 3} only keeps unique values.

    • Lists can be indexed and sliced. Example: list[0] gives the first element.

    • Sets are optimized for membership tests. Example: '3 in set' is faster than '3 in list'.

    • L...

  • Answered by AI
  • Q2. Difference between abstract class and interface
  • Ans. 

    Abstract classes allow partial implementation, while interfaces define a contract with no implementation.

    • Abstract classes can have both abstract methods (without implementation) and concrete methods (with implementation).

    • Interfaces can only declare methods (no implementation) and can include default methods since Java 8.

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

    • Example of an...

  • Answered by AI
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(4 Questions)

  • Q1. Tell me about yourself
  • Ans. 

    I am an Automation Test Engineer with a passion for quality assurance and a strong background in software testing and automation tools.

    • Over 5 years of experience in software testing, focusing on automation frameworks like Selenium and TestNG.

    • Developed and maintained automated test scripts for web applications, improving testing efficiency by 40%.

    • Collaborated with cross-functional teams to ensure seamless integration of...

  • Answered by AI
  • Q2. Write code for getting title of web page
  • Ans. 

    This code retrieves the title of a web page using Selenium WebDriver in Java.

    • Use Selenium WebDriver to interact with the web page.

    • Initialize the WebDriver and navigate to the desired URL.

    • Use the getTitle() method to fetch the page title.

    • Example: String title = driver.getTitle();

  • Answered by AI
  • Q3. Write code to print duplicate characters of string
  • Ans. 

    This code identifies and prints duplicate characters in a given string using a dictionary to count occurrences.

    • Use a dictionary to store character counts. Example: {'a': 2, 'b': 1, 'c': 3}

    • Iterate through the string and update counts in the dictionary.

    • Print characters that have a count greater than 1 as duplicates. Example output for 'programming': 'r', 'g'

  • Answered by AI
  • Q4. Framework structure

Skills evaluated in this interview

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

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

Round 1 - Coding Test 

Fundamental questions about Selenium encompass topics such as: 1. right-click actions and mouse movement, 2. screenshot methods and functions, 3. handling multiple window controls, 4. concepts of Object-Oriented Programming (OOP), 5. differences among collections, sets, and maps, 6. framework architecture, 7. sorting an array without using built-in functions, and 8. managing failed test cases in TestNG.

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - One-on-one 

(2 Questions)

  • Q1. Write a program to reverse string
  • Ans. 

    A program to reverse a string can be implemented using various programming languages and techniques.

    • Use built-in functions: Many languages have built-in functions to reverse strings. Example in Python: `reversed_string = original_string[::-1]`.

    • Iterative approach: Loop through the string from the end to the beginning and build a new string. Example in Java: `for (int i = str.length() - 1; i >= 0; i--) { reversed += s...

  • Answered by AI
  • Q2. Explain TestNG annotations & sequence of the annotation. Also which annotation is used to repeat the test case?
  • Ans. 

    TestNG annotations are used to define test methods, configuration, and execution order in Java testing frameworks.

    • @BeforeSuite: Runs before all tests in the suite.

    • @BeforeTest: Runs before any test method in the test tag.

    • @BeforeClass: Runs before the first method of the class.

    • @BeforeMethod: Runs before each test method.

    • @Test: Marks a method as a test case.

    • @AfterMethod: Runs after each test method.

    • @AfterClass: Runs after...

  • Answered by AI

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I appeared for an interview in Jun 2025, where I was asked the following questions.

  • Q1. Selenium frameworks
  • Q2. Defect life cycle
  • Q3. Writing xpath in console
  • Ans. 

    XPath is a language for navigating through elements and attributes in XML documents, useful for locating elements in web pages.

    • Use `//tagname` to select all elements with the specified tag, e.g., `//div` selects all <div> elements.

    • Use `@attribute='value'` to select elements with a specific attribute, e.g., `//input[@type='text']` selects text input fields.

    • Use `contains()` to match partial attribute values, e.g., ...

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

(2 Questions)

  • Q1. What is the difference implicit wait and explicit wait
  • Ans. 

    Implicit wait is set globally for the entire duration of the test script, while explicit wait is applied only to specific elements.

    • Implicit wait is set using driver.manage().timeouts().implicitlyWait() in Selenium, while explicit wait is implemented using WebDriverWait class.

    • Implicit wait is used to wait for elements to be present in the DOM, while explicit wait is used to wait for specific conditions to be met before ...

  • Answered by AI
  • Q2. What is the difference between selenium 3 and selenium4
  • Ans. 

    Selenium 4 has new features like relative locators, improved grid support, and better integration with DevTools compared to Selenium 3.

    • Selenium 4 has introduced relative locators which help in locating elements based on their relationship with other elements.

    • Selenium 4 provides improved grid support with the introduction of the new GridConfig class.

    • Selenium 4 has better integration with DevTools for better debugging an...

  • Answered by AI

Skills evaluated in this interview

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

I appeared for an interview in Mar 2025, where I was asked the following questions.

  • Q1. Print below star pattern * *** ****** ********
  • Ans. 

    This pattern displays stars in increasing order, showcasing a simple yet effective way to illustrate nested loops in programming.

    • Pattern Structure: The pattern consists of rows where each row has an increasing number of stars.

    • Row Count: There are 4 rows in total, with the first row having 1 star, the second 3 stars, the third 6 stars, and the fourth 8 stars.

    • Loop Implementation: A nested loop can be used to print the st...

  • Answered by AI
  • Q2. Int a[] = {23,56,34,78,45,82,30} find max & min value from array
  • Ans. 

    To find the maximum and minimum values in an array, iterate through the elements and compare each value.

    • Initialization: Start by initializing two variables, max and min, with the first element of the array. Example: max = a[0], min = a[0].

    • Iteration: Loop through the array from the second element to the last. For each element, compare it with max and min.

    • Comparison: If the current element is greater than max, update max...

  • Answered by AI
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Company Website and was interviewed in Jun 2024. There were 2 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. Basic questions on Selenium and Java
  • Q2. Basics of SQL
Round 2 - Behavioral 

(2 Questions)

  • Q1. Basic questions on Resume
  • Q2. Basics of Testing

What people are saying about Infosys

View All
yedabhai
1w
works at
Hyperpure
Are we not even safe in our own workplaces?
An Infosys employee was arrested for secretly recording women in the office washroom. Over 30 videos were found on his phone. This isn't just shocking, it's horrifying. Offices are meant to be safe, respectful spaces. 🙎 When will companies truly prioritize safety and surveillance in all corners, not just the visible ones?
FeedCard Image
Got a question about Infosys?
Ask anonymously on communities.

Infosys Interview FAQs

How many rounds are there in Infosys Automation Test Engineer interview?
Infosys interview process usually has 1-2 rounds. The most common rounds in the Infosys interview process are Technical, HR and One-on-one Round.
How to prepare for Infosys 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 Infosys. The most common topics and skills that interviewers at Infosys expect are Automation Testing, Java, Selenium Testing, SDLC and Selenium.
What are the top questions asked in Infosys Automation Test Engineer interview?

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

  1. Introduce yourself 1.What is STLC 2. difference between Test plan,test case,tes...read more
  2. 3. What are different types of waits in seleni...read more
  3. 2.How to execute test cases in parall...read more
How long is the Infosys Automation Test Engineer interview process?

The duration of Infosys Automation Test Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.

Tell us how to improve this page.

Overall Interview Experience Rating

3.6/5

based on 35 interview experiences

Difficulty level

Easy 4%
Moderate 91%
Hard 4%

Duration

Less than 2 weeks 62%
2-4 weeks 38%
View more
Join Infosys Creating the next opportunity for people, businesses & communities
Infosys Automation Test Engineer Salary
based on 1.2k salaries
₹3.2 L/yr - ₹10.8 L/yr
7% less than the average Automation Test Engineer Salary in India
View more details

Infosys Automation Test Engineer Reviews and Ratings

based on 74 reviews

4.1/5

Rating in categories

4.0

Skill development

4.2

Work-life balance

3.0

Salary

4.4

Job security

4.1

Company culture

3.0

Promotions

3.7

Work satisfaction

Explore 74 Reviews and Ratings
Mobile Automation/Appium Automation Test Engineer

Bangalore / Bengaluru

3-5 Yrs

₹ 3.6-12 LPA

Python Selenium Automation Testing Engineer

Bangalore / Bengaluru

3-5 Yrs

₹ 4.2-10.1 LPA

Explore more jobs
Technology Analyst
54.7k salaries
unlock blur

₹4.8 L/yr - ₹10 L/yr

Senior Systems Engineer
53.8k salaries
unlock blur

₹2.5 L/yr - ₹6.3 L/yr

Technical Lead
35.1k salaries
unlock blur

₹9.4 L/yr - ₹16.4 L/yr

System Engineer
32.5k salaries
unlock blur

₹2.4 L/yr - ₹5.3 L/yr

Senior Associate Consultant
31.3k salaries
unlock blur

₹8.2 L/yr - ₹15 L/yr

Explore more salaries
Compare Infosys with

TCS

3.6
Compare

Wipro

3.7
Compare

Cognizant

3.7
Compare

Accenture

3.7
Compare
write
Share an Interview