Sdet (Software Development Engineer in Test)

50+ Sdet (Software Development Engineer in Test) Interview Questions and Answers

Updated 15 Jul 2025
search-icon

Asked in Deloitte

3d ago

Q. How can you send values without using the sendKeys method?

Ans.

Values can be sent without using sendkeys method by directly manipulating the DOM or using JavaScriptExecutor.

  • Use JavaScriptExecutor to execute JavaScript code to set values of input fields.

  • Find the element using appropriate locators and then use JavaScriptExecutor to set the value.

  • Example: driver.executeScript("document.getElementById('elementId').value='text'");

Asked in Deloitte

5d ago

Q. 13) What is requestSpecification? What is serialization and how to achieve this?

Ans.

requestSpecification is a class in RestAssured library used to define the request details for API testing.

  • It is used to set the base URI, path, headers, query parameters, etc. for the API request.

  • It allows customization of the request before sending it.

  • Serialization is the process of converting an object into a format that can be stored or transmitted.

  • In API testing, serialization is used to convert Java objects into JSON or XML format for API request or response.

  • To achieve s...read more

Sdet (Software Development Engineer in Test) Interview Questions and Answers for Freshers

illustration image
1d ago

Q. What exceptions have you encountered in Selenium automation?

Ans.

Common exceptions in Selenium automation include NoSuchElementException, TimeoutException, and StaleElementReferenceException.

  • NoSuchElementException occurs when an element cannot be found in the DOM.

  • TimeoutException occurs when a command takes longer than the timeout value to complete.

  • StaleElementReferenceException occurs when an element is no longer attached to the DOM.

  • Other exceptions include ElementNotVisibleException, ElementNotSelectableException, and WebDriverException.

Asked in Deloitte

6d ago

Q. What steps are needed to post a value to a server?

Ans.

To post a value in a server, you need to consider the endpoint, request method, headers, body, and authentication.

  • Identify the endpoint where the value needs to be posted

  • Choose the appropriate request method (e.g., POST)

  • Set the necessary headers (e.g., Content-Type)

  • Construct the body payload with the value to be posted

  • Handle authentication if required (e.g., API key, token)

Are these interview questions helpful?

Q. Coding 1. Sort an array 2. Count number of times each user logged in from a log file. 3. Print the name and length of each name from the same log file.

Ans.

Coding questions for SDET interview

  • 1. Use built-in sorting functions like Array.sort()

  • 2. Read log file line by line and count occurrences of each user

  • 3. Parse log file to extract names and use string.length to get length

Asked in Deloitte

4d ago

Q. 12) What is rest-assured? How to handle the certificate issues in rest-assured?

Ans.

Rest-assured is a Java-based library used for testing RESTful APIs.

  • Rest-assured simplifies the testing of RESTful APIs by providing a domain-specific language (DSL) for writing tests.

  • To handle certificate issues in rest-assured, we can use the relaxedHTTPSValidation() method to bypass SSL certificate validation.

  • We can also import the certificate into the truststore and use it for SSL validation.

Sdet (Software Development Engineer in Test) Jobs

Uplers logo
SDET (Software Development Engineer in Test) 4-8 years
Uplers
3.9
₹ 30 L/yr - ₹ 45 L/yr
Mumbai
SOURCERIGHT TECHNOLOGIES (INDIA) PRIVATE LIMITED logo
SDET (Software Development Engineer in Test) 4-9 years
SOURCERIGHT TECHNOLOGIES (INDIA) PRIVATE LIMITED
5.0
Gurgaon / Gurugram
R3 logo
Senior QA SDET (Software Development Engineer in Test) 4-6 years
R3
3.7
Mumbai

Q. How do you ensure a file has been transferred from one client to another over a server without any corruption?

Ans.

To ensure file transfer without corruption, use checksums, error detection codes, and data validation techniques.

  • Calculate and compare checksums before and after transfer

  • Use error detection codes like CRC or MD5

  • Implement data validation techniques like parity checks or hash functions

  • Verify file integrity using digital signatures or secure hash algorithms

Asked in Gainsight

1d ago

Q. 1. Find triplet in an array to sum up to a given number?

Ans.

Find triplet in an array to sum up to a given number.

  • Sort the array in ascending order.

  • Iterate through the array and fix the first element.

  • Use two pointers approach to find the other two elements that sum up to the given number.

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Asked in Deloitte

5d ago

Q. How do you implement a test automation framework?

Ans.

Test automation framework can be implemented by following these steps:

  • Identify the testing requirements

  • Choose the appropriate tools and technologies

  • Design the framework architecture

  • Develop and integrate the framework components

  • Create test scripts and execute them

  • Integrate with CI/CD pipeline

  • Maintain and update the framework regularly

Asked in Deloitte

2d ago

Q. Why is the return type of the windowHandles method a Set?

Ans.

The windowHandles method returns a set of window handles as a set of strings.

  • The windowHandles method is used to retrieve all the window handles of the current session.

  • The return type is set because it ensures that each window handle is unique and there are no duplicates.

  • The set data structure allows for efficient retrieval and manipulation of window handles.

  • Example: Set<String> handles = driver.getWindowHandles();

Asked in Deloitte

3d ago

Q. Where have you faced ArrayIndexOutOfBoundsException in your project?

Ans.

I faced arrayIndexOutOfBoundary exception while accessing an array element beyond its size.

  • The exception occurred when trying to access an array element at an index greater than or equal to its size.

  • To fix it, I checked the array size before accessing its elements.

  • I also made sure to properly initialize the array with the correct size.

  • Example: String[] arr = new String[5]; arr[5] = "hello"; // throws exception

Q. Coding: 1. Remove the duplicate characters from a string. 2. Sort an array 3. Find the indices of resulting sum. 4. Find the equilibrium point of a list/array

Ans.

Coding questions related to string manipulation, array sorting, and finding indices and equilibrium point.

  • To remove duplicate characters from a string, use a hash set to keep track of seen characters and remove duplicates.

  • To sort an array, use built-in sorting functions or implement a sorting algorithm like quicksort or mergesort.

  • To find the indices of resulting sum, use a hash map to store the complement of each element and check if it exists in the map.

  • To find the equilibri...read more

Asked in Indeed

3d ago

Q. Given a string, encrypt it based on defined rows and columns. Input String: 'One Does not simply walk Into mordor.', rows = 6, cols = 6. How would you implement this encryption?

Ans.

Encrypt a given string based on rows and columns defined.

  • Create a 2D array with given rows and columns

  • Traverse the string and fill the array row-wise

  • Read the array column-wise to get the encrypted string

Asked in McAfee

6d ago

Q. What if a reported bug is rejected by the developer and not considered a bug?

Ans.

Discuss with the developer and provide evidence to support the bug report.

  • Communicate with the developer to understand their perspective

  • Provide evidence to support the bug report

  • Collaborate with the developer to find a solution

  • If necessary, escalate the issue to a higher authority

Q. Given n teams in an IPL tournament (n &gt;= 4), where each team plays every other team twice, the top four teams qualify for the playoffs. The top two teams play the first playoff, and the 3rd and 4th teams play t...

read more
Ans.

Function to determine winner of IPL tournament with n teams following given rules.

  • Create a matrix to store the results of each match played between teams

  • Calculate the total points of each team based on the results of their matches

  • Sort the teams based on their total points and select the top four teams

  • Determine the winners of the playoffs based on the given rules

  • Return the winner of the tournament

  • Example: input n=6, output 'Team X'

Asked in Deloitte

3d ago

Q. How do you rerun failed test cases in TestNG?

Ans.

Failed test cases can be rerun in TestNG using the 'rerun-failed.xml' file.

  • Create a new XML file named 'rerun-failed.xml'

  • Add the failed test cases to the XML file using the 'include' tag

  • Run the 'rerun-failed.xml' file using TestNG

Asked in Deloitte

4d ago

Q. 18) What is jenkins? Explain the git pipeline?

Ans.

Jenkins is an open-source automation server that helps to automate parts of the software development process.

  • Jenkins is used for continuous integration and continuous delivery (CI/CD) of software projects.

  • It can be integrated with Git to create a pipeline for building, testing, and deploying code.

  • The Git pipeline in Jenkins involves creating a Jenkinsfile that defines the stages of the pipeline, such as checkout, build, test, and deploy.

  • Jenkins can also be used to automate ta...read more

Q. How do you filter all the files in a directory that end with amazon.txt in a Unix based shell?

Ans.

Filter files ending with amazon.txt in Unix shell

  • Use the 'ls' command to list all files in the directory

  • Use the 'grep' command to filter files ending with 'amazon.txt'

  • Combine the two commands using a pipe '|' symbol

Asked in Deloitte

4d ago

Q. How do you prioritize test cases in TestNG?

Ans.

Test cases can be prioritized in TestNG using priority attribute.

  • Add priority attribute to @Test annotation

  • Test cases with lower priority value will be executed first

  • Priority can be any integer value, default is 0

Q. Given two strings, find the common substrings and print them in alphabetical order.

Ans.

Find common sub-strings in two strings and print them in alphabetical order.

  • Use a nested loop to compare each character of both strings.

  • Store common sub-strings in an array.

  • Sort the array in alphabetical order.

  • Print the sorted array.

Asked in MasterCard

3d ago

Q. Describe a situation where you used brute force to solve a problem involving sorting and frequency checking, ensuring the frequency of each number did not exceed the array's length.

Ans.

Sort the array and check frequency of numbers not exceeding array length.

  • Sort the array to arrange numbers in ascending order.

  • Count the frequency of each number using a hash map or dictionary.

  • Ensure that no number exceeds the length of the array.

  • Example: For array [3, 1, 2, 2], sorted is [1, 2, 2, 3]. Frequencies: 1->1, 2->2, 3->1.

  • If any number is greater than the array length, return false.

Asked in LiveVox

1d ago

Q. What is an Abstract Class and an Interface? What are the differences between them?

Ans.

Abstract class is a class that cannot be instantiated and Interface is a blueprint of a class.

  • Abstract class can have both abstract and non-abstract methods while Interface can only have abstract methods.

  • A class can implement multiple interfaces but can only inherit from one abstract class.

  • Abstract class can have constructors while Interface cannot.

  • Abstract class can have instance variables while Interface cannot.

  • Abstract class is used for code reusability while Interface is ...read more

Asked in Info Edge

4d ago

Q. Write an SQL query to get the second largest salary of an employee from the employee table.

Ans.

SQL query to get second largest salary of an employee from employee table

  • Use ORDER BY and LIMIT to get the second highest salary

  • SELECT MAX(salary) FROM employee WHERE salary < (SELECT MAX(salary) FROM employee)

  • Use subquery to get the highest salary and then exclude it to get the second highest salary

Asked in Deloitte

4d ago

Q. How do you achieve parallel testing?

Ans.

Parallel testing can be achieved by dividing test cases into smaller chunks and running them simultaneously on multiple machines.

  • Divide test cases into smaller chunks

  • Use a test framework that supports parallel testing

  • Run tests on multiple machines or virtual machines

  • Ensure tests do not interfere with each other

  • Aggregate test results from all machines

Asked in Temenos

3d ago

Q. What is the difference between HTTP and HTTPS?

Ans.

HTTP is a protocol for transmitting data over the internet, while HTTPS is a secure version of HTTP that encrypts the data.

  • HTTP stands for Hypertext Transfer Protocol, while HTTPS stands for Hypertext Transfer Protocol Secure.

  • HTTP operates on port 80, while HTTPS operates on port 443.

  • HTTP is not secure and data is transmitted in plain text, while HTTPS uses SSL/TLS encryption to secure the data transmission.

  • HTTPS is commonly used for secure transactions, such as online bankin...read more

Asked in Gainsight

4d ago

Q. Write an SQL query to find the aggregate salary for each division.

Ans.

SQL query to find aggregate salary for a division

  • Use the GROUP BY clause to group the employees by division

  • Use the SUM function to calculate the total salary for each division

  • Include the division column in the SELECT statement

  • Example: SELECT division, SUM(salary) AS total_salary FROM employees GROUP BY division

Q. List out all the test scenarios that need to be covered to ensure a mobile application is ready for release.

Ans.

List of test scenarios for mobile app release

  • Functional testing of all features

  • Usability testing for ease of use

  • Compatibility testing on different devices and OS versions

  • Performance testing for speed and responsiveness

  • Security testing for data protection

  • Localization testing for language and cultural differences

  • Regression testing to ensure no new bugs introduced

  • Accessibility testing for users with disabilities

Asked in Cisco

2d ago

Q. how to reverse the link list? find all possible sub sequences in a given array

Ans.

Reverse a linked list and find all possible subsequences in a given array.

  • To reverse a linked list, iterate through the list and change the next pointers of each node to the previous node.

  • To find all possible subsequences in an array, use recursion and generate all possible combinations of elements.

  • For example, given the array [1, 2, 3], the possible subsequences are [], [1], [2], [3], [1, 2], [1, 3], [2, 3], [1, 2, 3].

Asked in Deloitte

3d ago

Q. Explain the git flow in your project.

Ans.

Git flow is a branching model for software development.

  • Git flow consists of two main branches: master and develop.

  • Feature branches are created off of develop and merged back into it.

  • Release branches are created off of develop for preparing a new release.

  • Hotfix branches are created off of master to fix critical issues in production.

  • Git flow helps to maintain a structured and organized workflow for development.

  • Example: git flow init, git flow feature start , git flow release st...read more

Asked in MasterCard

4d ago

Q. Given a multi-dimensional integer array, find a sub-Sudoku within it.

Ans.

Finding sub sudoko in a multi-dimensional integer array.

  • Iterate through each row and column to find sub-sudoku

  • Check if each sub-grid contains all numbers from 1 to 9

  • If yes, then it is a sub-sudoku

  • If no, then move to the next sub-grid

1
2
Next

Interview Experiences of Popular Companies

LTIMindtree Logo
3.7
 • 3k Interviews
Deloitte Logo
3.7
 • 3k Interviews
Mphasis Logo
3.3
 • 852 Interviews
Wells Fargo Logo
3.8
 • 622 Interviews
Cisco Logo
4.2
 • 386 Interviews
View all

Top Interview Questions for Sdet (Software Development Engineer in Test) Related Skills

Interview Tips & Stories
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Sdet (Software Development Engineer in Test) 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