Task: Develop Unit Test Plan
This task focuses on the creation of a unit test plan.
Purpose
The purpose of a unit test plan is to give guidelines to the modelers and testers on how to properly test a component during the Object Analysis phase of development. 
Relationships
RolesPrimary: Additional: Assisting:
InputsMandatory: Optional: External:
  • None
Outputs
Main Description
This task creates the unit test plan or suite based upon the context of the model being built in the current activity. The model could be the Platform Independent Model or the Platform Specific Model.
Steps
Understand the expected behavior of the model you are designing
It is very important to understand how the piece of the model that you are designing is expected to work in the overall system, so that you can design accurate tests for the model.
Create test plan organization
Define the organization structure you will use in the test plan i.e. chapters, sections, index, etc. 
Capture relevant test cases and data in unit test plan
You should create a unit test plan using the test plan work product guidance and template, if desired.  Keep in mind that you are designing a test plan for a system component and not the system as a whole.  This test plan will be used during the implementation phase of design.  Each test case should include preconditions, data, test flow, and expected results.
Add <<verify>> traceability from test case to requirements
It is important to establish traceability from the test case to the requirement as soon as you write the test case.
Perform coverage analysis to ensure test case coverage is adequate
This is very difficult to do by hand.  It is best to perform coverage analysis using test coverage tools.
Specify tester steps required for test execution
The tester must know how to set up, perform, and analyze the test execution.
Examine test plan for completeness, accuracy, consistency, and correctness
Have you covered all the different kinds of test? Is the test environment adequately described?