Sdet Automation Test Engineer

200+ Sdet Automation Test Engineer Interview Questions and Answers

Updated 6 Jul 2025
search-icon
1w ago

Q. Given an array containing only 1's and 0's, how would you separate the 1's and 0's with minimal complexity?

Ans.

Use two pointers approach to separate 1's and 0's in an array of strings with minimal complexity.

  • Initialize two pointers, one at the beginning and one at the end of the array.

  • Move the left pointer until it encounters a '0' and the right pointer until it encounters a '1'.

  • Swap the elements at the left and right pointers, then move the pointers towards each other until they meet in the middle.

Asked in Amazon

5d ago

Q. How is the proxy configured for the device?

Ans.

Proxy configuration for devices involves setting up a server to route network requests, enhancing security and performance.

  • Identify the proxy server address and port number (e.g., 192.168.1.1:8080).

  • Configure the device's network settings to use the proxy (e.g., in Wi-Fi settings on mobile devices).

  • Test the connection to ensure traffic is routed through the proxy (e.g., using a browser to check IP).

  • Consider authentication if required by the proxy (e.g., username and password)....read more

Asked in Paytm

1d ago

Q. What is regression testing, automation testing

Ans.

Regression testing is retesting software to ensure new changes haven't affected existing functionality. Automation testing is using tools to execute test cases.

  • Regression testing ensures that new code changes haven't affected existing functionality

  • Automation testing involves using tools to execute test cases automatically

  • Regression testing is often performed after code changes or updates

  • Automation testing helps in saving time and effort by automating repetitive test cases

  • Exam...read more

Asked in Amazon

1w ago

Q. You are given the root of a binary tree. Imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.

Ans.

Implement a function to return the right view of a binary tree.

  • Use a level order traversal (BFS) to explore the tree.

  • Keep track of the last node at each level to form the right view.

  • Utilize a queue to facilitate the traversal of nodes level by level.

  • Example: For the tree [1, 2, 3, null, 5, null, 4], the right view is [1, 3, 4].

Are these interview questions helpful?

Asked in Cisco

6d ago

Q. Can we have multiple return types in Python?

Ans.

Python functions can return multiple values using tuples, lists, or dictionaries, allowing flexibility in return types.

  • Python functions can return multiple values as a tuple: `def func(): return 1, 2`.

  • You can also return a list: `def func(): return [1, 2, 3]`.

  • Returning a dictionary allows named access: `def func(): return {'a': 1, 'b': 2}`.

  • Using `*args` and `**kwargs` allows for variable-length arguments and keyword arguments.

  • Functions can return different types: `def func():...read more

Asked in Druva

1d ago

Q. Why Python and not other languages?

Ans.

Python is a popular choice for automation testing due to its simplicity, readability, extensive libraries, and cross-platform compatibility.

  • Python has a simple and readable syntax, making it easy to write and understand test scripts.

  • Python has a large number of libraries and frameworks specifically designed for automation testing, such as Selenium and PyTest.

  • Python is cross-platform compatible, allowing tests to be run on different operating systems.

  • Python integrates well wit...read more

Sdet Automation Test Engineer Jobs

Broadridge logo
Sdet Automation Test Engineer 1-3 years
Broadridge
3.9
Bangalore / Bengaluru
Wissen Infotech logo
Sdet Automation Test Engineer 5-10 years
Wissen Infotech
3.7
₹ 18 L/yr - ₹ 33 L/yr
Bangalore / Bengaluru
Clover Infotech logo
Sdet Automation Test Engineer 5-10 years
Clover Infotech
3.5
Bangalore / Bengaluru

Q. In Python, explain how to take input from the user.

Ans.

Use the input() function in Python to take input from the user.

  • Use the input() function to prompt the user for input and store the input in a variable.

  • You can specify a prompt message inside the input() function to guide the user on what to input.

  • The input() function always returns a string, so you may need to convert the input to the desired data type if needed.

Asked in Carrier

2w ago

Q. 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

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Asked in Axeno

1w ago

Q. What is React JS and why is it used?

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.

Asked in Vantiva

1w ago

Q. What is the 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

Asked in Amazon

2w ago

Q. 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

Asked in SDET Tech

1d ago

Q. 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

2w ago

Q. How would you automate filters on a 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

Q. What are the differences between smoke and sanity testing?

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

1w ago

Q. How is data 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

Asked in NTT

6d ago

Q. 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).

1w ago

Q. How would you automate data processing 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

Asked in CBRE

1w ago

Q. 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

Asked in TCS iON

2w ago

Q. 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

Asked in Amazon

6d ago

Q. 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

Asked in Info Edge

2w ago

Q. 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

2w ago

Q. What is the 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

Asked in Amazon

1w ago

Q. 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

1w ago

Q. How do you implement the POM pattern 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

2w ago

Q. Explain the difference between a scenario and a scenario outline in Cucumber.

Ans.

Cucumber scenarios define test cases, while scenario outlines allow parameterization for multiple data sets.

  • A scenario is a single test case written in Gherkin syntax, e.g., 'Given I am on the login page.'

  • A scenario outline is used to run the same scenario multiple times with different inputs, e.g., 'Scenario Outline: Login'

  • Example of scenario outline: 'Given I enter <username> and <password>' with examples table for different user credentials.

  • Scenarios are useful for specifi...read more

Asked in Amazon

5d ago

Q. Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the...

read more
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.

Q. 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

Q. How do you open a specific page and inspect a link element?

Ans.

Inspecting elements on a webpage helps identify links and their attributes for automation testing.

  • Use browser developer tools (F12) to open the inspector.

  • Navigate to the 'Elements' tab to view the HTML structure.

  • Right-click on the link element to view its properties.

  • Check attributes like 'href', 'target', and 'class' for automation scripts.

  • Use the 'Console' tab to test JavaScript commands related to the link.

Asked in IBM

6d ago

Q. Write a program to find repeated characters 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

1w ago

Q. Write a recursive function to check if a string is a palindrome.

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

Previous
1
2
3
4
5
6
7
Next

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Infosys Logo
3.6
 • 7.9k Interviews
Wipro Logo
3.7
 • 6.1k Interviews
Amazon Logo
4.0
 • 5.4k Interviews
Capgemini Logo
3.7
 • 5.1k Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

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

Sdet Automation Test Engineer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

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

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits