i
Infosys
Filter interviews by
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
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...
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...
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...
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).
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
I applied via LinkedIn and was interviewed in Dec 2024. There was 1 interview round.
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 ...
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
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"); }
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"})
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
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...
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...
Infosys interview questions for designations
I applied via Recruitment Consulltant and was interviewed in Dec 2024. There was 1 interview round.
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.
Get interview-ready with Top Infosys Interview Questions
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 ...
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...
I applied via Company Website and was interviewed in Jun 2024. There were 2 interview rounds.
I applied via Referral and was interviewed in Apr 2024. There was 1 interview round.
Postman is a popular API testing tool used for testing and debugging APIs.
Postman allows users to send requests to APIs and receive responses
It provides a user-friendly interface for creating and managing API requests
Postman can be used for automated testing of APIs
It supports various request types such as GET, POST, PUT, DELETE, etc.
Postman helps in API testing by providing a user-friendly interface to send requests, automate testing, and analyze responses.
Postman allows testers to easily send requests to APIs and view responses in a user-friendly interface.
It provides features for automating API testing, such as creating test scripts and running collections of tests.
Postman also offers tools for analyzing responses, including detailed logs and te...
Locators in Selenium are used to identify web elements on a webpage for automation testing purposes.
Locators include ID, class name, name, tag name, link text, partial link text, and xpath.
ID is the most efficient locator as it is unique for each element.
Xpath is powerful but can be slow and brittle if not used correctly.
Using CSS selectors is preferred over xpath for better performance.
Locators can be used with findEl
My framework is a data-driven framework using Selenium WebDriver and TestNG for automated testing.
Data-driven approach for test data management
Integration of Selenium WebDriver for web automation
Utilization of TestNG for test case management and reporting
I applied via Company Website and was interviewed in Jul 2024. There was 1 interview round.
I have experience working on automation testing projects for web applications using Selenium and Cucumber.
Developed automated test scripts using Selenium WebDriver for regression testing
Implemented BDD framework using Cucumber for test case execution
Collaborated with developers to identify and resolve defects in the application
Executed test cases in different browsers and environments to ensure compatibility
What people are saying about Infosys
The duration of Infosys Automation Test Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 31 interviews
2 Interview rounds
based on 70 reviews
Rating in categories
Hyderabad / Secunderabad,
Chennai
+14-9 Yrs
Not Disclosed
Technology Analyst
55.4k
salaries
| ₹3 L/yr - ₹11 L/yr |
Senior Systems Engineer
51.1k
salaries
| ₹2.5 L/yr - ₹8 L/yr |
System Engineer
31.6k
salaries
| ₹2.5 L/yr - ₹5.5 L/yr |
Technical Lead
31k
salaries
| ₹5.1 L/yr - ₹19.9 L/yr |
Senior Associate Consultant
28.6k
salaries
| ₹6.2 L/yr - ₹16.9 L/yr |
TCS
Wipro
Cognizant
Accenture