Technical Questions 1 Flashcards
Technical Questions around being a Senior SDET
Explain the concept of Continuous Integration/Continuous Deployment (CI/CD)
CI/CD refers to the practice of continuously integrating code changes into a shared repository (CI) and automatically deploying them to production or staging environments (CD), ensuring fast, reliable delivery of software.
What is Test-Driven Development (TDD)?
TDD is a development process where you write tests before writing the actual code. It follows the “Red-Green-Refactor” cycle: write a failing test, write the code to pass the test, and then refactor.
Explain the difference between black-box and white-box testing.
Black-box testing focuses on testing the functionality of the application without knowing its internal structure. White-box testing, on the other hand, tests the internal logic and structure of the code.
What is Selenium?
Selenium is a popular open-source framework for automating web browsers. It supports multiple programming languages such as Java, Python, and C#, and works with multiple browsers.
What is Page Object Model (POM) in Selenium?
POM is a design pattern in Selenium that helps in creating object-oriented classes for web UI elements. It improves the maintainability and reusability of test code.
What are the different types of testing levels? (6)
Unit Testing, Integration Testing, System Testing, Acceptance Testing, Regression Testing, and End-to-End Testing.
Explain the concept of data-driven testing.
Data-driven testing is a methodology where test scripts are executed using multiple sets of input data, often stored in external files like CSV, Excel, or databases.
What is API testing?
API testing is a type of testing where the API is tested for functionality, reliability, performance, and security.
What is Load Testing?
Load testing involves simulating a high number of users or system load to test how the system behaves under heavy traffic conditions.
What is the difference between stress testing and load testing?
Load testing measures how the system performs under expected load, while stress testing tests how the system behaves under extreme conditions or beyond its capacity.
What is a Mock in Unit Testing?
A mock is an object that simulates the behaviour of real objects in a controlled way, used to isolate a unit of code and test it independently.
Explain the difference between SOAP and REST APIs.
SOAP is a protocol with strict standards, while REST is an architectural style that uses HTTP requests. REST APIs are more flexible and lightweight compared to SOAP.
What are the main types of HTTP methods?
GET, POST, PUT, DELETE, PATCH, OPTIONS, and HEAD.
What is XPath and how is it used in Selenium?
XPath is a query language for selecting nodes in an XML document. In Selenium, it is used to locate web elements based on their attributes.
How do you handle synchronization issues in Selenium?
By using explicit waits (WebDriverWait), implicit waits, or fluent waits to ensure that elements are present or visible before interacting with them.