i
Infosys
Filter interviews by
Clear (1)
I have worked on various projects involving test automation for web applications using Selenium and API testing using Postman.
Developed automated test scripts using Selenium WebDriver for regression testing of web applications
Created test suites and executed test cases using TestNG framework
Performed API testing using Postman to validate response data and status codes
Integrated test automation scripts with CI/CD pipeli...
API testing is a type of software testing that involves testing APIs directly to ensure they meet functionality, reliability, performance, and security requirements.
API testing involves testing the functionality, reliability, performance, and security of APIs.
It focuses on verifying the communication and data exchange between different software systems.
API testing can be done at different levels such as unit testing, i...
Post is used to create a new resource, while patch is used to update an existing resource.
Post is used to create a new resource in the server.
Patch is used to update an existing resource in the server.
Post request typically includes all the data needed to create the resource, while patch request only includes the data that needs to be updated.
Post requests are idempotent, meaning multiple identical requests will have t...
Priority and severity are used to classify the impact and importance of a defect in software testing.
Priority determines the order in which defects should be fixed, based on business needs.
Severity indicates the impact of a defect on the system or users.
Priority is usually set by the product owner or business stakeholders.
Severity is typically determined by the testing team based on the impact on functionality.
Examples...
I applied via Company Website and was interviewed in Nov 2024. There was 1 interview round.
A testing framework is a set of guidelines, coding standards, concepts, processes, practices, project hierarchies, modularity, reporting mechanisms, and tool support for writing automated tests.
Provides a structure for organizing test scripts and test data
Offers reusable functions and libraries for common testing tasks
Helps in generating test reports and managing test execution
Supports integration with other tools and
Java code to identify duplicates in a given string
Convert the string into an array of characters
Use a HashMap to store each character and its frequency
Iterate through the array and check if the character already exists in the HashMap
If it does, increment the frequency count, if not, add it to the HashMap
Finally, iterate through the HashMap and print out the characters with frequency greater than 1
I applied via Naukri.com and was interviewed in Jul 2024. There was 1 interview round.
Taking a screenshot in Selenium can be done using the getScreenshotAs method.
Use WebDriver's getScreenshotAs method to capture the screenshot
Save the screenshot to a file using File class
Handle exceptions using try-catch block
A defect can have high severity and low priority when it affects critical functionality but can be easily worked around.
High severity due to impact on critical functionality
Low priority because there is a workaround available
Example: Spelling mistake in a non-critical error message
Use a HashSet to remove duplicates from a String in Java.
Create a HashSet to store unique characters.
Iterate through the String and add each character to the HashSet.
Convert the HashSet back to a String to get the result.
Oops concepts are not directly used in automation testing, but understanding them can help in writing better test scripts.
Understanding object-oriented programming concepts can help in writing efficient and maintainable test scripts
Encapsulation, inheritance, and polymorphism can be applied in test automation to improve code reusability and readability
For example, using inheritance to create a base test class with comm
Use a hash map to find repeated words in a sentence.
Split the sentence into words using space as delimiter
Create a hash map to store word frequencies
Iterate through the words and update the frequencies in the hash map
Identify words with frequency greater than 1 as repeated words
Infosys interview questions for designations
What people are saying about Infosys
I applied via Company Website and was interviewed before Oct 2019. There were 4 interview rounds.
I applied via Job Fair and was interviewed before May 2021. There were 3 interview rounds.
I applied via Campus Placement and was interviewed in Jan 2021. There were 3 interview rounds.
Swap two numbers with and without temporary variable
Without temporary variable: Use addition and subtraction
With temporary variable: Use a third variable to store the value of one of the numbers
Example without temporary variable: a=5, b=7; a=a+b; b=a-b; a=a-b;
Example with temporary variable: a=5, b=7; temp=a; a=b; b=temp;
I applied via Naukri.com and was interviewed before May 2021. There were 3 interview rounds.
I will follow a structured approach for writing programs.
I will first analyze the problem and gather requirements.
Then, I will design a solution and create a plan.
Next, I will write the code and test it thoroughly.
Finally, I will deploy the program and maintain it.
I will also document the code and follow coding standards.
I was interviewed in Mar 2021.
I applied via Campus Placement and was interviewed before Sep 2019. There were 5 interview rounds.
OOPs concepts in Java are the fundamental principles of object-oriented programming.
Encapsulation: wrapping data and code into a single unit
Inheritance: creating new classes from existing ones
Polymorphism: using a single interface to represent multiple types
Abstraction: hiding implementation details from the user
Examples: class, object, inheritance, polymorphism, encapsulation
Stack is a LIFO data structure while Queue is a FIFO data structure.
Stack follows Last In First Out (LIFO) principle while Queue follows First In First Out (FIFO) principle.
Stack has two main operations: push and pop while Queue has two main operations: enqueue and dequeue.
Stack is used in recursive function calls, undo/redo operations, and backtracking while Queue is used in breadth-first search, printing tasks in ord...
SQL query to find second highest salary in database
Use ORDER BY and LIMIT to get the second highest salary
Assume ties are allowed and use DISTINCT
Method overloading is having multiple methods with the same name but different parameters. Method overriding is having a method in a subclass with the same name and parameters as a method in its superclass.
Method overloading is done within the same class while method overriding is done in different classes (subclass and superclass).
Method overloading is achieved by changing the number of parameters or the data type of ...
The parent class of all classes in Java is the Object class.
All classes in Java implicitly extend the Object class.
The Object class provides basic methods such as toString(), equals(), and hashCode().
Any class can override these methods to provide custom implementations.
Example: public class MyClass extends Object { ... }
Example: Object obj = new MyClass();
SQL databases are relational and use structured query language, while NoSQL databases are non-relational and use various data models.
SQL databases are based on a fixed schema, while NoSQL databases are schema-less.
SQL databases use tables to store data, while NoSQL databases use various data models like key-value, document, columnar, or graph.
SQL databases are better suited for complex queries and structured data, whil...
based on 4 interviews
1 Interview rounds
based on 6 reviews
Rating in categories
Technology Analyst
55.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Systems Engineer
50.6k
salaries
| ₹0 L/yr - ₹0 L/yr |
System Engineer
39.5k
salaries
| ₹0 L/yr - ₹0 L/yr |
Technical Lead
30.8k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Associate Consultant
28k
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Wipro
Cognizant
Accenture