www.softwaretestforum.dk Forum Index www.softwaretestforum.dk
Virtuelle netværks forum for dem som arbejder professionelt med QA og software test
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hvordan skriver man en god test case?

Post new topic   Reply to topic    www.softwaretestforum.dk Forum Index -> Teknikker til test
View previous topic :: View next topic  
Author Message
Vagn Hansen
Bruger på niveau 2
Bruger på niveau 2

Joined: 17 Jan 2008
Posts: 22

PostPosted: Tue Mar 04, 2008 5:26 pm    Post subject: Hvordan skriver man en god test case? Reply with quote

Jeg har ikke kunne finde nogle opskrifter på hvordan man skriver en god test case, og har derfor selv skrevet denne opskrift med udgangspunkt i et TestDirektor set-up.

"How to write good test cases in TestDirector"

1. Think about a test structure

(Some necessary considerations to make before writing test cases)

Test cases and test sets are created in files arranged in a tree structure and must reflect the projects main areas as described in the test strategy or test plan.

The purpose for specifying the test structure is:

• to make sure that all involved persons understand the process to go through to get a good test coverage
• to decide which areas needs to be tested and in how many sub areas (test dept)
• to be able to use the test areas and test sub areas as the test tree structure in TestDirector to support the process of writing test cases to cover the defined requirements.
• To identify the motivation for and ideas behind the test areas to be covered
• outlines the testing approach that will be used
• identify test ideas
• define test approach
• identify test data
• if any – state specific areas not to be tested
• dependencies to other projects or systems (not to other test cases)

2. Preparation of test cases in TestDirector’s Test Plan folder

The “Details” tab for each test cases should define the following - if they are relevant:

• Preconditions
• Status of the application or customer and eventually static application data if necessary for beginning execution of the test case.
(e.g. Customer created, accounts available, currencies established in system)

• Authorizations
• Which role and authorizations to use for testing the test case

• Goal
• Purpose of the test case if not given completely by the test case name

• Dependencies
• Dependencies to other test cases

• Test data
• Define if special test data is needed. Eventually reference to excel spreadsheet or attach file in the “Attachments” tab.

Note: If some specific information is relevant for all test cases in at test case folder the necessary information can be written in the higher level folder “Description” field. Then it only needs to be written once.

In the “Design Steps” folder, you enter step-by-step instructions on how to execute the test in the “Step Name”, “Description” and “Expected result” fields.

Enter the following data in

Step name:

• We recommend that you leave the step number unchanged
(but it is also possible to enter a name describing what the actual test step will test)

Description field:

• The active action for the relevant step. A step is defined as an action in a test case which may fault independently of other actions (steps) in the test case.

Expected result field:

• The expected result of the action mentioned in the “Description field” step.

Enter as many test steps as necessary to complete the test purpose for the test case.

3. Important notice:
Test cases must be described in sufficient details to make it possible for others than the test designer to perform the test.


Ps. Do you have a good example or comments - then please inform me for me to update my document Smile
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    www.softwaretestforum.dk Forum Index -> Teknikker til test All times are GMT + 2 Hours
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group