Filter interviews by
Be the first one to contribute and help others!
I applied via Naukri.com and was interviewed in Jun 2022. There were 2 interview rounds.
Code words in test runner file in Cucumber
Cucumber uses Gherkin syntax for writing feature files
Test runner file specifies the location of feature files and step definitions
Code words in test runner file include 'feature', 'glue', 'tags', 'plugin', 'monochrome', etc.
Monochrome and pretty are formatting options in Cucumber to make the output more readable.
Monochrome removes colors from the output to make it easier to read in black and white.
Pretty formats the output in a more human-readable way with indentation and line breaks.
Both options can be used together or separately.
Example: 'cucumber --format pretty --monochrome'
Example: 'cucumber --format progress --no-monochrome'
Configure Jenkins with necessary plugins and create a Jenkins job to run the automation suite.
Install necessary plugins like Selenium, TestNG, etc.
Create a Jenkins job and configure it to run the automation suite
Specify the location of the automation suite in the Jenkins job configuration
Set up the build triggers and post-build actions as required
My framework is a hybrid framework that combines data-driven and keyword-driven approaches.
My framework uses Excel sheets to store test data and keywords.
It uses Selenium WebDriver for web automation and Appium for mobile automation.
It has a modular structure with reusable functions and libraries.
It generates HTML reports with detailed test results.
It supports parallel execution for faster test runs.
I applied via Naukri.com and was interviewed in May 2022. There were 3 interview rounds.
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 Company Website and was interviewed in Nov 2024. There was 1 interview round.
Defect life cycle is the process of identifying, reporting, fixing, retesting, and closing defects in software development.
Defect identification: Defects are identified through testing or user feedback.
Defect reporting: Defects are reported in a defect tracking tool with details like steps to reproduce, severity, and priority.
Defect fixing: Developers fix the reported defects based on the information provided.
Defect re...
Black box testing focuses on functionality without knowledge of internal code, while white box testing examines internal code structure.
Black box testing tests the functionality of a system without knowledge of its internal code
White box testing tests the internal code structure and logic of a system
Black box testing is more focused on end-user perspective
White box testing is more focused on developer perspective
Exampl...
Hard assert stops the execution of the test case if it fails, while soft assert continues the execution and logs the failure.
Hard assert is used when the failure of a particular step makes the further steps irrelevant.
Soft assert is used when you want to continue with the test case execution even if some steps fail.
Hard assert is implemented using 'assert' keyword in testing frameworks like TestNG or JUnit.
Soft assert ...
Annotations in Selenium WebDriver are used to provide additional information about the test methods.
Annotations help in organizing and managing test cases
Some common annotations in Selenium WebDriver are @Test, @BeforeTest, @AfterTest, @BeforeClass, @AfterClass, @BeforeMethod, @AfterMethod
Annotations are used to define the sequence of execution of test methods
Use XPath to count the number of links with the text 'selenium'
Use XPath to locate all the links containing the text 'selenium'
Count the number of links found using the XPath expression
Use SQL query to display 60 pass and 40 fail from a table of students.
Use SELECT statement with COUNT function to count the number of pass and fail statuses.
Use WHERE clause to filter out pass and fail statuses.
Use GROUP BY clause to group the statuses together.
Use CASE statement to display the count of pass and fail statuses.
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 Company Website and was interviewed in Oct 2024. There was 1 interview round.
Java program to print sum of digits from a given string
Iterate through each character in the string
Check if the character is a digit using Character.isDigit() method
Convert the digit character to integer using Character.getNumericValue() method
Sum up all the digits found in the string
OOPs concepts used in the framework include inheritance, polymorphism, encapsulation, and abstraction.
Inheritance is used to create a parent-child relationship between classes. For example, a base class 'Page' can be inherited by 'HomePage' and 'LoginPage' classes.
Polymorphism allows objects of different classes to be treated as objects of a common superclass. For instance, a 'click' method can be implemented different...
Polymorphism is the ability of a single function or method to operate on different types of data.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).
Example of compile-time polymorphism: function overloading in Java.
Example of runtime polymorphism: method overriding in Java
Java program to print the sum of elements in a string array.
Convert each element in the string array to an integer using Integer.parseInt()
Sum up all the integers to get the total sum
I was interviewed in May 2024.
Gherkin words are keywords used in Gherkin syntax for writing test scenarios in Behavior Driven Development (BDD).
Feature
Scenario
Given
When
Then
And
But
Plugins are used to extend the functionality of a software application.
Plugins are additional software components that can be added to an existing application to provide new features or functionalities.
They can be used to customize the behavior of the application without modifying its core code.
Examples of plugins include browser extensions, WordPress plugins, and Adobe Photoshop filters.
To run a runner class, you can use a test runner tool like JUnit or TestNG in your automation testing framework.
Use a test runner tool like JUnit or TestNG to execute the runner class
Add the @RunWith annotation in JUnit or specify the runner class in TestNG XML file
Make sure the runner class includes the necessary setup and teardown methods for test execution
TestNG allows running tests in parallel mode using groups and priorities.
Use 'parallel' attribute in testng.xml file to specify parallel mode (e.g.
Use 'groups' attribute in testng.xml file to group tests that should run in parallel (e.g.
Use 'priority' attribute in testng.xml file to specify the order in which tests should run (e.g.
Merge Sort is a divide and conquer algorithm that divides the input array into two halves, sorts them, and then merges them back together.
Divide the array into two halves recursively
Sort each half using Merge Sort recursively
Merge the sorted halves back together
Program to reverse a string using array of characters
Create an array of characters from the input string
Iterate through the array in reverse order and append each character to a new string
Return the reversed string
Data driven testing syntax using XSSF Workbook
Create XSSFWorkbook object
Get the sheet from the workbook
Iterate through rows and columns to fetch test data
Use test data in your test cases
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
TCS
Accenture
Wipro
Cognizant