Week 10


Published on

  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Week 10

  1. 1. Testing Amy Power Tim Read Shanon Hentges
  2. 2. <ul><li>Test Plan </li></ul><ul><li>Test Plan Standards </li></ul><ul><li>Types of Test Plans </li></ul><ul><li>What is a Test Case? </li></ul><ul><li>Why Write Tests? </li></ul><ul><li>Testing Software </li></ul><ul><ul><li>NUnit </li></ul></ul><ul><ul><li>Cactus </li></ul></ul><ul><ul><li>Visual Studio.NET 2005 </li></ul></ul><ul><li>Questions? </li></ul>Agenda
  3. 3. Test Plan <ul><li>The role of a test plan is to prescribe the scope, approach, resources, and schedule of the testing activities. To identify the items being tested, the features to be tested, the testing tasks to be performed, the personnel responsible for each task, and the risks associated with this plan. </li></ul>
  4. 4. Test Plan Standards <ul><li>IEEE Standard 829 on Software Testing Documentation </li></ul><ul><ul><li>( ) </li></ul></ul>
  5. 5. Types of Test Plans <ul><li>Unit Test </li></ul><ul><ul><li>Tests which check the correctness of a particular module of code. By testing the parts of a program first and then testing the sum of its parts will make integration testing easier. </li></ul></ul><ul><li>Integration Test </li></ul><ul><ul><li>Tests that are executed to ensure there is a connection with the different logic layers </li></ul></ul><ul><li>System Test </li></ul><ul><ul><li>Occurs when the project is implemented with business computers outside the test area </li></ul></ul><ul><li>Acceptance Test </li></ul><ul><ul><li>Occurs when the finished project is implemented and is tested by users within the company </li></ul></ul>
  6. 6. What is a Test Case? <ul><li>A set of inputs, execution preconditions, and expected outcomes developed for a particular objective, such as to exercise a particular program path or to verify compliance with a specific requirement of the program. </li></ul>
  7. 7. Why Write Tests? <ul><li>Tests Reduce Bugs in New Features </li></ul><ul><li>Tests Reduce Bugs in Existing Features </li></ul><ul><li>Tests Are Good Documentation </li></ul><ul><li>Tests Reduce the Cost of Change </li></ul><ul><li>Tests Improve Design </li></ul><ul><li>Tests Allow Refactoring </li></ul><ul><li>Tests Constrain Features </li></ul><ul><li>Tests Defend Against Other Programmers </li></ul><ul><li>Testing Forces You to Slow Down and Think </li></ul><ul><li>Testing Makes Development Faster </li></ul><ul><li>Tests Reduce Fear </li></ul><ul><li>http://www.onjava.com/pub/a/onjava/2003/04/02/javaxpckbk.html?page=last </li></ul>
  8. 8. Testing Software <ul><li>CSUnit </li></ul><ul><li>JUnit </li></ul><ul><li>NUnit </li></ul><ul><li>Cactus </li></ul><ul><li>Visual Studio.NET 2005 Team System </li></ul>
  9. 9. NUnit <ul><li>NUnit is an open source unit testing framework for Microsoft .NET. It serves the same purpose as JUnit does in the Java world. </li></ul><ul><li>Initially ported from JUnit, the current release, version 2.2, is the fourth major release of this xUnit based unit testing tool for Microsoft .NET. </li></ul><ul><li>It is written entirely in C# and has been completely redesigned to take advantage of many .NET language features. </li></ul><ul><li>http://www.nunit.org/ </li></ul>
  10. 10. NUnit
  11. 11. Cactus <ul><li>Cactus is a simple test framework for unit testing server-side java code (Servlets, EJBs, Tag Libs, Filters, ...). </li></ul><ul><li>The intent of Cactus is to lower the cost of writing tests for server-side code. It uses JUnit and extends it. </li></ul><ul><li>Cactus implements an in-container strategy, meaning that tests are executed inside the container. </li></ul><ul><li>http://jakarta.apache.org/cactus/ </li></ul>
  12. 12. Visual Studio.NET 2005 <ul><li>Writes test cases for you to test your Business Logic Layer for C#, J#, VB and ASP.Net </li></ul><ul><li>Bradshaw Marina </li></ul><ul><ul><li>Shows an example of how VB.Net code from the business logic layer is analyzed and test cases are generated for that code. </li></ul></ul>
  13. 13. Visual Studio.NET 2005
  14. 14. Questions?