Filter interviews by
Top trending discussions
Run time driver calling function is a mechanism where a function is called during the execution of a program.
Run time driver calls a specific function based on certain conditions or events during program execution.
This mechanism is commonly used in software testing to simulate real-world scenarios.
Example: A test script that triggers a function to validate user input during runtime.
Selenium Programs based on framewaork + beheviour sceanrio based ques
Migrating an existing automation framework to Cucumber involves integrating Cucumber features, step definitions, and hooks into the existing framework.
Identify the existing test cases and convert them into Cucumber feature files
Create step definitions for each step in the feature files
Integrate Cucumber hooks for setup and teardown actions
Update the automation framework to execute Cucumber tests
Run and validate the con
I handle SQL Exceptions by catching them in try-catch blocks and logging the error details.
Catch SQL Exceptions in try-catch blocks
Log the error details for troubleshooting
Handle exceptions gracefully to prevent application crashes
My expected CTC is based on my experience, skills, and the market rate for Senior QA roles.
My expected CTC is in line with industry standards for Senior QA positions.
I have taken into consideration my years of experience and expertise in QA.
I am open to negotiation based on the overall compensation package offered by the company.
I applied via Job Portal and was interviewed in Sep 2023. There was 1 interview round.
Regression is the process of retesting previously tested functionalities to ensure that new changes have not affected the existing features.
Re-running test cases that were previously executed to verify that new code changes have not introduced any defects
Ensuring that the microwave oven still functions correctly after any updates or modifications
Testing all the basic functionalities like heating, defrosting, timer, etc
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 LinkedIn and was interviewed in Dec 2024. There was 1 interview round.
Maven build lifecycle consists of phases like compile, test, package, install, deploy.
Maven build lifecycle consists of three main phases: clean, default, and site.
Each phase consists of a series of goals that are executed in a specific order.
Some common goals in Maven build lifecycle include compile, test, package, install, and deploy.
The clean phase removes all files generated by the previous build.
The default phase ...
Code to reverse a sentence using array of strings.
Split the sentence into an array of words
Reverse the array
Join the array back into a sentence
Static block in Java is a block of code that is executed only once when the class is loaded.
Static block is used to initialize static variables of a class.
It is executed before the main method.
Syntax: static { // code to be executed }
Example: static { System.out.println("Static block executed"); }
Exclude and include in TestNG are used to specify which test methods to run or skip during test execution.
Exclude attribute is used to specify which test methods to skip during test execution
Include attribute is used to specify which test methods to run during test execution
Both attributes can be used in the testng.xml file or in the @Test annotation
Example: @Test(groups = {"smoke"}, excludeGroups = {"regression"})
To reverse a digit, convert it to a string and then reverse the string.
Convert the digit to a string
Use built-in functions to reverse the string
Convert the reversed string back to a digit if needed
I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.
A Java program to count the occurrences of the letter 'l' in the string 'Hello world'.
Create a Java program with a main method.
Initialize a String variable with the value 'Hello world'.
Use a loop to iterate through each character in the string and count the occurrences of the letter 'l'.
Print the count of 'l' at the end.
Reverse the characters of each word in a given string
Split the input string into an array of words
Reverse each word in the array
Join the reversed words back into a single string
Comparator is an interface used to sort objects, while Comparable is an interface used to compare objects for natural ordering.
Comparator is used to define custom sorting logic for objects, while Comparable is used for natural ordering based on the class's implementation of compareTo() method.
Comparator can be used to sort objects of different classes, while Comparable is implemented within the class itself.
Example: So...
Lambda expression is a concise way to represent an anonymous function in programming languages.
Lambda expressions are used to create small, inline functions without a formal definition.
They are commonly used in functional programming languages like Python, Java, and C#.
Lambda expressions can be used to simplify code and make it more readable.
Example: (x, y) -> x + y is a lambda expression that takes two parameters a
Constructor chaining is the process of calling one constructor from another constructor in a class.
Allows reusing code and avoiding duplication
Can be achieved using 'this' keyword in the constructor
Helps in initializing objects with different parameters
Handle notifications in mobile automation by using automation tools to interact with notifications, verify content, dismiss or respond to them.
Use automation tools like Appium or Espresso to interact with notifications
Verify the content of notifications by extracting text or images
Dismiss notifications to continue with test execution
Respond to notifications if required for test scenarios
Handle different types of notifi...
Use platform-specific locators or conditional statements to handle different element xpaths in iOS and Android apps.
Use platform-specific locators like accessibility id for iOS and resource id for Android
Implement conditional statements to switch between different xpaths based on the platform
Utilize Appium's platformName capability to identify the platform and adjust the element xpath accordingly
TestNG annotations include @Test, @BeforeMethod, @AfterMethod, @BeforeClass, @AfterClass, @BeforeSuite, @AfterSuite
@Test - denotes a test method
@BeforeMethod - runs before each test method
@AfterMethod - runs after each test method
@BeforeClass - runs before the first test method in the current class
@AfterClass - runs after the last test method in the current class
@BeforeSuite - runs before all tests in the suite
@AfterSu
pom.xml is a configuration file used in Maven projects to define project settings and dependencies.
pom.xml stands for Project Object Model XML
It is used in Maven projects to manage project configuration, build settings, and dependencies
Dependencies are mentioned inside the <dependencies> tag in pom.xml
Each dependency is specified with <groupId>, <artifactId>, and <version>
TCS
Accenture
Wipro
Cognizant