Sdet Automation Test Engineer
200+ Sdet Automation Test Engineer Interview Questions and Answers
Q101. Journey through school life till now
I have always been a dedicated student, excelling in academics and extracurricular activities.
Consistently achieved top grades in all subjects
Participated in various school competitions and won awards
Served as a class representative and organized events
Took part in sports teams and cultural activities
Q102. Xpath writing with parent child relation
Xpath writing with parent child relation involves specifying the path to locate elements based on their hierarchical relationship.
Use '/' to specify direct child elements
Use '//' to specify any descendant elements
Use '[]' to specify conditions for selecting elements
Example: //div[@class='parent']/child::span
Q103. Difference between SQL and MongoDB?
SQL is a relational database management system, while MongoDB is a NoSQL database management system.
SQL is a relational database, MongoDB is a document-oriented database
SQL uses tables and rows, MongoDB uses collections and documents
SQL uses structured query language, MongoDB uses JSON-like documents with dynamic schemas
Q104. Different response codes in API testing
Response codes in API testing indicate the status of the request made to the API.
200 - OK: Request was successful
400 - Bad Request: Invalid input or missing parameters
401 - Unauthorized: Authentication required
404 - Not Found: Resource not found
500 - Internal Server Error: Server-side issue
Q105. Explain promises in javascript?
Promises in JavaScript are objects representing the eventual completion or failure of an asynchronous operation.
Promises are used to handle asynchronous operations in JavaScript.
They can be in one of three states: pending, fulfilled, or rejected.
Promises can be chained using .then() to handle success and .catch() to handle errors.
Example: const myPromise = new Promise((resolve, reject) => { ... });
Q106. Array sorting for a given input.
Array sorting for a given input involves arranging elements in a specific order.
Use built-in sorting functions like sort() in programming languages such as Java, Python, or JavaScript.
Consider the sorting algorithm complexity for large arrays.
Ensure the sorting is done based on the specific requirements like alphabetical order or numerical order.
Share interview questions and help millions of jobseekers 🌟
Q107. Rotation of array to right by 2 position
Rotate array to right by 2 positions
Create a new array with the same length as the original array
Copy elements from original array starting from index (length - 2) to the new array
Copy elements from original array starting from index 0 to (length - 3) to the new array
Return the new array as the rotated array
Q108. Java program to reverse a sentence
Java program to reverse a sentence
Split the sentence into words using the split() method
Create a new array to store the reversed words
Iterate through the words in reverse order and add them to the new array
Join the reversed words using the join() method to form the reversed sentence
Sdet Automation Test Engineer Jobs
Q109. What are the methods of select
Methods of selecting elements in automation testing include using locators, XPath, CSS selectors, and various other strategies.
Using locators such as ID, class name, name, tag name, link text, and partial link text
Using XPath to navigate through elements in the HTML structure
Using CSS selectors to target elements based on their styles
Using various strategies like text matching, attribute values, and sibling/child relationships
Examples: driver.findElement(By.id("elementId")), ...read more
Q110. What is oops concepts?
Object-oriented programming concepts that focus on classes, objects, inheritance, encapsulation, and polymorphism.
Classes: Blueprint for creating objects with attributes and methods.
Objects: Instances of classes that contain data and behavior.
Inheritance: Ability for a class to inherit properties and methods from another class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Polymorphism: Ability for objects to be treated as instances of th...read more
Q111. Test case plan for some api test
Create a test case plan for API testing
Identify the API endpoints to be tested
Define the input data and expected output for each endpoint
Create test cases for positive and negative scenarios
Include test cases for edge cases and boundary conditions
Document the steps to execute each test case
Q112. Explain framework ur working on
I am working on a hybrid framework that combines data-driven and keyword-driven approaches.
The framework uses Excel sheets to store test data and keywords.
It uses Selenium WebDriver for browser automation.
It has a modular structure with reusable functions and libraries.
It supports parallel execution of tests.
It generates detailed reports with screenshots and logs.
Q113. Why testing and not development
Testing allows me to ensure the quality and reliability of software products before they are released to customers.
I enjoy the challenge of finding bugs and improving the overall quality of the product.
I have a keen eye for detail and enjoy the investigative aspect of testing.
I believe that testing is just as important as development in the software development lifecycle.
I have a passion for ensuring that users have a positive experience with the software.
I appreciate the opp...read more
Q114. Find xpath for Web elements on website
XPath is a way to navigate through elements on a webpage using their attributes.
Inspect the element on the webpage to identify unique attributes like id, class, name, etc.
Construct the XPath using the unique attributes to locate the element.
Use tools like Chrome Developer Tools or Firebug to help generate XPath.
Avoid using absolute XPath as they can be brittle and prone to breaking.
Consider using relative XPath for better maintainability.
Q115. Client vs server side script language?
Client side script languages run on the user's browser, while server side script languages run on the server.
Client side script languages include JavaScript, HTML, and CSS.
Server side script languages include PHP, Python, and Ruby.
Client side scripts are executed on the user's browser, while server side scripts are executed on the server before the page is sent to the user.
Client side scripts can be viewed and modified by users, while server side scripts are not visible to us...read more
Q116. Take Screenshot of a particular element
Use Selenium WebDriver to take a screenshot of a specific element on a web page
Locate the element using appropriate locator strategy
Use Selenium WebDriver's TakesScreenshot interface to capture the screenshot
Crop the screenshot to focus on the specific element if needed
Q117. In Array find the common elements
Find common elements in an array of strings.
Iterate through the array and compare each element with the rest of the elements.
Use a nested loop to compare each element with all other elements.
If an element is found to be common, add it to a separate array or list.
Return the array or list of common elements.
Q118. Java program for searching a character
Java program to search for a character in an array of strings
Create a method that takes in an array of strings and a character to search for
Iterate through each string in the array and check if the character is present
Return true if the character is found in any of the strings, false otherwise
Q119. Tell me about old culural exp
I have had the opportunity to experience various old cultural traditions and practices.
Participating in traditional festivals and ceremonies
Learning about ancient customs and rituals
Visiting historical sites and museums
Interacting with elders and hearing their stories
Q120. Checked and unchecked exception
Checked exceptions are checked at compile time, while unchecked exceptions are not.
Checked exceptions must be handled by the code or declared in the method signature using 'throws' keyword.
Unchecked exceptions do not need to be caught or declared in the method signature.
Examples of checked exceptions: IOException, SQLException.
Examples of unchecked exceptions: NullPointerException, ArrayIndexOutOfBoundsException.
Q121. What are procedures?
Procedures are a set of steps or actions that need to be followed in a specific order to achieve a desired outcome.
Procedures provide a structured approach to completing tasks.
They help ensure consistency and accuracy in performing tasks.
Procedures can be documented in manuals, guides, or standard operating procedures.
Examples include software testing procedures, medical procedures, and manufacturing procedures.
Q122. Test cases for lift
Test cases for lift functionality
Test the lift buttons for each floor
Test the emergency stop button
Test the door open and close functionality
Test the capacity limit of the lift
Test the response time of the lift to call buttons
Q123. find if there is a loop in linked list
To find a loop in a linked list, use Floyd's Cycle Detection Algorithm.
Use two pointers - slow and fast, where slow moves one step at a time and fast moves two steps at a time.
If there is a loop, the two pointers will eventually meet at some point within the loop.
To find the starting point of the loop, reset one pointer to the head and move both pointers one step at a time until they meet again.
Q124. group anagram strings in a array
Group anagram strings in an array
Iterate through the array of strings
For each string, sort the characters alphabetically
Use a hashmap to group anagrams together based on sorted strings
Q125. Ready to relocate to different location
Yes, I am open to relocating for the right opportunity.
I am open to relocating for the right job opportunity
I have relocated for previous roles and am comfortable with the process
I am willing to consider different locations based on the job requirements
Q126. what is class and variable
A class is a blueprint for creating objects in object-oriented programming, while a variable is a container for storing data.
A class defines the properties and behaviors of objects, while a variable holds a value that can be changed or manipulated.
Classes can be used to create multiple instances of objects with the same properties and behaviors.
Variables can be of different data types such as int, string, boolean, etc.
Example: Class - Car (properties: color, model; behaviors:...read more
Q127. Progrsm for python to remove dublicate
Program in Python to remove duplicates from an array of strings.
Use a set to store unique elements
Iterate through the array and add each element to the set
Convert the set back to a list to remove duplicates
Q128. explain framework
A framework is a structured set of guidelines, libraries, and tools that help in developing and maintaining automation test scripts.
Framework provides a structure for organizing code and resources.
It includes reusable components like libraries, utilities, and templates.
Frameworks can be data-driven, keyword-driven, or hybrid.
Examples: Selenium WebDriver, TestNG, JUnit.
Q129. What is recursion() function
Recursion() function is a programming technique where a function calls itself in order to solve a problem.
Recursion involves breaking down a problem into smaller subproblems and solving them recursively.
It is important to have a base case to prevent infinite recursion.
Examples include factorial calculation, Fibonacci sequence, and tree traversal.
Q130. What is getWindowsHandles
getWindowsHandles is a method in Selenium WebDriver used to get the window handles of all the open browser windows.
getWindowsHandles returns a set of window handles as strings.
It is useful for switching between multiple browser windows during automation testing.
Example: Set
handles = driver.getWindowHandles();
Q131. Difference between Severity and priority
Severity is the impact of a bug on the system, while priority is the urgency of fixing it.
Severity is the measure of how much a bug affects the system's functionality.
Priority is the order in which bugs should be fixed based on urgency.
Severity is usually categorized as low, medium, or high.
Priority is usually categorized as low, medium, or high.
For example, a bug that causes the system to crash would have high severity and high priority.
Q132. LOCATE X PATH , GET WINDOW HANDLE
Locate element using Xpath and retrieve window handle in automation testing.
Use findElement method with By.xpath to locate the element using Xpath.
Use getWindowHandle method to retrieve the window handle.
Q133. TYPES OF WAITS WITH THEIR SYNTAX
Types of waits in automation testing with their syntax
Implicit Wait: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Explicit Wait: WebDriverWait wait = new WebDriverWait(driver, 10); wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("elementID")));
Fluent Wait: Wait wait = new FluentWait(driver).withTimeout(Duration.ofSeconds(10)).pollingEvery(Duration.ofSeconds(2)).ignoring(NoSuchElementException.class);
Q134. Find duplicate in array program
Program to find duplicates in an array.
Iterate through the array and compare each element with the rest of the elements.
If a match is found, add it to a separate array or print it.
Use a hash table to keep track of the frequency of each element.
Sort the array and compare adjacent elements to find duplicates.
Q135. Sort hash map in ascending order
Use TreeMap to automatically sort hash map keys in ascending order
Create a TreeMap and pass the hash map to its constructor
Iterate over the TreeMap to access the keys in ascending order
Q136. Prefix Sum and left sum of binary tree.
Prefix Sum and left sum of binary tree involves calculating the sum of all nodes in a binary tree and the sum of nodes on the left side of each node.
Calculate prefix sum of binary tree by traversing in a pre-order manner and keeping track of the running sum.
To calculate left sum of binary tree, traverse the tree in a pre-order manner and keep track of the sum of nodes on the left side of each node.
Example: For a binary tree with nodes 1, 2, 3, 4, 5, the prefix sum would be 15...read more
Q137. What is a constructor
A constructor is a special type of method that is automatically called when an object is created.
Constructors have the same name as the class they belong to
They are used to initialize the object's state
Constructors do not have a return type
They can be overloaded to accept different parameters
Q138. Reverse String in java?
Reverse a string in Java
Convert the string to a character array
Use two pointers, one at the start and one at the end of the array
Swap the characters at the two pointers and move the pointers towards each other
Continue swapping until the pointers meet in the middle
Q139. explain your automation frameowrk
My automation framework is a data-driven framework using Selenium WebDriver and TestNG for automated testing.
Uses Selenium WebDriver for interacting with web elements
Utilizes TestNG for test case management and reporting
Employs data-driven approach for test data separation
Includes logging and reporting mechanisms for test execution
Supports parallel execution for faster test runs
Q140. difference between println and print
println adds a new line after printing, while print does not
println adds a new line character at the end of the output
print does not add a new line character, so the next output will be on the same line
Example: println('Hello') will print 'Hello' on a new line, while print('Hello') will print 'Hello' on the same line
Q141. Why robot framework?
Robot Framework is a powerful open-source automation framework that offers easy-to-use syntax and supports keyword-driven testing.
Robot Framework provides a simple and readable syntax, making it easy to write and maintain test cases.
It supports keyword-driven testing, allowing for high-level test case design and reusability.
Robot Framework has a rich ecosystem with a wide range of libraries and tools, making it highly extensible.
It supports various test automation approaches,...read more
Q142. what is oops and chaterstivs
OOPs stands for Object-Oriented Programming. It is a programming paradigm based on the concept of objects, which can contain data and code.
OOPs focuses on creating objects that interact with each other to solve problems
Key features of OOPs include encapsulation, inheritance, polymorphism, and abstraction
Encapsulation refers to bundling data and methods that operate on the data into a single unit
Inheritance allows a class to inherit properties and behavior from another class
Po...read more
Q143. Tell me abiut yourself
I am an experienced SDET Automation Test Engineer with a strong background in software testing and test automation.
I have a Bachelor's degree in Computer Science and have been working in the field for over 5 years.
I have expertise in designing and implementing test automation frameworks using tools like Selenium and Cucumber.
I have experience in writing test scripts, executing test cases, and analyzing test results.
I am proficient in programming languages like Java and Python...read more
Q144. What is polymorphism
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: Inheritance in object-oriented programming languages like Java allows for polymorphism.
Q145. Oops concepts and implementation
Oops concepts refer to object-oriented programming principles like inheritance, polymorphism, encapsulation, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class. Example: Parent class 'Animal' and child class 'Dog'.
Polymorphism: Ability of an object to take on multiple forms. Example: Method overloading and overriding.
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: Private variables a...read more
Q146. what is OOPS ??
OOPS stands for Object-Oriented Programming System. It is a programming paradigm based on the concept of objects.
OOPS focuses on creating objects that contain data in the form of fields (attributes) and code in the form of procedures (methods).
Encapsulation, inheritance, and polymorphism are key principles of OOPS.
Encapsulation refers to the bundling of data with the methods that operate on that data.
Inheritance allows classes to inherit attributes and methods from other clas...read more
Q147. Explain agile process and environment
Agile process is a software development methodology that promotes adaptive planning, evolutionary development, early delivery, and continuous improvement.
Agile process involves breaking down the project into small increments called sprints
It emphasizes collaboration between cross-functional teams
Feedback is gathered regularly from stakeholders to make necessary adjustments
Scrum, Kanban, and XP are common frameworks used in agile development
Q148. What are Oops Concepts
Oops Concepts are fundamental principles of object-oriented programming such as Inheritance, Encapsulation, Polymorphism, and Abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Polymorphism: Ability of a function to behave differently based on the object it is acting upon.
Abstraction: Hiding the complex implementation details and showing only the nec...read more
Q149. What is singleton class
A singleton class is a class that can only have one instance created and provides a global point of access to that instance.
Singleton classes are often used in scenarios where only one instance of a class is needed, such as for managing a connection pool or configuration settings.
The singleton pattern typically involves a private constructor, a static method to access the instance, and a static variable to hold the instance.
Example: In Java, a singleton class can be implement...read more
Q150. Different types of exception
Different types of exceptions include checked, unchecked, and errors.
Checked exceptions are checked at compile time and must be handled or declared.
Unchecked exceptions are not checked at compile time and can be handled or not.
Errors are exceptional conditions that are not meant to be caught or handled.
Interview Questions of Similar Designations
Top Interview Questions for Sdet Automation Test Engineer Related Skills
Interview experiences of popular companies
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/Month