All software testing is done with executable code. To do so, it might be necessary to
create scaffolding code. Scaffolding is defined as computer programs and data files built
to support software development and testing but not intended to be included in the final
product [11]. Scaffolding code is code that simulates the functions of components that
don’t exist yet and allow the program to execute [16]. Scaffolding code involves the
creation of stubs and test drivers. Stubs are modules that simulate components that aren’t
written yet, formally defined as a computer program statement substituting for the body
of a software module that is or will be defined elsewhere [11]. For example, you might
write a skeleton of a method with just the method signature and a hard-coded but valid
return value. Test drivers are defined as a software module used to involve a module
under test and often, provide test inputs, controls, and monitor execution and report test
results [11]. Test drivers simulate the calling components (e.g. hard-coded method calls)
and perhaps the entire environment under which the component is to be tested [1].
Another concept is mock objects. Mock objects are temporary substitutes for domain
code that emulates the real code. For example, if the program is to interface with a
database, you might not want to wait for the database to be fully designed and created
before you write and test a partial program. You can create a mock object of the database
that the program can use temporarily. The interface of the mock object and the real
object would be the same. The implementation of the object would mature from a
dummy implementation to an actual database.
Share
Related Documents
  1. Giới thiệu phương pháp bảng quyết định (610)
  2. [Video] GUI-Level Regression Testing (891)
  3. Black Box Testing Techniques (2140)
  4. Testing Overview and Black-Box Testing Techniques (651)
  5. Black-Box Test Design (2117)
  6. Equivalence Partitioning Example (2738)
  7. Black Box Software Testing Lecture 2 (609)
  8. Black box and White box testing (2135)
  9. Black Box Software Testing Lecture 1 (774)
  10. Functional Testing : Equivalence Class Testing (1922)
  11. Black Box Software Testing Lecture 3 (674)
  12. Full list of Black Box Testing Techniques? (2629)
  13. White Box and Black Box Testing (1666)
  14. Specification based Testing (764)
  15. White Box Testing Vs. Black Box Testing (1215)
  16. BLACK BOX TESTING WITH ROBOTIUM ON APK FILES (1154)
  17. Test case design techniques II: Blackbox testing (399)
  18. Black Box Testing (1363)
  19. Black Box testing (1471)
  20. [Free] Knock Subdomain Scan : Black Box Security Testing Tool (1885)