Accenture
10+ Willis Lease Finance Corporation Interview Questions and Answers
Q1. How to run parallel mode in testng,groups,priority
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.
)
Q2. Write syntax of data driven testing (XSSF Workbook) Syntax
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
Q3. What are the different gherkin words
Gherkin words are keywords used in Gherkin syntax for writing test scenarios in Behavior Driven Development (BDD).
Feature
Scenario
Given
When
Then
And
But
Q4. What we will use in plugin
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.
Q5. Write a code snippet of opening link using webdriver
Code snippet to open a link using WebDriver
Instantiate a WebDriver object
Use the get() method to open the desired URL
Q6. How to run runner class
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
Q7. Write Reverse a string programme
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
Q8. Difference Between find elements and element
find elements is used to locate multiple elements on a web page, while element is used to locate a single element.
find elements returns a list of elements matching the locator, while element returns the first element found
find elements is useful when there are multiple elements with the same locator, while element is used when only one element is expected
find elements can be used with methods like findElements() in Selenium, while element is used with methods like findElement...read more
Q9. Write Merge Sort Programme
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
Q10. What is Selenium
Selenium is a popular open-source tool for automating web browsers.
Selenium supports multiple programming languages like Java, Python, and C#.
It can automate testing tasks like clicking buttons, entering text, and verifying text on web pages.
Selenium WebDriver is the most commonly used component for browser automation.
Selenium Grid allows for parallel test execution on different machines and browsers.
Q11. Explain Selenium architecture
Selenium architecture consists of four main components: Selenium Client Library, WebDriver API, Browser Drivers, and Browsers.
Selenium Client Library provides bindings for various programming languages to interact with WebDriver.
WebDriver API is used to interact with different browsers like Chrome, Firefox, etc.
Browser Drivers act as a bridge between WebDriver and the actual browser.
Browsers are the actual web browsers where the tests are executed.
More about working at Accenture
Interview Process at Willis Lease Finance Corporation
Top Automation Tester Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month