Sdet Automation Test Engineer
200+ Sdet Automation Test Engineer Interview Questions and Answers

Asked in NatWest Group

Q. Wait in selenium and how to find all links present in a page xpath
To wait in Selenium, we can use explicit and implicit waits. To find all links in a page using XPath, we can use the findElements() method.
To wait in Selenium, we can use explicit wait with ExpectedConditions or implicit wait with the setScriptTimeout() method.
Explicit wait waits for a certain condition to occur before proceeding with the next steps.
Implicit wait sets a maximum time for the driver to wait for an element to appear.
To find all links in a page using XPath, we ca...read more

Asked in NatWest Group

Q. What is page object model and test ng annotations
Page Object Model (POM) is a design pattern used in test automation to create an object repository for web UI elements.
POM helps in creating reusable and maintainable code by separating the test logic from the page-specific details.
Each web page is represented as a separate class, and the UI elements and their actions are defined as methods within that class.
POM improves code readability, reduces code duplication, and enhances test maintenance.
TestNG annotations are used in T...read more
Sdet Automation Test Engineer Interview Questions and Answers for Freshers

Asked in NatWest Group

Q. How do you handle alerts in Selenium, and what methods do you use?
To handle alerts in Selenium, we use the Alert interface and its methods.
To switch to an alert, we use the switchTo() method of WebDriver class.
To accept or dismiss an alert, we use the accept() or dismiss() method of Alert interface.
To get the text of an alert, we use the getText() method of Alert interface.
To send text to an alert, we use the sendKeys() method of Alert interface.

Asked in NatWest Group

Q. How to take screenshot and project framework
To take a screenshot in automation testing, use the built-in methods provided by the testing framework.
In Selenium, use the getScreenshotAs() method to capture a screenshot.
In Appium, use the getScreenshotAs() method to capture a screenshot.
In TestNG, use the ITestResult interface to capture a screenshot on test failure.
In Cucumber, use the After hook to capture a screenshot after each scenario.

Asked in Xyz Company

Q. What is the software testing life cycle?
Software Testing Life Cycle (STLC) is a process followed to ensure quality in software development by conducting various testing activities.
STLC consists of several phases: requirement analysis, test planning, test case development, test environment setup, test execution, and test closure.
Each phase has specific objectives and deliverables, ensuring that the testing process is systematic and thorough.
STLC helps in identifying defects early, reducing the cost of fixing them, a...read more

Asked in Skeps

Q. What are the functionalities of using multiple catch blocks along with a finally block in try-catch statements?
Using multiple catch blocks allows handling different types of exceptions separately, while finally block ensures cleanup code is executed regardless of exception.
Multiple catch blocks can handle different types of exceptions separately
Finally block ensures cleanup code is executed regardless of exception
Example: try { // code that may throw exceptions } catch (ExceptionType1 e) { // handle ExceptionType1 } catch (ExceptionType2 e) { // handle ExceptionType2 } finally { // cl...read more
Sdet Automation Test Engineer Jobs




Asked in Oracle

Q. Maximum substring Sum , Merge two arrays without extra space .
Find maximum sum of substring and merge two arrays without extra space.
Use Kadane's algorithm to find maximum sum of substring in an array.
To merge two arrays without extra space, use two pointers approach.
Example: Input arrays [1, 2, -3, 4, 5] and [6, 7, 8], output merged array [1, 2, -3, 4, 5, 6, 7, 8].

Asked in NatWest Group

Q. How many locators are present in Selenium?
There are 8 locators present in Selenium.
Selenium provides 8 different locators to identify elements on a web page.
The locators are: ID, Name, Class Name, Tag Name, Link Text, Partial Link Text, CSS Selector, and XPath.
Each locator has its own syntax and usage.
For example, to locate an element by ID, you can use driver.findElement(By.id("elementId"));
Share interview questions and help millions of jobseekers 🌟

Asked in Wipro

Q. How to run your automated test case in jenkins and its configuration, How to automate DB testing, how do you perform localization testing
To run automated test cases in Jenkins, configure DB testing, and perform localization testing
To run automated test cases in Jenkins, create a Jenkins job and configure it to trigger the automation test suite
For DB testing automation, use tools like Selenium WebDriver to interact with the database and verify data integrity
For localization testing, use tools like Selenium WebDriver to test the application with different languages and locales
Configure Jenkins to run the automat...read more

Asked in Koch Business Solutions

Q. Describe a few scenario-based troubleshooting approaches for Linux systems when a client is unable to connect to servers running an application.
Troubleshooting server connection issues involves checking network, application, and server configurations systematically.
Check network connectivity using 'ping' to see if the server is reachable.
Use 'telnet' or 'nc' to test if the specific application port is open.
Examine firewall settings to ensure they allow traffic on the required ports.
Review server logs for any error messages that might indicate issues.
Verify application status using commands like 'systemctl status <ser...read more

Asked in Skeps

Q. What do you know about Docker, API status codes, deployment processes, and Jenkins?
Docker is a containerization platform, API status codes indicate the success or failure of a request, deployment processes involve releasing software updates, and Jenkins is a continuous integration tool.
Docker is a platform for developing, shipping, and running applications in containers.
API status codes are used to indicate the success or failure of a request, such as 200 for success and 404 for not found.
Deployment processes involve releasing software updates to production...read more

Asked in Skeps

Q. What is the code to remove special characters from a string?
Use regular expressions to remove special characters from a string.
Create a regular expression pattern to match special characters
Use the replace() method with the regular expression pattern to remove special characters
Example: str.replace(/[!@#$%^&*()_+]/g, '') will remove !@#$%^&*()_+ from the string

Asked in Infosys

Q. What are the different phases of the Software Testing Life Cycle (STLC)?
STLC consists of phases like requirement analysis, test planning, test design, test execution, and test closure.
Requirement Analysis: Understanding the project requirements and defining the scope of testing.
Test Planning: Creating a test plan which includes test strategy, test objectives, and resource planning.
Test Design: Developing test cases and test scenarios based on requirements.
Test Execution: Running the test cases, reporting defects, and retesting.
Test Closure: Analy...read more

Asked in NatWest Group

Q. How do you find broken links?
To find broken links, use a link checker tool or browser extension.
Use a link checker tool like Xenu's Link Sleuth or W3C Link Checker
Install a browser extension like Check My Links for Chrome or Link Checker for Firefox
Manually check links by clicking on them and checking for error messages
Regularly check for broken links to ensure website functionality

Asked in Skeps

Q. Write an example of a login scenario in Cucumber that includes parameters for passing the username and password.
Example of a login scenario in Cucumber with parameters for username and password
Create a feature file with the login scenario
Define the scenario outline with placeholders for username and password
Implement step definitions to pass the parameters in the login steps

Asked in Infosys

Q. Can you write a program that outputs a sentence in reverse?
Yes, I can write a program that outputs a sentence in reverse.
Create a function that takes a string as input
Split the string into an array of words
Reverse the array
Join the array back into a string and return

Asked in Philips

Q. How would you verify if a record is deleted from a page with 10 records?
To verify if a record is deleted from a page with 10 records, we can check if the record is no longer displayed.
Locate the record on the page
Verify that the record is no longer visible
Confirm that the total number of records displayed is now 9

Asked in RELQ Technologies LLC

Q. How are dynamic elements handled in Selenium?
Dynamic elements in Selenium are handled using techniques like explicit waits, fluent waits, and dynamic locators.
Use explicit waits to wait for a specific condition to be met before interacting with the element
Use fluent waits to wait for an element to be present and visible before interacting with it
Use dynamic locators like XPath with functions to locate elements that change dynamically

Asked in Ingenico ePayments India

Q. Explain framework ur working on, reverse string and swipe no. Without using third variable, method to check checkbox is selected,
Answering questions on framework, string reversal, checkbox selection without third variable and swipe no.
Working on a hybrid framework with Selenium and Appium for web and mobile automation
String reversal can be done using built-in functions or by iterating through the string
Checkbox selection can be checked using isSelected() method in Selenium
Swipe no. can be achieved using TouchActions class in Appium
All of these can be implemented without using a third variable

Asked in Microsoft Corporation

Q. What is the problem statement for Binary Search Trees in data structures and algorithms?
Binary Search Trees (BST) enable efficient data storage and retrieval through a hierarchical structure, optimizing search operations.
A BST is a binary tree where each node has at most two children.
For any given node, all values in the left subtree are less, and all values in the right subtree are greater.
Searching for a value in a BST has an average time complexity of O(log n).
Insertion and deletion operations also maintain the BST properties, ensuring efficient updates.
Examp...read more

Asked in Ecom Express

Q. 1 coding question Remove letter e from a sentence "Welcome to Ecom Express"
Remove letter e from a sentence
Iterate through each character in the sentence
If the character is not 'e', add it to a new string
Return the new string without 'e'

Asked in Capgemini

Q. What is the method to find duplicate characters in a string?
To find duplicate characters in a string, we can use various methods like hashing or counting occurrences using data structures.
Using a Hash Map: Iterate through the string, storing each character's count in a hash map. Example: 'hello' -> {'h': 1, 'e': 1, 'l': 2, 'o': 1}.
Using a Set: Track seen characters in a set. If a character is already in the set, it's a duplicate. Example: 'banana' -> duplicates are 'a' and 'n'.
Sorting the String: Sort the string and check adjacent cha...read more
Asked in ZuciTech Software Solutions

Q. What is the difference between an emulator and a simulator?
Emulator replicates both hardware and software of the original device, while simulator only replicates the software.
Emulator replicates both hardware and software of the original device
Simulator only replicates the software
Emulator is slower but more accurate, simulator is faster but less accurate
Examples: Android Emulator for testing mobile apps, Flight Simulator for pilot training

Asked in Moolya Software Testing

Q. What is the difference between StringBuffer and StringBuilder classes?
String Buffer is synchronized and thread-safe, while String Builder is not synchronized and faster.
String Buffer is synchronized, making it thread-safe for use in multi-threaded environments.
String Builder is not synchronized, making it faster but not thread-safe.
String Buffer is slower than String Builder due to synchronization overhead.
Use String Buffer when thread safety is needed, and String Builder for better performance.

Asked in London Stock Exchange Group

Q. Agile methodologies and day to day operations
Agile methodologies are integrated into day to day operations for efficient software development.
Agile methodologies promote collaboration and flexibility in development
Daily stand-up meetings keep the team updated on progress and any roadblocks
Sprints allow for focused development and frequent feedback
Continuous integration and testing ensure quality and catch issues early
Retrospectives provide opportunities for reflection and improvement

Asked in ReSource Pro

Q. How do you update a name in a database?
To update a name in a database, you can use SQL UPDATE statement with the appropriate WHERE clause.
Use SQL UPDATE statement with SET clause to specify the new name
Add a WHERE clause to specify the record to be updated based on a unique identifier
Ensure proper permissions to update the database
Example: UPDATE table_name SET name = 'new_name' WHERE id = 123

Asked in Capgemini

Q. Wap str = today&is#a@good!day to remove special characters and put space instead Then he asked me to reverse each word.
Remove special characters and replace with space, then reverse each word in a string.
Use regex to remove special characters and replace with space
Split the string into words and reverse each word individually
Join the reversed words back together to form the final string

Asked in Comcast

Q. What is unit testing, and who typically performs it?
Unit testing is a software testing method where individual units or components of a software are tested in isolation.
Unit testing is typically done by developers to ensure that each unit of code functions correctly on its own.
It helps in identifying bugs early in the development process.
Unit tests are automated and focus on testing small, specific parts of the code.
Examples of unit testing frameworks include JUnit for Java, NUnit for .NET, and pytest for Python.

Asked in Systenics Solutions

Q. What is method overloading and overriding?
Method overloading is when multiple methods have the same name but different parameters, while method overriding is when a subclass provides a specific implementation of a method that is already provided by its superclass.
Method overloading involves creating multiple methods in the same class with the same name but different parameters.
Method overriding occurs when a subclass provides a specific implementation of a method that is already provided by its superclass.
Method over...read more
Asked in Securly Software (India)

Q. What is a framework, and what are its key components?
A framework is a structured platform for developing and executing automated tests, enhancing efficiency and maintainability.
Modularity: Allows separation of test scripts into reusable components (e.g., Page Object Model).
Test Management: Provides tools for organizing and managing test cases (e.g., TestNG, JUnit).
Reporting: Generates detailed reports on test execution results (e.g., Allure, ExtentReports).
Configuration: Supports external configuration files for easy environmen...read more
Interview Questions of Similar Designations
Interview Experiences of Popular Companies





Top Interview Questions for Sdet Automation Test Engineer Related Skills

Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary


Reviews
Interviews
Salaries
Users

