i
LTIMindtree
Filter interviews by
posted on 1 Sep 2024
Automate dynamic web page with multiple popups and pages by using a combination of tools like Selenium, TestNG, and Page Object Model.
Use Selenium WebDriver to interact with elements on the web page.
Implement TestNG for test case management and execution.
Utilize Page Object Model design pattern to organize and maintain the automation code.
Handle popups using WebDriver's switchTo() method.
Use explicit waits to handle dy...
Automating payment gateway and process in Selenium WebDriver involves identifying elements, handling pop-ups, and verifying transactions.
Identify and interact with payment gateway elements using Selenium WebDriver commands.
Handle any pop-ups or alerts that may appear during the payment process.
Verify successful completion of the payment transaction by checking for expected outcomes.
Use test data to simulate different p...
Code to find all links in a page
Use a web scraping library like BeautifulSoup or Selenium to parse the HTML of the page
Identify the HTML tags that contain links (usually tags)
Extract the 'href' attribute from each tag to get the link URL
Binary search program for sorting array of strings.
Define a function that takes in an array of strings and a target string to search for.
Sort the array of strings using a sorting algorithm like quicksort or mergesort.
Implement binary search algorithm to find the target string in the sorted array.
To automate API using Selenium WebDriver, we can use tools like RestAssured and create test scripts to interact with API endpoints.
Use RestAssured library to send HTTP requests and validate responses
Create test scripts to interact with API endpoints and verify data
Utilize Selenium WebDriver to automate the process of sending requests and validating responses
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 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
I applied via Job Portal
Reasoning,numerical ,ratios
Basic coding questions
posted on 12 Jun 2024
I applied via Naukri.com and was interviewed in May 2024. There were 2 interview rounds.
I applied via Recruitment Consulltant and was interviewed in Dec 2023. There was 1 interview round.
Use Selenium WebDriver to capture screenshot on test case failure
Use Selenium WebDriver's getScreenshotAs method to capture screenshot
Save the screenshot to a specified location on the system
Include the screenshot capture code in the test case failure handling logic
Selenium can be integrated with JIRA using JIRA API and Selenium WebDriver to automate test case execution and report defects directly from Selenium scripts.
Use JIRA API to interact with JIRA from Selenium scripts
Utilize Selenium WebDriver to automate test case execution and report defects
Integrate Selenium with JIRA to create a seamless testing and defect tracking process
Challenges include conflicts with other developers' changes, incorrect file paths, and forgetting to add files.
Conflicts with other developers' changes
Incorrect file paths
Forgetting to add files
I was interviewed in Jan 2024.
I applied via Naukri.com and was interviewed in Feb 2024. There was 1 interview round.
Reversing string "I am Rahul"
posted on 1 Feb 2024
posted on 26 Dec 2023
Some of the top questions asked at the LTIMindtree Quality Assurance and Automation Tester interview for freshers -
Senior Software Engineer
21.2k
salaries
| ₹4.7 L/yr - ₹18.4 L/yr |
Software Engineer
16.2k
salaries
| ₹2 L/yr - ₹10 L/yr |
Module Lead
6.8k
salaries
| ₹7 L/yr - ₹25 L/yr |
Technical Lead
6.5k
salaries
| ₹9.3 L/yr - ₹36.8 L/yr |
Senior Engineer
4.4k
salaries
| ₹4.2 L/yr - ₹16.1 L/yr |
Cognizant
Capgemini
Accenture
TCS