
LTIMindtree

LTIMindtree Senior Automation Test Engineer Interview Questions and Answers
Q1. What is overloading and overriding ? What are locators in Selenium? What is the syntax of xpath locator ? What are the methods to write the test cases? Is it mandatory to have input tag in defining xpath?
Answers to questions related to automation testing using Selenium
Overloading is when a method has the same name but different parameters in the same class, while overriding is when a subclass provides its own implementation of a method already defined in its superclass
Locators in Selenium are used to identify web elements on a web page
The syntax of xpath locator is //tagname[@attribute='value']
Methods to write test cases include boundary value analysis, equivalence partitioni...read more
Q2. How do you tell appium to run tests on ios or Android devices
To run tests on iOS or Android devices using Appium, specify the platformName capability in desired capabilities.
Specify platformName capability as 'iOS' for iOS devices and 'Android' for Android devices
Include other necessary desired capabilities like deviceName, platformVersion, appPackage, appActivity, etc.
Example: capabilities.setCapability('platformName', 'iOS');
Q3. Code to print the no of Times the letters present in a string
Code to count the occurrences of each letter in a string and print the result
Iterate through each character in the string
Use a dictionary to store the count of each letter
Print the count of each letter at the end
Q4. What are the ways to start a Appium server
Appium server can be started using command line, programmatically in code, or using Appium desktop app.
Start Appium server using command line by running 'appium' command
Start Appium server programmatically in code using Appium server programmatically in code using AppiumDriverLocalService class
Start Appium server using Appium desktop app by launching the app and starting the server
Q5. How to run tests parallel for mobile devices
Tests can be run parallel for mobile devices using test automation frameworks like Appium or Espresso.
Use test automation frameworks like Appium or Espresso to run tests parallel for mobile devices
Leverage cloud-based testing platforms like Sauce Labs or BrowserStack for parallel testing on multiple devices
Implement parallel test execution using tools like TestNG or JUnit in combination with Appium or Espresso
Utilize device farms to run tests in parallel on a large number of ...read more
Q6. How do you automate otp in mobile
Automating OTP in mobile involves using automation tools to interact with the OTP input field and validate the received OTP.
Use automation tools like Appium or Espresso to interact with the OTP input field
Extract the OTP from the message received on the mobile device
Validate the extracted OTP with the OTP input field
Handle scenarios where OTP validation fails
Q7. How to set up automation for ios devices
Setting up automation for iOS devices involves using tools like Appium and Xcode for testing mobile applications.
Install Xcode on your Mac machine
Set up Appium for iOS automation
Connect your iOS device to the Mac machine
Create test scripts using Appium for iOS apps
Execute the test scripts on the connected iOS device
Q8. What are desired capabilities
Desired capabilities are a set of properties or attributes that define the behavior of a browser or mobile device in Selenium automation testing.
Desired capabilities are key-value pairs that are used to configure the WebDriver instances in Selenium.
They can be used to set properties like browser name, version, platform, and other settings.
For example, setting 'browserName' to 'chrome' will launch the Chrome browser during the test execution.
More about working at LTIMindtree




Interview Process at LTIMindtree Senior Automation Test Engineer

Top Senior Automation Test Engineer Interview Questions from Similar Companies




Reviews
Interviews
Salaries
Users/Month

