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

Asked in Deloitte

Q. How can you send values without using the sendKeys method?
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

Q. 13) What is requestSpecification? What is serialization and how to achieve this?
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

Asked in Flatirons Solutions

Q. What exceptions have you encountered in Selenium automation?
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

Q. What steps are needed to post a value to a server?
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)

Asked in Barco Electronic Systems

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

Q. 12) What is rest-assured? How to handle the certificate issues in rest-assured?
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



Asked in Merraky Engineering Solutions

Q. How do you ensure a file has been transferred from one client to another over a server without any corruption?
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

Q. 1. Find triplet in an array to sum up to a given number?
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 🌟

Asked in Deloitte

Q. How do you implement a test automation framework?
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

Q. Why is the return type of the windowHandles method a Set?
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

Q. Where have you faced ArrayIndexOutOfBoundsException in your project?
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

Asked in Barco Electronic Systems

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

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?
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

Q. What if a reported bug is rejected by the developer and not considered a bug?
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
Asked in Merraky Engineering Solutions

Q. Given n teams in an IPL tournament (n >= 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 moreFunction 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

Q. How do you rerun failed test cases in TestNG?
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

Q. 18) What is jenkins? Explain the git pipeline?
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

Asked in Test Yantra Software Solutions

Q. How do you filter all the files in a directory that end with amazon.txt in a Unix based shell?
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

Q. How do you prioritize test cases in TestNG?
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

Asked in Test Yantra Software Solutions

Q. Given two strings, find the common substrings and print them in alphabetical order.
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

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

Q. What is an Abstract Class and an Interface? What are the differences between them?
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

Q. Write an SQL query to get the second largest salary of an employee from the employee table.
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

Q. How do you achieve parallel testing?
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

Q. What is the difference between HTTP and HTTPS?
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

Q. Write an SQL query to find the aggregate salary for each division.
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

Asked in Test Yantra Software Solutions

Q. List out all the test scenarios that need to be covered to ensure a mobile application is ready for release.
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

Q. how to reverse the link list? find all possible sub sequences in a given array
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

Q. Explain the git flow in your project.
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

Q. Given a multi-dimensional integer array, find a sub-Sudoku within it.
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
Interview Experiences of Popular Companies





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



Reviews
Interviews
Salaries
Users

