Tuesday, April 26, 2011

Use Case Vs Test Case

Use Cases

A use case is a set of scenarios that describing an interaction between a user and a
system. A use case diagram displays the relationship among actors and use
cases. The two main components of a use case diagram are use cases and actors.



An actor is represents a user or another system that will interact with the system you are modeling. A use case is an external view of the system that represents some action the user might perform in order to complete a task.
Use Cases Diagram is used in almost every project. They are helpful in exposing
requirements and planning the project. During the initial stage of a project most use
cases should be defined, but as the project continues more might become visible.



The detail of each use case will show in the narrative. The following pattern is one of
the most useful narratives one.  


What use cases narrative tells you?
The narrative in the use case will help us to describe the functional requirements in
detail. What steps the actor will perform and what are the system activities. Tester
will study the scenario and derive it into the test cases. On use case may lead to one
test case or more than one. The Traceability Metric will be updated to ensure that all
functions are handling by tester.
This is how I use narrative to help create Test Cases. 






What are the Test Cases? A set of inputs execution condition and expected results developed for a particular objective.

Test case is the documents that tells the working steps is checking the completeness and correctness of a deliverable application. Main objective of test cases are the following.

1. Plan to do working steps as describe in use cases references.
2. Check the deliverable to ensure that they pass the acceptance criteria.
3. Ensure that all the steps are confirmed to the user case.




Standard Template Format for a Test Case: The template of a test case can be divided into three section.

1. First section contains test objective test environment, test type and condition required.
2. Second section contain the testing steps.
3. Last section will be contain the result of test cases.




1 comment: