INF 115 Final Test Questions With Correct Answers
Structural/White-Box Testing - Answer A verification technique software engineers can use to examine if their code works as expected - You have full visibility of the internal workings of the software product, specifically, the logic and structure of the code - AKA clear box testing, glass box testing Scaffolding - Answer Extra software components that are create to support integration and testing (ex. stubs, drivers) Stub - Answer Emulates the results of a call to a method that has not been implemented or integrated yet - A dummy component of object used to simulate the behavior of a real component until that component has been developed Driver - Answer Emulates a method that makes calls to a component that is being tested - A line of code that calls a method and passes that method a value - Can become automated test cases Test Case - Answer Multipart artifact with a definite structure Test Case Values - Answer The input values needed to complete an execution of the software under test Expected Results - Answer The result that will be produced by the test if the software behaves as expected Test oracle - Answer Uses expected results to decide whether a test passed or failed Test Automation Framework - Answer A set of assumptions, concepts, and tools that support test automation - automating as much as possible is the only way to make testing efficient as well as effective JUnit - Answer Open source Java testing framework used to write and run repeatable automated tests - Structure for writing test drivers Includes: - Assertions for testing expected results - Test features for sharing common test data - Test suites for easily organizing and running tests - Graphical and textual test runners Test Class - Answer Contains one or more test methods Include: - A collection of test methods - Methods to set up the state before and update the state after each test before and after all tests Test-Driven Development (TDD) - Answer - A programming practice where unit tests are written before the code - Unit tests and Refactoring are the tools of ___ - Most useful when faced with complex design decisions TDD Steps - Answer Steps: - Write a test that fails - Write code to make the test pass - Refactor
Document information
- Uploaded on
- October 24, 2023
- Number of pages
- 8
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers