Senior Sdet Engineer

70+ Senior Sdet Engineer Interview Questions and Answers

Updated 22 Jan 2025
search-icon

Q1. Optimize an existing system. The system currently makes an API call and stores data in its memory. When it tries to serve a request from another component it refers to the memory location by searching the entir...

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

Q2. Write a code to split a string to one by one letter in each 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.

Senior Sdet Engineer Interview Questions and Answers for Freshers

illustration image

Q3. Write 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']

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

Are these interview questions helpful?

Q5. Write manual test cases for whatapp 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

Q6. Reverse the string input using java code without using any inbuilt method

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

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Q7. Write testcases on A-->B-->C microservices. Integration testcases.

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

Q8. Write a code to automate a website which they gave

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

Senior Sdet Engineer Jobs

Senior SDET Engineer 6-8 years
Turing
3.4
Remote
Senior SDET Engineer -Analytics 2-5 years
NETRADYNE
3.3
Bangalore / Bengaluru
Sr SDET Engineer 2-7 years
Providence College of Engineering
4.9
Hyderabad / Secunderabad

Q9. Code to create class , test methods and create object and call them.

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

Q10. can we run test locally without 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

Q11. One coding question for reversing strings and adding stars

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

Q12. Method Overloading Example with respect to 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

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

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

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

Q16. how to access static variables, method.

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

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

Q18. Difference between string buffer and string builder

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.

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

Q20. Explain how to scroll 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();

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

Q22. Java program to display unique characters

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

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

Q24. What is POM and Page Objects .

Ans.

POM stands for Page Object Model, a design pattern used in test automation to create reusable and maintainable code by separating test scripts from web elements.

  • POM helps in creating a clear separation between test code and page-specific code

  • Each web page is represented as a separate class in POM

  • Page Objects contain the locators and methods to interact with the elements on that page

  • POM promotes code reusability and maintainability in test automation

Q25. Best time to buy or sell stock.

Ans.

The best time to buy or sell stock depends on various factors such as market conditions, company performance, and personal financial goals.

  • Consider buying stocks when the market is down and selling when it is up to maximize profits.

  • Research the company's financial health, growth potential, and industry trends before making a decision.

  • Set clear investment goals and risk tolerance to determine the best time to buy or sell stocks.

  • Diversify your portfolio to reduce risk and prote...read more

Q26. mean heap fo minimising the cost

Ans.

A mean heap is a data structure that minimizes the cost of accessing the smallest element.

  • Mean heap is a type of binary heap where the value of each node is less than or equal to the values of its children.

  • It is useful for finding the minimum element quickly, as the root node always contains the smallest value.

  • Insertion and deletion operations in a mean heap have a time complexity of O(log n).

Q27. what is bst(binary search tree)

Ans.

A binary search tree (BST) is a data structure that organizes elements in a hierarchical manner, allowing for efficient searching, insertion, and deletion.

  • BST is a type of binary tree where each node has at most two children.

  • The left child of a node is always smaller than the node, and the right child is always greater.

  • BST allows for efficient searching with a time complexity of O(log n) on average.

  • Common operations on BST include insertion, deletion, and searching for a spec...read more

Q28. define your s#x life in two words

Ans.

Private matter

  • Personal

  • Intimate

Q29. CORS issues and how to resolve

Ans.

CORS issues occur when a web application tries to make a request to a different domain than the one it originated from.

  • Enable CORS on the server by adding appropriate headers like Access-Control-Allow-Origin

  • Use a proxy server to make requests on behalf of the client

  • Ensure that the client-side code is making requests correctly with the appropriate headers

  • Consider using JSONP as an alternative to CORS in some cases

Q30. How to create CI/CD job

Ans.

To create a CI/CD job, you need to define the steps for building, testing, and deploying code automatically.

  • Define the source code repository to pull code from

  • Set up build steps to compile code and run tests

  • Configure deployment steps to deploy code to target environments

  • Integrate with version control system for triggering builds on code changes

  • Use CI/CD tools like Jenkins, GitLab CI, or CircleCI

Q31. Design a library for api testing

Ans.

A library for API testing that provides a set of functions and utilities to simplify the testing process.

  • The library should have functions to send HTTP requests and validate responses.

  • It should support different authentication methods like OAuth, JWT, etc.

  • The library should handle common API testing scenarios like testing CRUD operations, handling different HTTP methods, etc.

  • It should provide utilities for data-driven testing, allowing testers to easily parameterize and itera...read more

Q32. Explain an automation framework

Ans.

An automation framework is a set of guidelines, rules, and tools that help in creating and executing automated tests.

  • Provides structure and organization for automated testing

  • Defines how tests are written, executed, and reported

  • Includes libraries, utilities, and templates for test automation

  • Supports integration with test management tools and version control systems

  • Examples: Selenium WebDriver, TestNG, JUnit, Cucumber

Q33. what is virtualization

Ans.

Virtualization is the process of creating a virtual version of a device or resource, such as a server, storage device, network or operating system.

  • Virtualization allows multiple virtual instances to run on a single physical machine

  • It helps in optimizing resources and increasing efficiency

  • Examples include VMware, VirtualBox, and Hyper-V

Q34. Automation framework explanation

Ans.

An automation framework is a set of guidelines, rules, and tools that help in creating automated tests for software applications.

  • Automation frameworks provide structure and organization for automated testing

  • They help in reducing the effort required to maintain and update automated tests

  • Frameworks can include libraries, coding standards, and best practices for test automation

  • Examples of automation frameworks include Selenium, TestNG, and Robot Framework

Q35. Python code for string reversal

Ans.

Python code to reverse an array of strings

  • Use the built-in function 'reverse()' to reverse the array of strings

  • Alternatively, you can use slicing to reverse each individual string in the array

Q36. Write java program to split string

Ans.

Java program to split a string into an array of strings

  • Use the split() method of the String class to split the string based on a delimiter

  • Store the result in an array of strings

  • Example: String str = 'Hello,World'; String[] parts = str.split(',');

Q37. what is data structure

Ans.

Data structure is a way of organizing and storing data in a computer so that it can be accessed and manipulated efficiently.

  • Data structures define the way data is organized and stored in memory.

  • Examples include arrays, linked lists, stacks, queues, trees, and graphs.

  • Choosing the right data structure is crucial for efficient data manipulation and retrieval.

Frequently asked in,

Q38. What is react in javascript

Ans.

React is a JavaScript library for building user interfaces.

  • React allows developers to create reusable UI components.

  • It uses a virtual DOM for efficient updates.

  • React is maintained by Facebook and a community of developers.

  • JSX is a syntax extension used in React to write HTML-like code within JavaScript.

Q39. What is kafka service

Ans.

Kafka is a distributed streaming platform used for building real-time data pipelines and streaming applications.

  • Kafka is designed to handle high-throughput, fault-tolerant, and scalable real-time data streams.

  • It allows for the publishing and subscribing to streams of records, similar to a message queue.

  • Kafka is often used for log aggregation, stream processing, event sourcing, and real-time analytics.

  • It provides features such as fault tolerance, replication, and partitioning ...read more

Q40. How to handle bugs

Ans.

Handle bugs by identifying, prioritizing, fixing, and testing them to ensure quality software.

  • Identify bugs by reproducing them and analyzing logs

  • Prioritize bugs based on impact and severity

  • Fix bugs by writing code changes and performing code reviews

  • Test fixes to ensure they resolve the issue without introducing new bugs

Q41. what is role inthe compay

Ans.

As a Senior SDET Engineer, my role in the company is to design, develop, and maintain automated testing frameworks to ensure the quality of software products.

  • Designing and implementing automated testing frameworks

  • Developing test scripts and scenarios

  • Collaborating with developers and QA teams to identify and fix software defects

  • Participating in code reviews and providing feedback on testability

  • Analyzing test results and providing recommendations for improvements

Q42. what is string reverse

Ans.

String reverse is the process of reversing the order of characters in a string.

  • Create a new string and iterate through the original string in reverse order, appending each character to the new string.

  • Use built-in functions like reverse() in some programming languages to reverse the string directly.

  • Implement a custom algorithm to swap characters from the beginning and end of the string until reaching the middle.

Q43. count -/1 in a given array

Ans.

Count the occurrences of '-/1' in a given array of strings.

  • Iterate through the array and count the number of times '-/1' appears in each string.

  • Use a loop to go through each element of the array and check for the substring '-/1'.

  • Keep a counter to track the total occurrences of '-/1' in the array.

Q44. Programming using python

Ans.

Python is a versatile programming language known for its simplicity and readability.

  • Python is an interpreted language, making it easy to write and test code quickly.

  • It supports multiple programming paradigms, including object-oriented, imperative, and functional programming.

  • Python has a large standard library with built-in modules for various tasks, reducing the need for external libraries.

  • Python uses indentation to define code blocks, promoting clean and readable code.

  • Python...read more

Q45. Explain Agile ceremonies

Ans.

Agile ceremonies are regular meetings or events in Agile methodology to facilitate communication, collaboration, and decision-making within the team.

  • Sprint Planning: Setting goals and planning work for the upcoming sprint.

  • Daily Stand-up: Short daily meeting to discuss progress, challenges, and plans for the day.

  • Sprint Review: Demo of completed work to stakeholders for feedback.

  • Sprint Retrospective: Reflecting on the sprint and identifying areas for improvement.

  • Backlog Groomin...read more

Q46. Write a Palindrome using C#

Ans.

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

  • Create a string variable with a word or phrase that is the same forward and backward.

  • Use a loop to compare the characters from the beginning and end of the string to check if it is a palindrome.

  • Ignore spaces and punctuation when checking for palindromes.

  • Example: 'racecar' is a palindrome.

Q47. Method hiding explain

Ans.

Method hiding is a concept in object-oriented programming where a subclass defines a method with the same name as a method in its superclass, effectively hiding the superclass method.

  • Method hiding allows a subclass to provide its own implementation of a method without overriding the superclass method.

  • The subclass method must have the same signature (name and parameters) as the superclass method to hide it.

  • To access the superclass method from the subclass, you can use the 'sup...read more

Q48. Selenium waits explain

Ans.

Selenium waits are used to make the test scripts wait for a certain condition to be met before proceeding.

  • Selenium waits help in handling dynamic web elements that load at different times.

  • There are three types of waits in Selenium: Implicit wait, Explicit wait, and Fluent wait.

  • Implicit wait sets a default waiting time for the entire script.

  • Explicit wait waits for a specific condition to be met before proceeding.

  • Fluent wait is used to define maximum wait time for a particular ...read more

Q49. what polymorphism

Ans.

Polymorphism is the ability of a function or method to behave differently based on the object it is acting upon.

  • Polymorphism allows objects of different classes to be treated as objects of a common superclass.

  • There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).

  • Example: Animal class with methods eat() and sleep(). Dog and Cat classes can override these methods to have their own behavior.

Q50. What is testbed

Ans.

A testbed is a platform or environment used for testing software applications or hardware components.

  • Testbeds can simulate real-world scenarios to test the functionality and performance of software or hardware.

  • They can include a combination of hardware, software, and network configurations.

  • Testbeds are used to identify bugs, performance issues, and compatibility problems before releasing a product.

  • Examples of testbeds include virtual machines, physical devices, and cloud-base...read more

1
2
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.7
 • 5.6k Interviews
4.1
 • 5k Interviews
4.0
 • 842 Interviews
4.4
 • 821 Interviews
3.7
 • 533 Interviews
4.3
 • 137 Interviews
3.7
 • 78 Interviews
3.7
 • 31 Interviews
3.8
 • 23 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

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