Filter interviews by
I applied via Job Portal
Constructors are special methods that are used to initialize objects in a class.
Constructors have the same name as the class.
They are called automatically when an object is created.
They can be used to set default values for object properties.
Constructors can be overloaded to accept different parameters.
Example: public class Car { public Car() { // constructor code here } }
A super interface in Selenium WebDriver is an interface that extends multiple interfaces.
A super interface allows a class to inherit methods and variables from multiple interfaces.
It provides a way to achieve multiple inheritance in Java.
For example, the WebDriver interface is a super interface that extends multiple interfaces like SearchContext and TakesScreenshot.
Locators are used in Selenium Automation to identify elements on a web page.
ID Locator: Uses the 'id' attribute of an element
Name Locator: Uses the 'name' attribute of an element
Class Name Locator: Uses the 'class' attribute of an element
Tag Name Locator: Uses the HTML tag name of an element
Link Text Locator: Uses the text of a link element
Partial Link Text Locator: Uses a partial text of a link element
CSS Selector Loc...
There are several reporting tools available for Selenium WebDriver.
TestNG
JUnit
ExtentReports
Allure Reports
Custom reporting using log4j or Apache log4j
Waits are used to synchronize the test execution with the application's response.
Implicit Wait
Explicit Wait
Fluent Wait
Thread.sleep()
WebDriverWait
Top trending discussions
No, the two login buttons should not have the same ID.
IDs should be unique for each element on a page
Having two elements with the same ID can cause issues with locating and interacting with the elements
Use TestNG or JUnit framework to generate step execution report/result.
Use TestNG or JUnit annotations to mark the start and end of each test step.
Use TestNG or JUnit listeners to capture the test results and generate the report.
Use reporting libraries like ExtentReports or ReportNG to generate detailed reports with screenshots and logs.
To switch to the second window using page title, we can use getWindowHandles() and switchTo() methods.
Use getWindowHandles() method to get all the window handles
Iterate through the window handles and switch to the desired window using switchTo() method
Use getTitle() method to get the title of each window and compare it with the desired title
To retrieve all values from a drop down, we can use the getOptions() method and store the values in an array of strings.
Locate the drop down element using any of the locators
Create a Select class object by passing the drop down element as a parameter
Use the getOptions() method to retrieve all the options from the drop down
Store the options in an array of strings
Collections like ArrayList, HashMap, HashSet are commonly used in Selenium framework.
ArrayList is used to store a list of elements
HashMap is used to store key-value pairs
HashSet is used to store unique elements
Collections class is used for sorting and searching
I applied via Naukri.com
Priority in TestNG determines the order in which test methods are executed.
Priority can be set using the 'priority' attribute in @Test annotation
Default priority is 0, higher priority is executed first
Priority can be negative as well
If two methods have the same priority, they are executed in alphabetical order
A simple Java program is a standalone program while a Maven project is a build automation tool.
A simple Java program is compiled and executed using the command line or an IDE.
A Maven project uses a pom.xml file to manage dependencies and build the project.
A simple Java program may require manual management of dependencies.
A Maven project can easily manage dependencies and build the project with a single command.
A simpl...
Tags are used in Cucumber to organize and filter scenarios and features.
Tags allow for easy organization of scenarios and features based on their purpose or functionality.
Tags can be used to filter which scenarios or features are run during a test.
Tags can be added to scenarios or features using the '@' symbol followed by the tag name.
Tags can also be used to pass parameters to step definitions.
Examples: @smoke, @regre
TestNG is more advanced and flexible than JUnit, with features like parallel testing and data-driven testing.
TestNG supports parallel testing while JUnit does not.
TestNG allows for data-driven testing while JUnit does not.
TestNG has more advanced annotations and reporting features than JUnit.
TestNG can be used with both Java and non-Java languages while JUnit is only for Java.
JUnit is simpler and easier to learn than T
To disable a test, we can comment out the test code or use testNG annotations.
Comment out the test code
Use testNG annotations like @Test(enabled=false)
Use testNG XML file to disable the test
Use groups to disable a set of tests
Questions related to Selenium Automation and software testing
To remove duplicate characters in a string, use a loop and a hashset
To perform operations on specific buttons for a user, use conditional statements
To switch to a particular tab, use the window handle
500 error code in Postman validation indicates a bad request
Primary key is a unique identifier for a record in a database
Roles and responsibilities in a project
I applied via Walk-in and was interviewed before Dec 2020. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Aug 2020. There were 3 interview rounds.
I applied via Campus Placement and was interviewed before Feb 2020. There were 6 interview rounds.
I applied via Company Website and was interviewed before Feb 2020. There was 1 interview round.
I applied via Campus Placement and was interviewed in Oct 2020. There were 4 interview rounds.
Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.
Start from the first element and compare it with the next element
If the next element is smaller, swap them
Repeat this process for all elements in the array
Continue this process until no more swaps are needed
A program to print all prime numbers
Take input from user for range of numbers
Loop through the range and check if each number is prime
Print the prime numbers
Hashmap is a data structure that stores key-value pairs and allows constant time access to values based on their keys.
Hashmap uses a hash function to map keys to indices in an array.
Collisions can occur when multiple keys map to the same index, which can be resolved using techniques like chaining or open addressing.
Examples of hashmap implementations include Java's HashMap class and Python's dict type.
Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.
Inheritance allows code reuse and promotes code organization.
The existing class is called the parent or superclass, and the new class is called the child or subclass.
The child class inherits all the properties and methods of the parent class and can also add new properties and methods.
For...
Consultant
251
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Consultant
245
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Consultant
196
salaries
| ₹0 L/yr - ₹0 L/yr |
Lead Consultant
195
salaries
| ₹0 L/yr - ₹0 L/yr |
Softwaretest Engineer
177
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Infosys
Wipro
HCLTech