Hide menu

TDDD04 Software Testing

Lab 6: Test planning


Purpose

The goal of this assignement is to apply the testing techniques that we learn about in the lectures on black-box and white-box testing and to apply them to a real piece of software.

Part 1 - White-box testing

Choose one of the search algorithms implemented in Java and draw a control flow graph, calculate the cyclomatic complexity and a set of basis paths. Use this to deduce the set of test-cases. If you make any hypotheses, state them clearly.

Part 2 - Black-box testing and test planning

Read up on test planning in section 8.2 Test Design & Implementation Process. In this assignement, you will write a test plan for the InsuranceService we have implemented in Part 2. The test plan should be written based on the interface specification, using black-box testing. You will choose the appropriate testing techniques and stopping criteria.

To express the expected behaviour of your test you can define how the database is initialised.

The level of detail expected is comparable with the examples in the Test Planning lecture. You can make assumptions as necessary, for example, regading existing existing risks. For step TD6, it is not necessary to give specific scripts, just a general idea based on your experience in Lab1.

Part 3 - Integration testing

In this part, you will apply the path based integration approach. Choose an interation of one of the methods of the insurance service with other layers of the application. For the code of your choice build a flow graph representation, select an interesting test-case and provide the list of Module Executions Paths (MEPs). From the MEPs defined build a MM-path graph.

For this lab you will submit the report containg all your solutions and the excerpts of code that you are testing in parts 1 and 3.

Page responsible: Lena Buffoni
Last updated: 2020-10-13