Filter interviews by
Top trending discussions
I applied via Company Website and was interviewed in Jun 2024. There were 2 interview rounds.
Yes, constructors are non-static methods used to initialize objects of a class.
Constructors are special methods used to initialize objects of a class.
They are non-static, meaning they are called on an instance of the class.
Constructors have the same name as the class and do not have a return type.
Example: public class Test { public Test() { // constructor code } }
To get elements from a drop down, I use Selenium WebDriver's Select class
Use Select class from Selenium WebDriver to interact with drop down elements
Identify the drop down element using its locator
Instantiate a Select object with the drop down element
Use Select object's methods like selectByVisibleText(), selectByValue(), selectByIndex() to choose an option
Select is a class in Selenium WebDriver.
Select is used for handling dropdowns in Selenium WebDriver.
It provides methods to select options by visible text, value, or index.
Example: Select dropdown = new Select(driver.findElement(By.id("dropdown")));
Example: dropdown.selectByVisibleText("Option 1");
To read data from Excel, use libraries like Apache POI or Openpyxl in Python.
Use libraries like Apache POI or Openpyxl in Python to read data from Excel files
Identify the Excel file and specify the sheet and cell from which to read data
Use appropriate methods provided by the library to extract data from the specified cell or range
I have used various types of test automation frameworks including data-driven, keyword-driven, and behavior-driven frameworks.
Data-driven framework: Used to separate test data from test scripts, allowing for easier maintenance and scalability. Example: TestNG with Excel or CSV files.
Keyword-driven framework: Utilizes keywords to represent actions or operations, making test scripts more readable and reusable. Example: R...
Array is a fixed-size data structure while ArrayList is a dynamic-size data structure in Java.
Array is a fixed-size data structure in Java, while ArrayList is a dynamic-size data structure.
Arrays can hold primitive data types and objects, while ArrayList can only hold objects.
Arrays require a specified size during initialization, while ArrayList can dynamically resize itself.
Arrays use square brackets [] for declaratio...
Array list stores elements in contiguous memory locations, while linked list stores elements in nodes with pointers to the next node.
Array list allows random access to elements based on index, while linked list requires traversal from the beginning to access elements.
Insertions and deletions are faster in linked list as it only requires updating pointers, while in array list it may require shifting elements.
Array list ...
Challenges in automation include complex test scenarios, maintenance of scripts, and compatibility issues.
Complex test scenarios require thorough planning and execution.
Maintenance of scripts is essential to keep them up-to-date with application changes.
Compatibility issues arise when automation tools do not support all technologies used in the application.
Different types of exceptions include checked, unchecked, runtime, and custom exceptions.
Checked exceptions are checked at compile time and must be handled using try-catch or throws keyword.
Unchecked exceptions are not checked at compile time and can be handled using try-catch or left unhandled.
Runtime exceptions are unchecked exceptions that occur at runtime, such as NullPointerException or ArrayIndexOutOfBoundsExcept...
I use a combination of tools such as Jira, TestRail, and Excel for reporting.
Jira for tracking bugs and issues
TestRail for test case management and execution results
Excel for creating customized reports and data analysis
Assert is used to validate the expected result while verify is used to check the actual result without stopping the execution.
Assert is used to validate the expected result and if the assertion fails, the test is marked as failed and stops execution.
Verify is used to check the actual result against the expected result but does not stop the execution even if the verification fails.
Assert is commonly used for critical ch...
Pushing code to GitHub involves using Git commands to add, commit, and push changes to a remote repository.
Use 'git add .' to stage all changes
Use 'git commit -m 'Your commit message here'' to commit changes
Use 'git push origin master' to push changes to the master branch on GitHub
Code to reverse a string using building function
A program to generate Fibonacci series.
Declare two variables to store the first two numbers of the series
Loop through the series and add the previous two numbers to get the next number
Print the series or store it in an array
Program to remove duplicates from an array list
Create a new empty array list
Loop through the original array list
If the element is not already in the new array list, add it
Return the new array list
Collections are objects that group multiple elements into a single unit.
Collections are used to store, retrieve, manipulate and communicate aggregate data.
Types of collections include List, Set, Map, Queue, Stack, etc.
Collections can be used to improve code readability, maintainability and performance.
Example: ArrayList is a type of List collection that stores elements in an ordered sequence.
Example: HashMap is a type ...
CSS selectors can be found using browser developer tools or by inspecting the HTML code.
Use browser developer tools to inspect elements and find their CSS selectors
Inspect the HTML code to find class or ID names that can be used as selectors
Use CSS selector reference guides to learn about different types of selectors
Experiment with different selectors to find the most efficient and specific one for your needs
I applied via Recruitment Consulltant and was interviewed in Aug 2024. There was 1 interview round.
Types of waits include implicit, explicit, and fluent waits in test automation.
Implicit wait: Wait for a certain amount of time before throwing an exception.
Explicit wait: Wait for a certain condition to be met before proceeding.
Fluent wait: Wait for a condition with a defined maximum wait time and polling frequency.
ArrayList is a resizable array implementation, LinkedList is a doubly linked list implementation.
ArrayList uses a dynamic array to store elements, LinkedList uses nodes with pointers to store elements.
ArrayList provides fast random access, LinkedList provides fast insertion and deletion.
Example: ArrayList
Selenium 4 features include improved relative locators, new grid architecture, and better support for Chrome DevTools Protocol.
Improved relative locators for more flexible element locating
New grid architecture for better scalability and performance
Better support for Chrome DevTools Protocol for enhanced debugging capabilities
I applied via LinkedIn and was interviewed before May 2023. There were 3 interview rounds.
30 mins
Easy to crack
English prefered
One on one discussion with manager
I applied via Referral and was interviewed in Sep 2021. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in May 2024. There was 1 interview round.
Java code to find second largest string in an array of strings
Create an array of strings
Sort the array in descending order based on string length
Return the second element in the sorted array
Use window handles to switch to child window, extract text, and input in another child window
Use getWindowHandles() to get all window handles
Switch to child window using switchTo().window() method
Extract text from the first child window
Switch to another child window and input the extracted text
I applied via Company Website and was interviewed before Sep 2023. There were 2 interview rounds.
I am a dedicated Senior Test Engineer with 8 years of experience in software testing and quality assurance.
Experienced in creating test plans, test cases, and executing tests for various software applications.
Proficient in using automated testing tools such as Selenium and JUnit.
Skilled in identifying and documenting software defects, and working closely with development teams to resolve issues.
Strong analytical and pr...
Test case to create an incident using Java and Selenium
Launch the browser and navigate to the incident creation page
Fill in the required fields with test data
Click on the submit button
Verify that the incident is successfully created
based on 2 reviews
Rating in categories
Technical Lead
324
salaries
| ₹7 L/yr - ₹21.5 L/yr |
Senior Software Engineer
231
salaries
| ₹4.2 L/yr - ₹15.5 L/yr |
Senior Analyst
226
salaries
| ₹2.5 L/yr - ₹8 L/yr |
Software Engineer
202
salaries
| ₹2 L/yr - ₹9.5 L/yr |
Lead Engineer
195
salaries
| ₹4.4 L/yr - ₹17 L/yr |
HCLTech
Wipro
Tech Mahindra
TCS