i
Mphasis
Filter interviews by
Clear (1)
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
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; } }
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...
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++; }
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.
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.
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().
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
I applied via Referral and was interviewed in Jul 2024. There was 1 interview round.
A framework is a set of guidelines, tools, and libraries used to develop and maintain software applications.
Provides structure and guidelines for development
Promotes code reusability and maintainability
Includes libraries and tools for common tasks
Supports automation and scalability
Examples: Selenium WebDriver for web automation, TestNG for test execution
Use two variables to keep track of the largest and second largest numbers in the array.
Iterate through the array and compare each element with the largest and second largest variables.
Update the variables accordingly to find the second largest number.
Return the second largest number once the iteration is complete.
The xpath of a product on Amazon can be found by inspecting the HTML code of the product page.
Right click on the product on Amazon and select 'Inspect' to view the HTML code
Locate the unique identifier of the product, such as class name or id
Construct the xpath using the unique identifier and other relevant attributes
Object-oriented programming concept in Java
Encapsulation: bundling data and methods that operate on the data
Inheritance: creating new classes using existing classes
Polymorphism: ability to present the same interface for different data types
I applied via Recruitment Consulltant and was interviewed in Jul 2024. There was 1 interview round.
I am a dedicated Automation Test Engineer with 5 years of experience in creating and executing test cases for software applications.
Experienced in creating automated test scripts using tools like Selenium and Appium
Proficient in writing test cases, executing tests, and reporting defects
Skilled in analyzing test results and providing recommendations for improvements
Strong knowledge of software testing methodologies and ...
Project framework is a structure that provides guidelines, best practices, and tools for developing and maintaining software projects.
Project framework defines the overall structure of the project, including directories, files, and naming conventions.
It includes guidelines for coding standards, testing procedures, and documentation requirements.
Frameworks like Selenium, TestNG, and JUnit provide tools and libraries for...
I applied via Approached by Company and was interviewed in Apr 2024. There was 1 interview round.
Mphasis interview questions for designations
BrowserContext in Playwright refers to an isolated environment for running tests in a browser.
BrowserContext allows for separate cookies, local storage, and caches for each context
It can be used to simulate multiple users interacting with a website simultaneously
Contexts can be created and closed as needed during test execution
Get interview-ready with Top Mphasis Interview Questions
I applied via Naukri.com and was interviewed in Mar 2023. There were 2 interview rounds.
Explaining the difference between findElement and findElements and defining interface.
findElement returns the first matching element on the page while findElements returns a list of all matching elements.
Both methods are used to locate web elements on a page using locators such as ID, class name, name, etc.
An interface is a collection of abstract methods that can be implemented by a class. It defines a contract that th...
I was interviewed before Mar 2022.
Basic aptitude questions and 2 programming questions
Code to reverse a string
Create an empty string variable to store the reversed string
Loop through the original string from the end to the beginning
Add each character to the empty string variable
Return the reversed string
Palindrome code in Java
A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backward
To check if a string is a palindrome, we can compare the first and last characters, then the second and second-to-last characters, and so on
We can use a loop to iterate through the string and compare the characters
We can also use StringBuilder to reverse the string and compare it to the
I applied via Naukri.com and was interviewed in Sep 2021. There were 3 interview rounds.
I applied via Naukri.com and was interviewed before Aug 2021. There were 3 interview rounds.
Code writing task for Automation Test Engineer position
Open Notepad
Write code for the given task
Share screen to show the code
Ensure code is well-structured and follows best practices
My automation framework is a hybrid framework that uses both data-driven and keyword-driven approaches.
The framework is built using Selenium WebDriver and TestNG.
It uses Excel sheets to store test data and Apache POI library to read/write data from/to Excel.
The framework has a modular structure with reusable functions and libraries.
It uses Page Object Model design pattern to maintain object repository.
The framework gen...
Top trending discussions
The duration of Mphasis Automation Test Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 9 interviews
2 Interview rounds
based on 22 reviews
Rating in categories
Software Engineer
6.3k
salaries
| ₹2 L/yr - ₹11.1 L/yr |
Senior Software Engineer
5.6k
salaries
| ₹6 L/yr - ₹23.5 L/yr |
Associate Software Engineer
4.6k
salaries
| ₹2 L/yr - ₹6 L/yr |
Module Lead
2.4k
salaries
| ₹8.1 L/yr - ₹34.3 L/yr |
Transaction Processing Officer
2.3k
salaries
| ₹1.5 L/yr - ₹4.5 L/yr |
Cognizant
Wipro
Accenture
TCS