Testing and Test Driven Development Phase Test Preperation

  • Slides: 10
Download presentation
Testing and Test Driven Development Phase Test Preperation

Testing and Test Driven Development Phase Test Preperation

Getting a Clearer Picture Getting to a stage where we understand the problem more

Getting a Clearer Picture Getting to a stage where we understand the problem more clearly Event tables Use case diagrams / descriptions An early prototype of the proposed system

Visual Studio Configuration Project bank web facing front end Project bank locally hosted back

Visual Studio Configuration Project bank web facing front end Project bank locally hosted back end The class library A database file linked to both presentation layers

Two More Things A class diagram Test plans

Two More Things A class diagram Test plans

The Class Diagram

The Class Diagram

The Test Plan Test Type Extreme Min -1 Min (Boundary) Min +1 Max -1

The Test Plan Test Type Extreme Min -1 Min (Boundary) Min +1 Max -1 Max (Boundary) Max +1 Mid Extreme Max Invalid data type Other tests Test Data Expected Result Actual Result

Test Driven Development Testing is error prone and boring “Flat Pack” Programming? In TDD

Test Driven Development Testing is error prone and boring “Flat Pack” Programming? In TDD Create a test that fails (test plan my not always encourage this) Run the test and see it fail Fix the error in a simplistic way See the test pass Re-factor to implement the feature correctly All about small steps Builds confidence in the system Builds confidence in the programmer Programming Pathways

The Phase Test You may bring with you to the test Your class diagram

The Phase Test You may bring with you to the test Your class diagram Your test plan A single A 4 page of handwritten notes (This will be inspected prior to the test start) You will create on the day Test framework Class library Test cases for 2 x properties of different data type 2 x parameters of different data type

For Example Properties County. No Int 32 Date. Added Date. Time Parameters in Valid

For Example Properties County. No Int 32 Date. Added Date. Time Parameters in Valid Post. Code Date. Added

Some Examples We will now work through some examples to get you atarted

Some Examples We will now work through some examples to get you atarted