i
Infosys
Work with us
Filter interviews by
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...
The order of occurrence program determines the sequence of elements based on their first appearance.
Use a data structure like a dictionary to track the first occurrence of each element.
Iterate through the array and store elements in the order they appear.
Example: For array [3, 1, 2, 3, 1], the output should be [3, 1, 2].
Consider using a set to avoid duplicates while maintaining order.
I used OOPs concepts in my framework for creating reusable components, inheritance, and encapsulation.
Used inheritance to create a base test class with common methods and properties
Implemented encapsulation to hide the internal details of the test cases
Utilized polymorphism for creating different types of test cases using the same interface
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 a...
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
This Java code counts the occurrences of each letter in a given name using a HashMap.
Use a HashMap<Character, Integer> to store letter counts.
Iterate through each character of the name.
For each character, update its count in the HashMap.
Example: For the name 'John', the output will be: J: 1, o: 1, h: 1, n: 1.
Handle popups by using automation tools, handling alerts, switching to popup windows, and using explicit waits.
Use automation tools like Selenium to handle popups
Handle alerts using switchTo().alert() method
Switch to popup windows using switchTo().window() method
Use explicit waits to ensure popup elements are loaded before interacting with them
One method to remove spaces in a string is by using the replace() method in JavaScript.
Use the replace() method with a regular expression to replace all spaces with an empty string
Example: str.replace(/\s/g, '') will remove all spaces from the string 'hello world'
Another method is to use the split() method to split the string by spaces and then join the array elements without spaces
Common bugs in API testing include incorrect data formats, authentication issues, and performance problems.
Incorrect data formats such as missing or incorrect parameters
Authentication issues like invalid tokens or permissions
Performance problems such as slow response times or timeouts
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.
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
The order of occurrence program determines the sequence of elements based on their first appearance.
Use a data structure like a dictionary to track the first occurrence of each element.
Iterate through the array and store elements in the order they appear.
Example: For array [3, 1, 2, 3, 1], the output should be [3, 1, 2].
Consider using a set to avoid duplicates while maintaining order.
I applied via Company Website and was interviewed in Feb 2024. There was 1 interview round.
A Selenium program to automate login by inputting username and password using Java without an IDE.
1. Import necessary Selenium libraries: 'import org.openqa.selenium.*;'
2. Set up WebDriver: 'WebDriver driver = new ChromeDriver();'
3. Navigate to the login page: 'driver.get("http://example.com/login");'
4. Locate username field: 'WebElement username = driver.findElement(By.id("username"));'
5. Input username: 'username.sen...
Check the password encryption by verifying the hashing algorithm used and comparing the encrypted password with a known hash value.
Check the hashing algorithm used to encrypt the password (e.g. MD5, SHA-256)
Compare the encrypted password with a known hash value for the same password
Ensure that the encryption process is irreversible, meaning the original password cannot be easily obtained from the encrypted version
To get the URL of a webpage, you can use the window.location object in JavaScript.
Use window.location.href to get the full URL of the webpage
Use window.location.hostname to get the domain of the webpage
Use window.location.pathname to get the path of the webpage
Use window.location.protocol to get the protocol of the webpage (http or https)
One method to remove spaces in a string is by using the replace() method in JavaScript.
Use the replace() method with a regular expression to replace all spaces with an empty string
Example: str.replace(/\s/g, '') will remove all spaces from the string 'hello world'
Another method is to use the split() method to split the string by spaces and then join the array elements without spaces
Handle popups by using automation tools, handling alerts, switching to popup windows, and using explicit waits.
Use automation tools like Selenium to handle popups
Handle alerts using switchTo().alert() method
Switch to popup windows using switchTo().window() method
Use explicit waits to ensure popup elements are loaded before interacting with them
Agile is iterative and flexible, while Waterfall is sequential and rigid.
Agile involves continuous feedback and adaptation, while Waterfall follows a linear approach.
Agile allows for changes throughout the development process, while Waterfall requires detailed planning upfront.
Agile promotes collaboration and communication among team members, while Waterfall has distinct phases with limited interaction.
Agile is better ...
Common bugs in API testing include incorrect data formats, authentication issues, and performance problems.
Incorrect data formats such as missing or incorrect parameters
Authentication issues like invalid tokens or permissions
Performance problems such as slow response times or timeouts
Selenium is a suite of tools for web automation testing, while Selenium WebDriver is a tool specifically for automating web browsers.
Selenium is a suite of tools that includes Selenium WebDriver, Selenium IDE, and Selenium Grid.
Selenium WebDriver is a tool for automating web browsers and is the most commonly used component of Selenium.
Selenium WebDriver allows testers to write tests in various programming languages lik...
Use Selenium WebDriver to find all elements on a webpage using Java locators
Use findElements method to locate all elements on the webpage
Use By class to specify the locator strategy (e.g. By.xpath, By.id, By.className)
Store the located elements in a List
Polymorphism is the ability of a function or method to behave differently based on the object it is called with.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
It enables a single interface to be used for different data types or classes.
Examples include method overloading and method overriding in object-oriented programming.
An interface in programming is a contract that defines the methods that a class must implement.
Interfaces in programming are used to define a set of methods that a class must implement.
They provide a way to achieve abstraction and multiple inheritance in programming languages.
Interfaces are used to define the behavior of a class without specifying how it is implemented.
In languages like Java, classes can implement mult...
I want to join Infosys for its innovative culture, career growth opportunities, and commitment to excellence in technology solutions.
Infosys is known for its strong emphasis on innovation, which aligns with my passion for exploring new technologies.
The company's commitment to employee development through training programs and mentorship is appealing for my career growth.
Infosys has a diverse range of projects across va...
I applied via Referral and was interviewed in Mar 2024. There were 3 interview rounds.
This Java code counts the occurrences of each letter in a given name using a HashMap.
Use a HashMap<Character, Integer> to store letter counts.
Iterate through each character of the name.
For each character, update its count in the HashMap.
Example: For the name 'John', the output will be: J: 1, o: 1, h: 1, n: 1.
I appeared for an interview in Oct 2024, where I was asked the following questions.
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 using add...
I applied via Naukri.com and was interviewed in Dec 2023. There were 3 interview rounds.
I have worked at multiple companies in the software industry.
Worked at ABC Software as a QA Engineer for 2 years
Currently employed at XYZ Tech as an Automation Test Engineer
Freelanced for various startups on testing projects
I expect a competitive salary based on my skills, experience, and industry standards for Automation Test Engineers.
Research industry standards: For example, the average salary for Automation Test Engineers in my region is around $80,000 to $100,000.
Consider my experience: With over 5 years in automation testing, I believe a salary in the range of $90,000 to $110,000 is appropriate.
Highlight skills: My expertise in tool...
Asked middle level java codes output
I worked on a project to automate testing for a web-based e-commerce platform.
Developed automated test scripts using Selenium WebDriver in Java
Performed regression testing to ensure new features did not break existing functionality
Collaborated with developers to identify and fix bugs in the code
Used Jira for tracking test cases and defects
I used OOPs concepts in my framework for creating reusable components, inheritance, and encapsulation.
Used inheritance to create a base test class with common methods and properties
Implemented encapsulation to hide the internal details of the test cases
Utilized polymorphism for creating different types of test cases using the same interface
I applied via Recruitment Consulltant and was interviewed in Jan 2024. There was 1 interview round.
String is immutable in Java to ensure security, thread safety, and optimization.
Immutable strings prevent accidental modification of data.
Immutable strings can be safely shared among multiple threads.
Immutable strings allow for efficient memory allocation and caching.
Immutable strings are used in various security-related operations.
Immutable strings enable the use of string pooling for optimization.
I applied via Recruitment Consulltant and was interviewed in Apr 2023. There were 3 interview rounds.
To handle broken links in Selenium, we can use the HTTPURLConnection class to check the response code of the link.
Get all the links on the page using findElements() method
Iterate through each link and get the href attribute
Create a URL object for the href attribute
Open a connection using HTTPURLConnection class
Get the response code using getResponseCode() method
If the response code is not 200, mark the link as broken
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 11 interview experiences
Difficulty level
Duration
based on 74 reviews
Rating in categories
Technology Analyst
54.7k
salaries
| ₹4.8 L/yr - ₹10 L/yr |
Senior Systems Engineer
53.9k
salaries
| ₹2.5 L/yr - ₹6.3 L/yr |
Technical Lead
35.1k
salaries
| ₹9.4 L/yr - ₹16.4 L/yr |
System Engineer
32.6k
salaries
| ₹2.4 L/yr - ₹5.5 L/yr |
Senior Associate Consultant
31.4k
salaries
| ₹8.2 L/yr - ₹15 L/yr |
TCS
Wipro
Cognizant
Accenture