Geeks Talk

Prepare for your Next Interview




Format for writting test cases

This is a discussion on Format for writting test cases within the Test Cases forums, part of the Software Testing category; In many examples we see text cases are written simply line-wise on a page, while in some examples it is written in tabular form. can anybody tell me what ...


Go Back   Geeks Talk > Software Testing > Test Cases

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-23-2006
Expert Member
 
Join Date: Oct 2006
Posts: 690
Thanks: 0
Thanked 49 Times in 41 Posts
JobHelper is on a distinguished road
Format for writting test cases

In many examples we see text cases are written simply line-wise on a page, while in some examples it is written in tabular form. can anybody tell me what is actual format for writting test cases. (Give proper details for test cases for simle login form, having fields ([1- user id.], [2. passward ], [3. ok button], [4. cancel button]) you can send the exact details used.

NOTE : [This question was asked by sanjayamb]
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-23-2006
Junior Member
 
Join Date: Dec 2006
Location: Hyderabad
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
gandra.2006 is on a distinguished road
Re: Format for writting test cases

hello sanjay..

The templates differ company to company and mostly considered the build also... whether it is medium or large size....Mostly so many companies prepare with Excel sheets . The companies who have the license use Test Director and etc., ..... there also we can manupulate the fields according our build needs ...

prasad.gandra
Reply With Quote
  #3 (permalink)  
Old 12-29-2006
Junior Member
 
Join Date: Dec 2006
Location: Pune
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
tush25 is on a distinguished road
Re: Format for writting test cases

Test Cases can be generalised with the following fields wihich are mandatory:

Test Case Title (Refers to the Functionality of the product being tested)
Test Case version( Required when multiple changes takes place in the product and the Test Case as well)

The above fields are single value field provided one time at the heading of the Test Case.

Fields which can be used in a tabular form for the Test Case are:
1) Step No (Sequence used for no of test steps in the Test Case)
2) Test Step (Actual step to be followed or executed)
3) Expected Result ( Result which is expected as a normal behaviour)
4) Actual Result ( Result which we actually get after we execute the test step)
5) Defect id ( If the Expected and Actual result do not match then we need to log a defect either in a Defect logging tool or by maintaining an Excel sheet of defect incurred. The corresponding id generated for the defect logged should be mentioned in this column so that we can get the exact track of which defect is looged against the said Test Case.)
6) Test Step result ( Whether the step is Passed or Failed is to be mentioned here)

all the fields mentioned are generalised fields. Test Cases can be written either in Excel sheet or in Word ... But they should be written in a Tabular format. It helps out in a better understanding of the Test case.
Reply With Quote
  #4 (permalink)  
Old 12-29-2006
Moderator
 
Join Date: Sep 2006
Location: Delhi (India)
Posts: 865
Thanks: 12
Thanked 81 Times in 65 Posts
jainbrijesh is on a distinguished road
Re: Format for writting test cases

General method for test case format is tabular method, why , because generally every company use excel sheet for writing test cases.Testcases fields have already been posted by others.
__________________
Brijesh Jain
brijesh.tester@yahoo.co.in
http://softwaretestingexpertise.blogspot.com
Reply With Quote
  #5 (permalink)  
Old 12-29-2006
Expert Member
 
Join Date: Nov 2006
Location: Hyd-IND
Posts: 520
Thanks: 1
Thanked 53 Times in 45 Posts
sutnarcha is on a distinguished road
Re: Format for writting test cases

We have the following details in Test Case document:

Test Case ID, Title, Feature to be tested, Test suit ID, Priority, Test environment (h/w and s/w), Test duration (date and time), Test setup (preconditions for testing), Test Procedure/script, step no*, action*, Input required*, expected*, actual+, result+, defect id+ if any, status

* - before receiving build.
+ - after receiving build and applying test.

For each of the input objects:
Object name, ECP valid and invalid, BVA min and max
__________________
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.

-sutnarcha-
Reply With Quote
  #6 (permalink)  
Old 01-07-2007
Junior Member
 
Join Date: Nov 2006
Location: London
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
tycollins is on a distinguished road
Re: Format for writting test cases

It's in tabular form.Stick to that style
Reply With Quote
  #7 (permalink)  
Old 01-08-2007
Junior Member
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
nancy_nancy1 is on a distinguished road
Re: Format for writting test cases

hello all!
can u tell me how do we writetestcases for perfomance,load,And stress?
thanx
nancy
Reply With Quote
  #8 (permalink)  
Old 01-08-2007
Junior Member
 
Join Date: Dec 2006
Location: Hyderabad
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
gandra.2006 is on a distinguished road
Re: Format for writting test cases

Hello Nancy,

the test case template doesnt have much difference between them, but the mode of input values changes.

Under the Performence , 4 concepts should be covered mainly :

1) scalability Testing : To check whether your application allows customer expected load ( no. of users ) or not ?
2) Load Testing : Execute our application under pre-determined level of Resources and Continuous load is called Load testing.
3)Stress testing: -> Execution of our application under predetermined level of Resources and maximum Load is called stress testing.
During this test, testing team estimates Peak load of our application or product.
4)Volume testing : Execution of our application under huge amounts of resources to findout positive movements in performance is called Volume testing.

JUst check it out, how the inputs need to go for all these tests.
Reply With Quote
  #9 (permalink)  
Old 01-09-2007
Junior Member
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
pavanswapna is on a distinguished road
Hai,
There is no different format for writing Test cases different type of testing. Only Objective of Testing will be different accordingly the Test Description, input values and Expected results will be changed.

Hai,

Every Test case format will have common fields i.e Testcase Id, Test case name(title),Testtype(Positive/negative), Priority, Module, Functionality, Precondition, Testcase description, Expected result, Actual Result, Remarks, Author, Assigned to etc. Only Objective of testing will be different. That's all

Last edited by jainbrijesh : 05-23-2007 at 04:01 AM.
Reply With Quote
  #10 (permalink)  
Old 01-16-2007
Expert Member
 
Join Date: Jan 2007
Location: Chennai
Posts: 139
Thanks: 1
Thanked 44 Times in 29 Posts
Sridevichitthu is on a distinguished road
Re: Format for writting test cases

Hi sitnarcha,

Am new member to this forum,i went through your discussions on Test cases and I appreciate your interesting discussions.when i read about on test case document format you mentioned Input Object name as

ECP valid and invalid, BVA min and max

What does this stands for ? Can u explain this?

Thanks and Regards,
Sridevi
Reply With Quote
  #11 (permalink)  
Old 01-17-2007
Expert Member
 
Join Date: Nov 2006
Location: Hyd-IND
Posts: 520
Thanks: 1
Thanked 53 Times in 45 Posts
sutnarcha is on a distinguished road
Re: Format for writting test cases

ECP - Equivalence Class Partitioning
BVA - Boundary Value Analysis
__________________
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.

-sutnarcha-

Last edited by sutnarcha : 01-17-2007 at 01:39 AM.
Reply With Quote
  #12 (permalink)  
Old 01-17-2007
Junior Member
 
Join Date: Sep 2006
Location: Hyderabad
Posts: 6
Thanks: 0
Thanked 2 Times in 1 Post
kishorech is on a distinguished road
Re: Format for writting test cases

hi

Test case templates,It may differ company to company.
mostly are using tabular form,it conatins test case id,tiltle,description,excepted result,actual result status(pass/fail)and comments.
In test case format some more fileds are there but many companies are useing only these fileds.

Kishore...

Last edited by kishorech : 01-17-2007 at 05:16 AM.
Reply With Quote
  #13 (permalink)  
Old 01-19-2007
Junior Member
 
Join Date: Jan 2007
Location: Inida
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ashacta is on a distinguished road
Re: Format for writting test cases

Hi
Do u want test case template or you want test cases for log in details.If you really looking for test case template....
It consists of
Test case id
Test case tiltle,or URL or path for each test case.(In our company we are using this)
Test case desciption,
Preconditon
excepted result
Actual result
status(pass/fail)
and comments.


regrds
Asha

Last edited by ashacta : 01-19-2007 at 03:19 AM.
Reply With Quote
  #14 (permalink)  
Old 06-20-2008
Junior Member
 
Join Date: Jun 2008
Location: Toronto
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
glamoure is on a distinguished road
Re: Format for writting test cases

The four basic elements for building a test case are:
1) Input
2) Test Condition
3) System Behaviour
4) Expected Results

You may want to reference the requirement if you are not using a traceability matrix.
Reply With Quote
  #15 (permalink)  
Old 06-23-2008
Contributing Member
 
Join Date: Nov 2006
Location: India
Posts: 79
Thanks: 3
Thanked 15 Times in 10 Posts
j_madhuri is on a distinguished road
Re: Format for writting test cases

The templete differs from company to company. The formate which we use in our company is

Test case id
Test case name
Features to be tested
Test Suite id
Priority
Step no
Description
Expected Result
Actual Result
Result(pass/fail)
defect id
coments
Reply With Quote
  #16 (permalink)  
Old 07-05-2008
Junior Member
 
Join Date: Jun 2008
Location: India
Posts: 9
Thanks: 1
Thanked 1 Time in 1 Post
ajayshembekar is on a distinguished road
Re: Format for writting test cases

Hi, pfa format for writting test cases. Yes it is very true that it changes company to company but more or less fields do not change. Project name: application prepared by: doc. Version no.: type of testing: functional creation dates: reviewed by: submitted to: sr. No. Test case id test case description expected result actual result test cycle execution date build version result type: +ve, -ve. Defect id use case id if you have still any probem please let me know. Regards, ajay shembekar. Secoe regards, ajay shembekar.
Reply With Quote
  #17 (permalink)  
Old 07-24-2008
Junior Member
 
Join Date: Jul 2008
Location: chennai
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
AnithaBabu1 is on a distinguished road
Re: Format for writting test cases

hi!here is my first test case for login screen,i have tried for both positive and negative test cases.All the best!
Attached Files
File Type: doc Testcase Id.doc (113.5 KB, 41 views)

Last edited by AnithaBabu1 : 07-24-2008 at 05:49 AM.
Reply With Quote
  #18 (permalink)  
Old 07-24-2008
Junior Member
 
Join Date: Jul 2008
Location: Hyderabad
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
SuneethaA is on a distinguished road
Smile Re: Format for writting test cases

Hey...
can u please let me know how to post the quirres in this site.
as i am very much new to this site i was not able to find the way to post the querry...

Thanks.
Reply With Quote