Filter interviews by
I applied via Approached by Company and was interviewed in Sep 2021. There were 2 interview rounds.
Autocad commands written test
I applied via Naukri.com and was interviewed before May 2021. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.
Absolute Xpath starts from the root element, while relative Xpath starts from any node in the DOM structure.
Absolute Xpath starts with a single forward slash (/) and starts selection from the root node.
Relative Xpath starts with a double forward slash (//) and starts selection from the current node or any node in the DOM structure.
Absolute Xpath is more brittle and prone to breaking if the structure of the page changes...
The return would be the number of tabs open in the browser.
The return value would be an integer representing the count of open tabs.
For example, if there are 5 tabs open, the return value would be 5.
Types of waits in Selenium include Implicit Wait, Explicit Wait, and Fluent Wait.
Implicit Wait: Waits for a certain amount of time before throwing a NoSuchElementException.
Explicit Wait: Waits for a certain condition to occur before proceeding further in the code.
Fluent Wait: Waits for a condition to be true with a defined polling frequency.
Example: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Exceptions in Selenium are errors that occur during test execution, disrupting the flow of the test script.
Exceptions are thrown when there is an unexpected behavior in the application under test or in the test script itself.
Common exceptions in Selenium include NoSuchElementException, ElementNotVisibleException, TimeoutException, and StaleElementReferenceException.
Handling exceptions in Selenium can be done using try-...
Feature files contain high-level description of the functionality to be tested, while step definitions are the implementation of the steps in the feature file using code.
Feature files are written in Gherkin syntax and describe the behavior of the application in plain text.
Step definitions are written in programming languages like Java, Ruby, etc., and map the steps in the feature file to automation code.
Feature files a...
Data can be input in Cucumber using feature files and step definitions.
Data can be input in feature files using scenarios and scenario outlines
Step definitions can be used to define the actions to be taken with the input data
Data tables can be used in feature files to input structured data
Examples keyword can be used in scenario outlines to provide multiple sets of input data
Test case is a set of conditions or variables under which a tester will determine whether a system under test satisfies requirements. Test plan is a document outlining the scope, approach, resources, and schedule of testing activities. Test scenarios are detailed descriptions of possible interactions with the system.
Test case: specific conditions to be tested, expected results, steps to execute
Test plan: overall strate...
Hooks in Java are methods that allow subclasses to override or extend the behavior of a superclass.
Hooks are commonly used in frameworks like JUnit and TestNG for test automation.
They are often used for setup and teardown operations before and after test methods.
Examples include @Before, @After, @BeforeClass, and @AfterClass annotations in JUnit.
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
The output of the code will be 'animal is created' followed by 'Dog is created'.
The code defines a class Animal with a constructor that prints 'animal is created'.
It also defines a class Dog that extends Animal, with a constructor that prints 'Dog is created'.
In the main method, an instance of Dog is created, which will trigger the constructors of both Animal and Dog classes.
The output will be 'HelloThere'
Concatenation of 'Hello' and 'There' results in 'HelloThere'
The final string is printed using System.out.println()
The code creates a StringBuffer object with 'Hello' and appends 'There' to it before printing the final string.
StringBuffer is mutable, so the original 'Hello' string can be modified
The append() method adds the specified string to the end of the buffer
The final output will be 'HelloThere'
Option a is valid, option b is valid, option c is invalid.
Option a is valid because ChromeDriver is a subclass of WebDriver, so it can be assigned to a WebDriver reference.
Option b is valid because ChromeDriver is a subclass of WebDriver, so it can be instantiated using a WebDriver reference.
Option c is invalid because WebDriver is an interface and cannot be instantiated directly. It can only be used as a reference typ
Sort input array of strings in descending order without using inbuilt functions
Iterate through the array and compare each element with the rest to find the largest element
Swap the largest element with the first element, then repeat the process for the remaining elements
Continue this process until the array is sorted in descending order
findElement returns the first matching element on the page, while findElements returns a list of all matching elements.
findElement returns a single WebElement matching the locator provided
findElements returns a list of WebElements matching the locator provided
findElement will throw NoSuchElementException if no element is found, while findElements will return an empty list
getwindowhandle returns the handle of the current window, getwindowhandles() returns handles of all open windows
getwindowhandle returns a single window handle, while getwindowhandles() returns a set of window handles
getwindowhandle is used to switch between windows in Selenium WebDriver
Output type of getwindowhandle is String, while output type of getwindowhandles() is Set
String is immutable, while StringBuilder is mutable and more efficient for concatenating strings.
String is immutable, meaning its value cannot be changed once it is created.
StringBuilder is mutable, allowing for modifications to the string without creating a new object.
StringBuilder is more efficient for concatenating multiple strings as it does not create new objects each time.
Example: String str = "Hello"; StringBuil
The @BeforeMethod annotation is used to run a method before each test method in a class, while @BeforeTest is used to run a method before any test method in a test tag.
The @BeforeMethod annotation is specific to TestNG framework and is used to initialize test data before each test method.
@BeforeTest annotation is also specific to TestNG and is used to initialize test data before any test method in a test tag.
If a class...
I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.
Java OOPs concepts are used in automation framework design for better code organization and reusability.
Encapsulation: Used to hide the internal implementation details of classes and provide access through methods.
Inheritance: Allows for code reuse by creating parent-child relationships between classes.
Polymorphism: Enables methods to behave differently based on the object they are called on.
Abstraction: Helps in defin...
OTP can be handled by generating, sending, and verifying it in automated tests.
Generate OTP using a random number generator
Send OTP to the user via email, SMS, or any other communication channel
Verify OTP entered by the user against the generated OTP
To start Appium in automation, you need to install Appium server, set up desired capabilities, and run the server.
Install Appium server using npm install -g appium
Set up desired capabilities in your test script
Start the Appium server using the command appium
Types of mobile apps include native apps, web apps, and hybrid apps.
Native apps are developed for specific platforms like iOS or Android
Web apps are accessed through a web browser and do not need to be downloaded from an app store
Hybrid apps combine elements of both native and web apps
Examples include Instagram (native), Twitter (web), and Uber (hybrid)
Program to remove duplicate letters in a string
Iterate through the string and keep track of seen characters in a set
Append characters to a new string only if they are not already in the set
Return the new string without duplicate letters
Swipe action in mobile devices can be performed using swipe() method in Appium or TouchAction class in Selenium.
Use swipe() method in Appium to perform swipe action in mobile devices
Alternatively, use TouchAction class in Selenium for swipe action
Specify the start and end coordinates for the swipe action
Adjust the duration and speed of the swipe as needed
posted on 24 Oct 2024
Program to reverse a number
Convert the number to a string to easily manipulate each digit
Iterate through the string in reverse order and append each digit to a new string
Convert the reversed string back to an integer and return
Reverse a string in Java using StringBuilder's reverse method.
Create a StringBuilder object with the input string
Use the reverse() method of StringBuilder to reverse the string
Convert the reversed StringBuilder object back to a string using toString()
An interface in software development is a contract that defines the methods that a class must implement.
Interfaces in programming languages like Java, C#, and TypeScript provide a way to achieve abstraction and multiple inheritance.
Classes implementing an interface must provide concrete implementations for all the methods defined in the interface.
Interfaces allow for loose coupling between components, making code more
based on 1 review
Rating in categories
Executive Accountant
4
salaries
| ₹2.2 L/yr - ₹4 L/yr |
Auto CAD Engineer
4
salaries
| ₹2.4 L/yr - ₹2.5 L/yr |
Field Engineer
3
salaries
| ₹2.2 L/yr - ₹2.2 L/yr |
Accountant
3
salaries
| ₹3 L/yr - ₹3.8 L/yr |
Team Lead
3
salaries
| ₹4.5 L/yr - ₹5 L/yr |
TCS
Accenture
Wipro
Cognizant