Sdet Automation Test Engineer

filter-iconFilter interviews by

200+ Sdet Automation Test Engineer Interview Questions and Answers

Updated 26 Feb 2025

Q51. What is test strategies and test plans

Ans.

Test strategies and test plans are essential documents that outline the approach and scope of testing activities.

  • Test strategy defines the overall testing approach, including objectives, resources, and timelines.

  • Test plan details the specific tests to be conducted, including test cases, test data, and expected results.

  • Test strategy is high-level and focuses on the big picture, while test plan is more detailed and specific.

  • Both documents are crucial for ensuring thorough and e...read more

Q52. what is difference between PUT and POST

Ans.

PUT is used to update or replace an existing resource, while POST is used to create a new resource.

  • PUT is idempotent, meaning multiple identical requests will have the same effect as a single request

  • POST is not idempotent, meaning multiple identical requests may have different effects

  • PUT requires the client to specify the URI of the resource to update, while POST does not

  • PUT is typically used for updating existing resources, while POST is used for creating new resources

Q53. How to automate filters in web page

Ans.

Automating filters in a web page involves identifying filter elements, selecting filter criteria, and verifying filtered results.

  • Identify filter elements on the web page such as dropdowns, checkboxes, or input fields

  • Use automation tools like Selenium to interact with filter elements and select desired criteria

  • Trigger filter action (e.g. clicking 'Apply' button) and wait for the page to refresh with filtered results

  • Verify that the filtered results match the selected criteria b...read more

Q54. How to update name in database.

Ans.

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

Are these interview questions helpful?

Q55. What is differences between smoke and sanity

Ans.

Smoke testing is a quick test to check if the build is stable, while sanity testing is a more thorough test to check if the specific functionalities are working as expected.

  • Smoke testing is done to ensure the stability of the build before further testing, while sanity testing is done to ensure the specific functionalities are working correctly.

  • Smoke testing is a subset of regression testing, while sanity testing is a subset of acceptance testing.

  • Smoke testing is usually done ...read more

Q56. explain authorization and authentication

Ans.

Authentication verifies a user's identity, while authorization determines what actions they are allowed to perform.

  • Authentication confirms the user's identity through credentials like passwords or biometrics.

  • Authorization controls the access rights of authenticated users to specific resources or actions.

  • Examples include logging into a website with a username and password (authentication) and being able to view/edit certain pages based on user roles (authorization).

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Q57. How will you automate data in files

Ans.

Automating data in files involves using tools like Selenium WebDriver or Apache POI to read/write data from/to files.

  • Use Selenium WebDriver to interact with web elements and extract data to be written to files

  • Use Apache POI library to read/write data from/to Excel files

  • Utilize scripting languages like Python or Java to automate data manipulation in files

Q58. What is react js and why we used it?

Ans.

React JS is a JavaScript library for building user interfaces.

  • React JS allows for building reusable UI components.

  • It uses a virtual DOM for efficient rendering.

  • React JS is popular for single-page applications and dynamic web interfaces.

  • It follows a component-based architecture.

Sdet Automation Test Engineer Jobs

Sdet Automation Test Engineer 3-7 years
Broadridge
3.9
Bangalore / Bengaluru
Sdet Automation Test Engineer-Immediate Requirement 2-4 years
Avekshaa Technologies
4.4
₹ 6 L/yr - ₹ 12 L/yr
Bangalore / Bengaluru
Sdet Automation Test Engineer 4-8 years
Ionixx Technologies
3.7
Chennai

Q59. What is Java streams and Lamda functions

Ans.

Java streams are a sequence of elements that support functional-style operations. Lambda functions are anonymous functions that can be passed as arguments.

  • Java streams provide a way to process collections of objects in a functional style.

  • Lambda functions allow for concise and readable code by enabling the passing of behavior as an argument.

  • Example: Using Java streams to filter a list of numbers and then map them to their squares.

  • Example: Using lambda functions to define a cus...read more

Q60. what is linked list, write program for it

Ans.

A linked list is a data structure where each element points to the next element in the sequence.

  • Linked list is made up of nodes, each containing data and a reference to the next node.

  • Example: Node 1 -> Node 2 -> Node 3

  • Program to create a linked list in Python: class Node: def __init__(self, data=None): self.data = data self.next = None

Q61. what is testng and maven, show its implementation

Ans.

TestNG is a testing framework for Java applications, while Maven is a build automation tool. They are commonly used in automation testing.

  • TestNG is used for writing and running test cases in Java

  • Maven is used for managing dependencies and building projects

  • TestNG can be integrated with Maven for automated testing

  • Example: Using TestNG annotations like @Test, @BeforeTest, @AfterTest in a Maven project

Q62. what is java and cpp and dbms sql etc

Ans.

Java is a popular programming language, C++ is another programming language, and DBMS SQL is a language used for managing databases.

  • Java is an object-oriented programming language commonly used for building web applications and software.

  • C++ is a high-level programming language often used for system programming and game development.

  • DBMS SQL is a language used to interact with relational databases, allowing users to retrieve, update, and manage data.

  • Examples: Java - used in And...read more

Q63. what is python, oops and inheritance

Ans.

Python is a high-level programming language known for its simplicity and readability. OOPs (Object-Oriented Programming) is a programming paradigm that uses objects and classes. Inheritance is a feature of OOPs that allows a class to inherit properties and behavior from another class.

  • Python is a versatile, interpreted language used for web development, data analysis, artificial intelligence, and more.

  • OOPs focuses on creating objects that contain both data and methods to manip...read more

Q64. Difference between background keyword and before hooks in cucumber

Ans.

Background keyword runs before each scenario in a feature file, while before hooks run before each scenario in a step definition file.

  • Background keyword is used to define steps that are common to all scenarios in a feature file

  • Before hooks are used to set up preconditions or perform actions before each scenario in a step definition file

  • Background keyword is defined at the beginning of a feature file, while before hooks are defined in the step definition file

  • Example: Backgroun...read more

Q65. Recursion to memoization DP problem and follow ups.

Ans.

Recursion to memoization DP problem involves optimizing recursive solutions by storing intermediate results.

  • Recursion involves solving a problem by breaking it down into smaller subproblems and calling the function recursively.

  • Memoization involves storing the results of expensive function calls and reusing them when the same inputs occur again.

  • Dynamic Programming (DP) involves solving problems by breaking them down into simpler subproblems and storing the results to avoid red...read more

Q66. What is OOPS? What is multi threading?

Ans.

OOPS stands for Object-Oriented Programming. It is a programming paradigm based on the concept of objects, which can contain data and code. Multi-threading is the ability of a CPU to execute multiple threads concurrently.

  • OOPS is a programming paradigm that uses objects to design applications.

  • It allows for encapsulation, inheritance, and polymorphism.

  • Example: Inheritance allows a class to inherit properties and methods from another class.

  • Multi-threading allows multiple threads...read more

Q67. POM Pattern implementation in Java

Ans.

POM (Page Object Model) is a design pattern used in test automation to create reusable and maintainable code by separating page objects from test scripts.

  • Create a separate class for each web page or component

  • Encapsulate the web elements and their actions within the page class

  • Use methods in the page class to interact with the web elements

  • In test scripts, instantiate the page class and call its methods to perform actions on the page

Q68. How is given in rest assured?

Ans.

Rest Assured is a Java library used for testing RESTful APIs. It provides a simple and intuitive way to write automated tests.

  • Rest Assured is a Java library

  • It is used for testing RESTful APIs

  • It provides a simple and intuitive way to write automated tests

Q69. Code to explain Indian number plate system

Ans.

Indian number plate system consists of a unique combination of letters and numbers to identify vehicles.

  • Indian number plates consist of a combination of letters and numbers

  • The first two letters indicate the state where the vehicle is registered

  • Followed by a unique number assigned to the vehicle

  • Some number plates may also include additional information like the vehicle class or fuel type

Q70. How to solve 2 sum problem?

Ans.

The 2 sum problem involves finding two numbers in an array that add up to a specific target sum.

  • Use a hash map to store the difference between the target sum and each element in the array.

  • Iterate through the array and check if the current element's complement exists in the hash map.

  • Return the indices of the two numbers that add up to the target sum.

Q71. How to solve magical number ?

Ans.

Magical number can be solved by identifying the pattern or rule that governs the numbers and applying it to find the next number in the sequence.

  • Identify the pattern or rule in the given numbers

  • Apply the pattern to find the next number in the sequence

  • Examples: Fibonacci sequence, prime numbers, arithmetic progression

Q72. to check if a string is palindrome with recusrion

Ans.

Check if a string is palindrome using recursion

  • Create a recursive function that compares the first and last characters of the string

  • If they match, call the function with the substring excluding the first and last characters

  • Continue this process until the string length is 0 or 1, then return true if all characters matched

  • Example: 'racecar' is a palindrome, 'hello' is not

Q73. Code to move 0's to extreme right position

Ans.

Code to move 0's to extreme right position in an array of strings

  • Iterate through the array and move all 0's to the end of the array

  • Use two pointers approach to swap elements

  • Example: Input array ['1', '0', '3', '0', '5'], Output array ['1', '3', '5', '0', '0']

Q74. Program to find repeated character in a word.

Ans.

Program to find repeated character in a word.

  • Iterate through each character in the word

  • Store each character in a data structure

  • If a character is already present in the data structure, it is a repeated character

Q75. How will you handle dynamic wait

Ans.

I will handle dynamic wait by using explicit waits in Selenium WebDriver.

  • Use WebDriverWait class in Selenium WebDriver to wait for a certain condition to be met before proceeding

  • Specify the maximum amount of time to wait and the frequency of checking for the condition

  • Use ExpectedConditions class to define the condition to wait for, such as element visibility or presence

Q76. What happen when we visit Url

Ans.

When we visit a URL, the browser sends a request to the server hosting the website, which then responds with the requested web page.

  • Browser sends a request to the server hosting the website

  • Server processes the request and responds with the requested web page

  • Web page is displayed in the browser for the user to interact with

Q77. What is oberloading and over riding

Ans.

Overloading is when a class has multiple methods with the same name but different parameters. Overriding is when a subclass provides its own implementation of a method from its superclass.

  • Overloading is used to provide different ways to call a method with different parameters

  • Overriding is used to change the behavior of a method in a subclass

  • Overloading is resolved at compile-time while overriding is resolved at runtime

  • Overloading is also known as compile-time polymorphism whi...read more

Q78. What are abstract classes?

Ans.

Abstract classes are classes that cannot be instantiated and may contain abstract methods that must be implemented by subclasses.

  • Cannot be instantiated directly

  • May contain abstract methods

  • Used as a blueprint for other classes

Q79. Coding question to find the frequency of string

Ans.

Find the frequency of each string in an array of strings.

  • Create a hashmap to store the frequency of each string.

  • Iterate through the array of strings and update the hashmap accordingly.

  • Return the hashmap with the frequency of each string.

Q80. Actions class in selenium

Ans.

Actions class in Selenium is used to perform complex user interactions like drag and drop, double click, etc.

  • Actions class is part of the Selenium WebDriver API

  • It is used to perform advanced user interactions like drag and drop, double click, etc.

  • Actions class is used with the Actions class object to build and perform complex interactions

  • Example: Actions actions = new Actions(driver); actions.dragAndDrop(source, target).build().perform();

Q81. Basic commands in selenium

Ans.

Basic commands in Selenium include findElement, sendKeys, click, getText, and getTitle.

  • findElement - locates a single element on the web page

  • sendKeys - enters text into an input field

  • click - simulates a mouse click on an element

  • getText - retrieves the text of an element

  • getTitle - retrieves the title of the web page

Q82. Locators used in automation

Ans.

Locators are used in automation testing to identify and interact with web elements on a webpage.

  • Locators are used to find elements on a webpage based on their attributes such as ID, class, name, etc.

  • Common locators include ID, class name, name, tag name, link text, partial link text, and XPath.

  • Using unique locators helps in creating stable and reliable automation scripts.

  • Examples: driver.findElement(By.id("elementId")), driver.findElement(By.className("elementClass"))

Q83. Test cases of login/signup

Ans.

Test cases for login/signup functionality

  • Verify valid credentials can successfully login

  • Verify invalid credentials cannot login

  • Verify user can sign up with valid information

  • Verify user cannot sign up with existing email

  • Verify password strength requirements during sign up

Q84. find the missing number in a permutation array

Ans.

Find the missing number in a permutation array

  • Iterate through the array and calculate the sum of all numbers

  • Calculate the sum of all numbers from 1 to n (where n is the length of the array)

  • Subtract the sum of the array from the sum of all numbers to find the missing number

Q85. write a code to find vowel in given string.

Ans.

Code to find vowels in a given string

  • Iterate through each character in the string

  • Check if the character is a vowel (a, e, i, o, u)

  • Count the number of vowels found in the string

Q86. how you resolved those exceptions

Ans.

I resolved exceptions by identifying root cause, debugging code, and implementing appropriate fixes.

  • Identified the root cause of the exception by analyzing logs and code

  • Debugged the code to understand the flow and pinpoint the issue

  • Implemented appropriate fixes such as updating code logic or configuration settings

Q87. Difference in 200,201 and 204 HTTP codes

Ans.

200 - OK, 201 - Created, 204 - No Content

  • 200 - Successful response, request was successful

  • 201 - Resource created successfully

  • 204 - No content to send in the response, successful request but no data to return

Q88. What is state and stateless widget

Ans.

Stateful widgets maintain state that can change during the lifetime of the widget, while stateless widgets do not have any internal state.

  • Stateful widgets have a createState() method that returns a State object, which can hold mutable state data.

  • Stateless widgets are immutable and their properties are set at the time of creation.

  • Stateful widgets are used when the UI needs to update based on user interactions or other events.

  • Stateless widgets are used for static content that d...read more

Q89. Write java program to print patterns

Ans.

Java program to print patterns using loops

  • Use nested loops to print the desired pattern

  • Patterns can be created using characters or numbers

  • Patterns can be simple shapes or more complex designs

Q90. Write java program to reverse a string

Ans.

Java program to reverse a string using StringBuilder

  • Create a StringBuilder object with the input string

  • Use the reverse() method of StringBuilder to reverse the string

  • Convert the reversed StringBuilder object back to a string using toString()

Q91. Exceptions encountered during Automation.

Ans.

Exceptions encountered during automation testing can include element not found, timeout, invalid input, etc.

  • ElementNotVisibleException: When an element is present in the DOM but not visible on the page

  • TimeoutException: When a command takes longer than the timeout specified

  • NoSuchElementException: When an element could not be found in the DOM

  • StaleElementReferenceException: When an element is no longer attached to the DOM

  • InvalidInputException: When invalid input is provided to a...read more

Q92. How to solve array subset?

Ans.

To solve array subset problem, use a combination of iteration and comparison to find all possible subsets.

  • Iterate through the array and generate all possible subsets using bitwise manipulation or recursion.

  • Compare each subset with the target subset to check for a match.

  • Return true if a matching subset is found, otherwise return false.

Q93. How to solve palindrome?

Ans.

A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backward.

  • Check if the given string is equal to its reverse

  • Ignore spaces and punctuation when checking for palindromes

  • Convert the string to lowercase before checking for palindrome

Q94. How to solve sum problem?

Ans.

To solve a sum problem, you need to add the numbers together.

  • Identify the numbers that need to be added together.

  • Add the numbers using the appropriate mathematical operation.

  • Check your answer for accuracy.

Q95. What is Oops concept?

Ans.

Oops concept is a programming paradigm that focuses on objects and their interactions to solve problems.

  • Oops stands for Object-Oriented Programming System.

  • It emphasizes the use of classes and objects to structure code.

  • Encapsulation, inheritance, and polymorphism are key concepts in OOP.

  • Encapsulation hides the internal details of an object and provides a public interface.

  • Inheritance allows classes to inherit properties and behaviors from other classes.

  • Polymorphism enables obje...read more

Frequently asked in, ,

Q96. What is test life cycle?

Ans.

Test life cycle is a series of phases that a software testing process goes through, from planning to test closure.

  • Test life cycle includes test planning, test design, test execution, and test closure.

  • In test planning, test objectives, scope, and test strategy are defined.

  • Test design involves creating test cases and test data.

  • Test execution is the phase where tests are executed and defects are logged.

  • Test closure includes test summary report, defect analysis, and lessons learn...read more

Q97. What is When in cucumber?

Ans.

When in Cucumber is a keyword used to define the conditions under which a particular step or scenario should be executed.

  • When is used to specify the triggering event or condition for a step or scenario

  • It is followed by a regular expression or a Cucumber expression

  • When can be used to perform actions or set up preconditions before executing the step or scenario

  • It can also be used to pass parameters to the step definition

Q98. what is test scenario,test case.

Ans.

Test scenario is a high-level description of the functionality to be tested, while test case is a detailed step-by-step procedure to validate the functionality.

  • Test scenario is a broad description of what needs to be tested, while test case is a detailed set of steps to verify a specific aspect of the scenario.

  • Test scenario is usually written in a more general and abstract way, while test case is more specific and concrete.

  • Test scenario helps in understanding the scope of tes...read more

Q99. Write query to fetch duplicate records from table

Ans.

Use GROUP BY and HAVING clause to fetch duplicate records from a table

  • Use GROUP BY clause to group records with same values

  • Use HAVING clause to filter out groups with count greater than 1

  • Example: SELECT column_name, COUNT(column_name) FROM table_name GROUP BY column_name HAVING COUNT(column_name) > 1

Q100. Journey through school life till now

Ans.

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

Previous
1
2
3
4
5
Next
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.7
 • 10.4k Interviews
3.6
 • 7.5k Interviews
3.7
 • 5.6k Interviews
4.1
 • 5k Interviews
3.7
 • 4.8k Interviews
3.7
 • 848 Interviews
3.7
 • 535 Interviews
3.9
 • 316 Interviews
View all

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

Recently Viewed
INTERVIEWS
DRN Infrastructure
No Interviews
INTERVIEWS
Blinkit
No Interviews
REVIEWS
Amazon
No Reviews
INTERVIEWS
Merino Laminates
No Interviews
INTERVIEWS
Amazon
No Interviews
INTERVIEWS
Blinkit
No Interviews
DESIGNATION
INTERVIEWS
American Express
No Interviews
JOBS
Cashfree Holiday Planners
No Jobs
INTERVIEWS
Amazon
No Interviews
Sdet Automation Test Engineer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter