Certified Information Systems Security Professional CISSP · Free Practice Question Medium
Question 18
As the IT Manager of a rapidly growing software company, you've noticed inconsistencies in the quality of software releases, resulting in unforeseen bugs surfacing in the production environment. After conducting a thorough investigation, you've realized that your team is primarily focusing on unit testing and neglecting to place equal importance on integration testing. You need to explain the significance of integration testing and why it should be a crucial part of your testing process. Which of the following best illustrates why integration testing should be given equal importance as unit testing in your company's software testing process?
- A Integration testing verifies the functionality of individual sections of the code, ensuring that each section operates as expected.
- B Integration testing facilitates the verification of software design against different components of the software.
- C Integration testing focuses on the constructors and destructors within an object-oriented environment.
- D Integration testing allows for defects in code to be identified that can prevent different components from functioning together.
Reveal correct answer
Correct answer: D
Explanation
The correct answer: Integration testing aims to expose flaws or defects in the code that could prevent different components from functioning together properly. This form of testing takes the individual units that have been tested separately in unit testing and then tests them together to check for interface issues and potential conflict. It's a crucial complement to unit testing in ensuring the overall software operates as expected. The incorrect answers: Integration testing verifies the functionality of individual sections of the code, ensuring that each section operates as expected mostly describes unit testing, not integration testing. Although unit testing is critical in verifying the functionality of individual sections or units of code, it doesn't ensure that these individual units can function together as a cohesive whole, which is the main goal of integration testing. Integration testing focuses on the constructors and destructors within an object-oriented environment again relates to unit testing, particularly in an object-oriented programming environment. Unit testing often includes testing constructors and destructors to ensure they are working properly, but this doesn't encapsulate the importance of integration testing, which checks how these different units interact with one another. Integration testing does involve a level of verification against software design, but its primary purpose isn't to verify the design itself. Rather, it's to test the interaction between different components or units of software, to ensure they function together properly.Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
