1 / 7

Test Plans

Test Plans. Test Driven Development Unit test plan first Code coverage Automated Regression built as you go Debug is easier Serves as system doc Still need system test on top Legacy code might not have the plans. Test Plan levels. User Acceptance System (integration)

jorgea
Download Presentation

Test Plans

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Test Plans • Test Driven Development • Unit test plan first • Code coverage • Automated Regression built as you go • Debug is easier • Serves as system doc • Still need system test on top • Legacy code might not have the plans

  2. Test Plan levels • User Acceptance • System (integration) • Unit test (TDD concerned with these) • Regression

  3. Type • Try to break it • Validate flows (from state to state) • Validate Specifications (including use cases and sequence diagrams) • Stress test • Code inspection • Black box vs white box • Black - From spec - no design knowledge • White - look at code to find decisions

  4. A Good Test Case • Setup situation - environment to input into • Action to test - actual input • Assertion of result - what the environment looks like when you are done

  5. Chose cases • Input / output partitions (similar characteristics) • One from each paritition; boundaries and null • Cause all failure types (every failure error msg) • Sequences: have only 1 in a sequence; have none in a sequence; also act on first, middle and last • Input / output buffer overflow • Try to force invalid outputs

  6. Environments • Good test environments encourage good tests • Refresh periodically • One per user + One shared • Bypass Database with stubs to return from a DB call • Quick • Not complete

  7. Testing Wrap UP • Levels - unit / system / user • Structure - situation / input / expected output • TDD - code test before coding program • Choose cases - partitions (border, null, sample) / sequences / buffer limits / force errors • You will be able to : • Write a user acceptance test plan • Write good test cases on paper

More Related