Senior Sdet Engineer

90+ Senior Sdet Engineer Interview Questions and Answers

Updated 2 Jul 2025
search-icon

Asked in PubMatic

2d ago

Q. How would you optimize an existing system that makes an API call, stores data in memory, and serves requests by searching the entire memory?

Ans.

Implement a data structure like a hash table or a cache to optimize memory search.

  • Use a hash table to store the data with keys as memory locations

  • Implement a cache to store frequently accessed data for faster retrieval

  • Consider using indexing or sorting techniques to optimize search operations

6d ago

Q. Embedded systems concepts What is volatile? Statics? Storages classes? Difference between? Extern keyword? Etc.

Ans.

Volatile and static are storage classes in C/C++ that affect variable visibility and lifetime in embedded systems.

  • Volatile: Tells the compiler that a variable may change unexpectedly, preventing optimization.

  • Example: 'volatile int sensorValue;' - used for variables that can be changed by hardware.

  • Static: Limits the visibility of a variable to the file or function it is declared in, retaining its value between function calls.

  • Example: 'static int count = 0;' - count retains its...read more

Senior Sdet Engineer Interview Questions and Answers for Freshers

illustration image

Asked in Capgemini

5d ago

Q. Write code to split a string into individual letters, each on a new line.

Ans.

Code to split a string into one letter per line in an array of strings.

  • Use the split() method to split the string into an array of characters.

  • Iterate through the array and add each character to a new array as a separate string.

Asked in Capgemini

2d ago

Q. Write the XPath of an element from amazon.in page manually, without copying.

Ans.

Xpath of an element from amazon.in page

  • Start with the root element using '/'

  • Use '//' to select any element in the document

  • Use '@' to select attributes

  • Use '[]' for conditions

  • Example: //div[@id='nav-logo']

Are these interview questions helpful?
6d ago

Q. What is Selenium, and how is it used in automation testing?

Ans.

Selenium is a popular open-source tool used for automating web browsers in software testing.

  • Selenium is used to automate web browsers for testing purposes.

  • It supports multiple programming languages like Java, Python, C#, etc.

  • Selenium can interact with web elements, simulate user actions, and validate expected outcomes.

  • It can be integrated with testing frameworks like TestNG or JUnit for test execution and reporting.

  • Selenium WebDriver is the most commonly used component for wr...read more

5d ago

Q. Write Java code to reverse a string without using any built-in methods.

Ans.

Reverse a string input without using any inbuilt method in Java

  • Create a char array from the input string

  • Use two pointers to swap characters from start and end of the array

  • Continue swapping until the pointers meet in the middle

Senior Sdet Engineer Jobs

Entrata India Private Limited logo
Senior SDET Engineer - Mobile 5-10 years
Entrata India Private Limited
4.1
Pune
ACL Digital logo
Senior Sdet Engineer 5-10 years
ACL Digital
3.6
Pune
Fynxt logo
Senior SDET Engineer 9-14 years
Fynxt
3.6
Chennai

Asked in S&P Global

2d ago

Q. How can pop-ups and certificates be managed in Selenium?

Ans.

Manage pop-ups and certificates in Selenium using specific methods for handling alerts and configuring browser settings.

  • Use driver.switchTo().alert() to handle JavaScript pop-ups.

  • Example: Alert alert = driver.switchTo().alert(); alert.accept();

  • For file upload pop-ups, use sendKeys() to set the file path directly.

  • Example: driver.findElement(By.id('upload')).sendKeys('/path/to/file');

  • To manage SSL certificates, configure browser options before launching.

  • Example: ChromeOptions o...read more

Asked in S&P Global

3d ago

Q. What is upstream and downstream application testing?

Ans.

Upstream testing focuses on early development stages, while downstream testing validates final product functionality.

  • Upstream testing occurs during the initial phases of software development, such as requirements gathering and design.

  • Downstream testing takes place after the software is developed, focusing on integration, system, and user acceptance testing.

  • Example of upstream testing: Reviewing requirements documents to ensure they are clear and testable.

  • Example of downstream...read more

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Asked in WESCO

4d ago

Q. Can we run tests locally without an environment?

Ans.

Yes, we can run tests locally without environment by using mock objects or stubs.

  • Use mock objects or stubs to simulate the behavior of external dependencies

  • Mocking frameworks like Mockito or Sinon can be used to create mock objects

  • Avoid relying on external services or databases for local testing

Asked in Leena AI

1d ago

Q. Write manual test cases for WhatsApp security features.

Ans.

Manual test cases for WhatsApp security features

  • Verify end-to-end encryption is enabled for all messages

  • Test two-factor authentication setup and login process

  • Check for secure storage of user data on the device

  • Test for secure transmission of media files

  • Verify the effectiveness of blocking and reporting features

3d ago

Q. Write code to automate a website provided by the interviewer.

Ans.

Automate a website using code

  • Use Selenium WebDriver to automate interactions with the website

  • Identify elements on the website using CSS selectors or XPaths

  • Perform actions like clicking buttons, filling forms, and verifying text

  • Handle waits for elements to load properly

  • Use programming languages like Java, Python, or JavaScript for scripting

Asked in Razorpay

6d ago

Q. How would you write integration test cases for A --> B --> C microservices?

Ans.

Write integration testcases for A-->B-->C microservices

  • Test the communication between A and B microservices

  • Test the data flow from B to C microservices

  • Verify the response of C microservice based on input from A

  • Check for error handling and edge cases in the integration flow

Asked in EPAM Systems

5d ago

Q. Write code to create a class, test methods, create an object, and call the methods.

Ans.

Create a class, test methods, create object, and call them in code.

  • Create a class with properties and methods

  • Write test methods to test the functionality of the class

  • Instantiate an object of the class and call its methods

2d ago

Q. Write a function to reverse a string and add a star between each character.

Ans.

Reverses strings in an array and adds stars between characters

  • Iterate through each string in the array

  • Reverse each string using built-in functions or manual reversal

  • Add stars between characters in the reversed string

  • Return the modified array of strings

5d ago

Q. Can you provide an example of method overloading within your framework?

Ans.

Method overloading allows multiple methods with the same name but different parameters in a class.

  • Method overloading in our framework allows us to create multiple methods with the same name but different parameters.

  • For example, we can have a method 'calculate' that can take different types of parameters like int, double, or string.

  • This helps in improving code readability and reusability.

  • Method overloading is resolved at compile time based on the number and type of arguments p...read more

Asked in Netomi

1d ago

Q. Can we perform data-driven testing using Postman?

Ans.

Yes, Postman supports data driven testing through the use of variables and data files.

  • Postman allows users to define variables and use them in requests for data driven testing.

  • Data files such as CSV or JSON can be imported into Postman to drive test data.

  • Iterations can be set up in Postman to run tests with different data sets.

Asked in Leena AI

3d ago

Q. What is Build testing, shift left testing

Ans.

Build testing is testing the software build to ensure it meets requirements. Shift left testing is moving testing earlier in the development process.

  • Build testing involves testing the software build to ensure it meets functional and non-functional requirements

  • Shift left testing is the practice of moving testing activities earlier in the software development process to catch defects sooner

  • By shifting testing left, defects are identified and fixed earlier, reducing the cost and...read more

Asked in Netomi

3d ago

Q. Given an integer array containing numbers from 0 to n, with one number missing, how do you find the missing number?

Ans.

Identify missing numbers in an integer array using various methods.

  • Use a set to track numbers: Convert the array to a set and check against the expected range.

  • Mathematical approach: Calculate the expected sum of numbers and subtract the actual sum.

  • Sorting method: Sort the array and compare each element with its index to find missing numbers.

  • Example: For array [1, 2, 4, 6], missing numbers are 3 and 5.

Asked in TCS

4d ago

Q. How do you handle exceptions in Java?

Ans.

In Java, exceptions are handled using try-catch blocks, allowing graceful error management and maintaining program flow.

  • Use try-catch blocks to catch exceptions: try { // code that may throw an exception } catch (ExceptionType e) { // handle exception }

  • Use finally block for cleanup: try { // code } catch (Exception e) { // handle exception } finally { // cleanup code }

  • Throw exceptions using 'throw' keyword: throw new ExceptionType("Error message");

  • Create custom exceptions by ...read more

Asked in IBM

4d ago

Q. What is cassandra and what is it used for.

Ans.

Cassandra is a distributed NoSQL database management system designed for handling large amounts of data across multiple servers.

  • Cassandra is used for storing and managing large amounts of structured data across multiple commodity servers.

  • It provides high availability and fault tolerance with no single point of failure.

  • Cassandra is commonly used for real-time analytics, IoT data, messaging platforms, and more.

  • It uses a decentralized architecture with a masterless design, allow...read more

3d ago

Q. How do you access static variables and methods?

Ans.

Static variables and methods can be accessed using the class name directly.

  • Use the class name followed by a dot operator to access static variables and methods.

  • No instance of the class is required to access static members.

  • Example: ClassName.staticVariableName or ClassName.staticMethodName()

Q. Write a Java program to print words by ascending count value.

Ans.

Java program to print words by ascending count value

  • Create a HashMap to store word frequencies

  • Iterate through the array of strings and update the frequencies in the HashMap

  • Use a TreeMap to sort the HashMap by values in ascending order

  • Print the words in ascending count value order

Asked in Mphasis

3d ago

Q. Write an XPath expression on a given platform using axes.

Ans.

XPath expressions use axes to navigate XML documents, selecting nodes based on their relationships.

  • Axes define the node set relative to the current node, e.g., 'child', 'parent', 'ancestor'.

  • Example: //book/child::title selects all title elements that are children of book elements.

  • Example: //book/ancestor::library selects all library elements that are ancestors of book elements.

  • Using 'following-sibling', e.g., //h1/following-sibling::p selects all paragraph siblings after h1.

Asked in Cognizant

2d ago

Q. What is the difference between StringBuffer and StringBuilder?

Ans.

String buffer is synchronized and thread-safe, while string builder is not synchronized and faster.

  • String buffer is synchronized, making it thread-safe for use in multi-threaded environments.

  • String builder is not synchronized, making it faster but not thread-safe.

  • String builder is preferred for single-threaded operations due to its faster performance.

  • String buffer is used when thread safety is required, even though it may be slower in some cases.

Asked in Gupshup

5d ago

Q. How to log latency for an api. Tinyurl system design

Ans.

To log latency for an API, you can use logging frameworks like Log4j or SLF4J to record timestamps before and after the API call.

  • Use a logging framework like Log4j or SLF4J to record timestamps before and after the API call

  • Calculate the latency by subtracting the timestamps

  • Include the latency information in the log message for monitoring and analysis

Asked in Poshs Cinoti

1d ago

Q. Explain how to scroll a web element.

Ans.

To scroll a web element, use actions class to perform scroll actions

  • Create an instance of Actions class

  • Use moveToElement() method to move to the desired element

  • Perform scroll actions using sendKeys(Keys.ARROW_DOWN) or sendKeys(Keys.PAGE_DOWN)

  • Example: Actions actions = new Actions(driver); actions.moveToElement(element).sendKeys(Keys.ARROW_DOWN).perform();

Asked in Birlasoft

6d ago

Q. What is the difference between implicit and explicit wait?

Ans.

Implicit wait is set globally for all elements, while explicit wait is applied only to specific elements.

  • Implicit wait is set using driver.manage().timeouts().implicitlyWait() method

  • Explicit wait is set using WebDriverWait class with ExpectedConditions

  • Implicit wait is applied globally to all elements, while explicit wait is applied only to specific elements

  • Implicit wait is used to wait for elements to load before performing actions, while explicit wait is used to wait for spe...read more

Asked in Infosys

6d ago

Q. What is the difference between an Interface and an Abstraction?

Ans.

Interfaces define contracts for classes, while abstraction hides implementation details, focusing on essential features.

  • An interface can contain method signatures but no implementation, e.g., 'public interface Animal { void makeSound(); }'

  • Abstraction can be achieved using abstract classes, which can have both abstract methods and concrete methods, e.g., 'abstract class Shape { abstract void draw(); }'

  • A class can implement multiple interfaces, promoting multiple inheritance, w...read more

Q. Write a Java program to display unique characters in a string.

Ans.

Java program to display unique characters in an array of strings

  • Iterate through each string in the array

  • Use a HashSet to keep track of unique characters

  • For each character in the string, check if it is already in the HashSet and add it if not

Asked in MTX Group

5d ago

Q. Explain the BDD Framework in Test Automation

Ans.

BDD framework in test automation focuses on behavior-driven development principles to create automated tests.

  • BDD framework uses natural language to define test scenarios

  • Tests are written in a human-readable format using Given-When-Then syntax

  • Tools like Cucumber and SpecFlow are commonly used for BDD test automation

1
2
3
4
Next

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Wipro Logo
3.7
 • 6.1k Interviews
Amazon Logo
4.0
 • 5.4k Interviews
Capgemini Logo
3.7
 • 5.1k Interviews
Bharti Airtel Logo
3.9
 • 953 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

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