Test Flashcards
9 cards from real API practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 9 Test flashcards as text
What is the most challenging part of API testing?
Answer: All of the above
API testing presents multiple challenges that make it complex. Parameter validation requires careful consideration of various input types and edge cases to ensure robustness. Setting up and maintaining the test environment for the API can be intricate, especially with numerous dependencies. Additionally, keeping API request testing schemes updated as the API evolves is a continuous and often demanding task, encompassing all the listed options.
What does it mean to run a test against numerous sets of parameters in Pytest?
Answer: Parameterized tests
Parameterized tests in Pytest allow you to run the same test function multiple times with different sets of input data. This is achieved using decorators like `@pytest.mark.parametrize`, which efficiently tests various scenarios and edge cases without writing repetitive test code for each data set. It significantly reduces code duplication and improves test coverage.
Jenkins has been written in
Answer: Java
Jenkins, a popular open-source automation server used for continuous integration and continuous delivery (CI/CD), is primarily written in Java. Its Java-based architecture allows it to run on various platforms and leverage the extensive Java ecosystem for plugins and integrations. This choice of language contributes to its widespread adoption and flexibility.
What does not qualify as an API?
Answer: None of the above
An API (Application Programming Interface) defines how different software components should interact. The Java API for XML Web Services, the Standard Template Library in C++, and the Google Maps API are all examples of APIs, each providing a set of definitions, protocols, and tools for building software applications. Therefore, 'None of the above' is the correct answer because all the listed options qualify as APIs.
In PHPUnit, a test method that returns the unit under test is referred to as a return value.
Answer: producer
In PHPUnit, a 'producer' is a test method that creates and returns the unit under test, often with specific initial states or dependencies. This pattern is useful for setting up complex objects or scenarios that are then passed to other test methods (consumers) for further testing. It promotes reusability and clear separation of concerns within test suites.
Which of these is not a testing framework?
Answer: None of the above
PHPUnit and XUnit are both well-known and widely used testing frameworks. PHPUnit is a unit testing framework specifically for PHP, while XUnit refers to a family of unit testing frameworks (e.g., JUnit for Java, NUnit for .NET) that share a common architectural pattern. Therefore, neither of them is 'not a testing framework,' making 'None of the above' the correct choice.
What isn't a method for designing dynamic tests?
Answer: Audit
Dynamic test design techniques focus on creating test cases based on the system's behavior and structure. State Transition Diagrams, Boundary Value Analysis (BVA), and Equivalence Partitioning (EP) are all established methods for designing such tests. An 'Audit,' however, is a systematic review or inspection of processes or products, not a technique for designing dynamic tests.
In a brief, integration testing:
Answer: tests interactions between modules or subsystems
Integration testing is a phase in software testing where individual software modules are combined and tested as a group. Its primary purpose is to expose defects in the interfaces and interactions between these integrated modules or subsystems, ensuring they work together correctly to achieve desired functionalities. It focuses on the communication and data flow between components.
Web Services Description Language (WSDL) is written in
Answer: None of the above
Web Services Description Language (WSDL) is an XML-based language used for describing the functionality offered by a web service. It defines how to access a web service and what operations it will perform, acting as a contract for web services. Since it is an XML-based language, it is not written in Python, Java, or PHP, making 'None of the above' the correct answer.