Writing effective test cases is a skill and that can be achieved by some experience and in-depth study of the application on which test cases are being written.
Here I will share some tips on how to write test cases, test case procedures and some basic test case definitions.
What is a test case?
“A test case has components that describes an input, action or event and an expected response, to determine if a feature of an application is working correctly.” Definition by Glossary
There are levels in which each test case will fall in order to avoid duplication efforts.
Level 1: In this level you will write the basic test cases from the available specification and user documentation.
Level 2: This is the practical stage in which writing test cases depend on actual functional and system flow of the application.
Level 3: This is the stage in which you will group some test cases and write a test procedure. Test procedure is nothing but a group of small test cases maximum of 10.
Level 4: Automation of the project. This will minimize human interaction with system and thus QA can focus on current updated functionalities to test rather than remaining busy with regression testing.
So you can observe a systematic growth from no testable item to a Automation suit.
Why we write test cases?
The basic objective of writing test cases is to validate the testing coverage of the application. If you are working in any CMMi company then you will strictly follow test cases standards. So writing test cases brings some sort of standardization and minimizes the ad-hoc approach in testing.
How to write test cases?
Here is a simple test case format
Fields in test cases:
Test case id:
Unit to test: What to be verified?
Assumptions:
Test data: Variables and their values
Steps to be executed:
Expected result:
Actual result:
Pass/Fail:
Comments:
So here is a basic format of test case statement:
Verify
Using [tool name, tag name, dialog, etc]
With [conditions]
To [what is returned, shown, demonstrated]
Verify: Used as the first word of the test case statement.
Using: To identify what is being tested. You can use ‘entering’ or ‘selecting’ here instead of using depending on the situation.
For any application basically you will cover all the types of test cases including functional, negative and boundary value test cases.
Keep in mind while writing test cases that all your test cases should be simple and easy to understand. Don’t write explanations like essays. Be to the point.
Try writing the simple test cases as mentioned in above test case format. Generally I use Excel sheets to write the basic test cases. Use any tool like ‘Test Director’ when you are going to automate those test cases.
Feel free to comment below any query regarding test case writing or execution.



96 comments ↓
Thanks vijay for this template. Can u please tell that is there need of writing the test cases in exactly the same format like verify, using, with, to format?
[…] Required: We need to write test cases that ensure the complete coverage of the program logic. For this we need to know the program well […]
what is volume testing,load testing and stress testing ?
how can we distinguish between them?
Hi all,
I want QTP interviw tips can any one help me pls…..
i want software testing interview questions with answers
Hi Vijay,
This website topics are really helpful.Keep writing!!
hi vijay
recently asked interview question: what do u mean by quality output? plz tell us the ans
Hi Vijay
can u tell me difference between Load testing,Performance testing,Volume testing and stress testing.
Difference between sanity testing and smoke testing
What do we actually test in Sanity Testing?
hi,
what do we actually test in sanity test?
HI vijay, pleaes tell me that wat is a testing cycle, i mean the testing carried out that thing and how many cycles can we test for a application
hi,
can u give some sample test cases for web based testing.
[…] you don’t have the systematic approach for building test data while writing and executing test cases then there are chances of missing some important test cases. Tester can’t justify any bug saying […]
Is Getcontent, Getitemcount commands applicable for the web applications or not? Please tell me.
Hi all,
I am Jagadeeswaran
I need sample test case, test data and test plan. Please send to my mail is anybody is having. thank you….
Hi all
I need some information about testing.
Shall we need any coding knowledge for the manual testing. SQL Query using for which testing
Hi,
Coding knowledge is not required in Manual test, we should have good functional knowledge of application.
SQL querys are used in Database testing.
hi
i want some testcases for web based insurance company.
please kindly provide me.
what r the real ti me questions for qtp tester.
hi vijay
can u give some sample test cases for email address
Hi vijay,
Thanks, I like this web site ,it is very useful .who want get itto this testing feild, it is giving self confidence.I am a Bcom graduate in 1996. I did testing course .I want to apply for the job without experience,will they call me?Is it easy to get job.
Hi Vijay
Thanks…the web site is quite interesting.
but will be more helpful if u provide some test documents like test plan,test case,test report etc with a sample example or real time application.
Whether testers come under qc or qa
Can you please provide me with some testcases for web based insurance company.
pls provide some test cases for health care system
[…] Required: We need to write test cases that ensure the complete coverage of the program logic. For this we need to know the program well […]
lets say an application is capable of running in 40gb harddisk ,1gb ram & P4 processor…you have to run that application in 20gb hard disk,256mb ram & p1 processor, then this testing is called as???
it’s a gud artical…i just want to know “wht standards we use to write test cases?”
Is it possible to write test cases for Whie Box Testing?Is there any format to be followed..
@ swetha
Generally white box testing performed by Developer,who doest use any fixed Tst case since these person know the application well so no need of test case for testing..
Cheers!!!
RahulKumar
@Tarannum ,@Soumaya
I think test case are specific to the the application its not generic.We need to have firm grip on application and we just need to write test case by own.
Cheers!!!
RahulKumar
@hemadri
Sample test case for Valid email
{\_ .}[aA-zZ]+||[0-9]+{_}{.}
this meta language allows user to enter any comnination of alphabet including numbers as well as period& underscorfe leaving period& underscorfe at the 1st place
Cheers!!
RahulKuamr
Dear Bibhu,
That is called Compatibility Testing.
shall i get a model document for writing test cases?
what are the widely accepted testing certifications. Can u provide the site details. i had two yrs of experience in manual testing.
hi nisha
ifu want then go this side www.istqb.com
i hope what u want u geted o byyyyyyyyyyy
tk cr & best of luck
Dear Nisha n Prashant the url is www.istqb.org
and ISTQB Certifications is better.
Can anybody help me out with game testing…or can anybody mail the used cases on game testing pls………….badly in need of the know how of the process
what are the tasks of manual tester in a company please explain right from the scratch.who does smoke testing,regression testing,system testing,integration testing does a manual tester gets involved in the above testing activites?
I m beginer in testing. I am not learining in any institute. I am working in a company frm 4 years as conversion. Now i changed my field to testing.
Can u give some simple testing advice how to learn frm begining.
What to do ?
I dont no to explain to my colauge.
plz provide some advice.
thank u.
ujjan
Hi can u pls provide me with a sample test case , a perfect sample with all inputs, explantion, actual and expected result pls i’m in need of it. Be it on login form or anything.
Pls help me out.
Thx.
@Ruchi
for login
preconditoon–require page shd open…
1>varify lofin link
2>varift input for username box
3>chck for null,blank data
4>varify pwdbox it shd be encrapted
5>vatify submit button
6>varify log out
7>and there are many more..
but TL shd approve before executing the,.
for more info ping me back a@ rahulkumarbangalore@yahoo.co.in
@swarna
see swarna its all depands on com to com..
br generally tester is involved in smoke,& regression
integration and accepentence taken care by tester only but onsite takes care of this..
u shd not confuse urslf since all done by tester only but by different tester…
for more info ping me back a@ rahulkumarbangalore@yahoo.co.i
I have come across the term ‘yellow box testing’.i would to like to know the procedures to perform this kind of testing.Is it similar to gray box testing?
i want some testcases for analysis strategy of player in soccer.Which type of testing is used.
please kindly provide me.
Pls. give me anyone standard flow of writing test cases with any example,pls it’s very urgent.
This is my email ID aparna_rangari@rediffmail.com
@Aparna,
Check your email for the Sample Test Case which may help you.
Regards,
VijayD
What are the scenarios for sending invitation to a friend or adding a friend in our buddy list?
What are the scenarios for sending invitation to a friend or adding a friend in our buddy list? Plz reply
hi all,wats the defference between bugs,defects,n error….
hi..can u give us clear pictorial representation of testcases….which will be table formate
Hi,
Can u tell us how write an test cases for an existing application
@ Julie- Error : Deviation for actual and the expected/theoritical value .
Bug : An Error found in the development environment before the product is shipped to the customer .
Defect : An Error found in the product itself after it is shipped to the customer.
For Testcase Template check the link :
http://www.softwaretestingsuck.....mplate.doc
@Rashmi-
I wonder we can do testing on Existing Applications only . If the application doesn’t exist how come we do Testing.
I think you are about to ask some think like this.. ” How to write Testcases for
Make it clear about your question…
Thanks vijay for this template. Can u please tell that is there need of writing the test cases in exactly the same format like verify, using, with, to format?
can anybody tell me which are the most important questions regarding software testing??
how to define the complexitiy of a testcase
what is it that makes a tetcase simple or complex
@anita
Test cases should be understandable by a third party have no knowledge of the application to excecute testing. This is the widly acceptable criteria for making a test case and we cas say it should be legible and easy to understand…
Hi Friends,
Currently i am working in Non-IT field and planned to switch my career to testing.I had learned the basics of testing,and now i am very eager to learn testing practically with real time projects.
If any one interested to teach testing personally with real time projects , i will be more grateful, or else show me the right place in chennai.
Thanks & regards
selvam.ba@rediffmail.com
I am new to QTP, i want to learn it as soon as possible, please help me out to learn this tool, it will be very useful for me.
pls any one send sample test case to me
sure_gs2000@yahoo.com, this is my mail id.this is suresh.
hi am siva,
i want a sample test case with example,
can anyone pls help me out..
my mail id g.sivasu@gmail.com
Regards,
siva
Dear Suresh & Siva,
I have send you a sample test cases , check it out and if you have any doubts let me know.
My e-mail id : lonegladiator@gmail.com
Regards,
Tiger2K
Hello Nisha,
s/w test engg comes under Quality Control
hi
plz send me 10 cases of testing for yahoo compose mail,its urgent .i need it for my interview.on its basis company will select me.on monday i hav my interview.so plz help me.i’ll be thanful to u.
my email id: neha_sheokand11@yahoo.co.in
Hi Neha,
Check your e-mail, i have send you the test cases
Hope you get this job
Best of Luck,
Regards,
Tiger2K
Dear shriram,
i wanna ask that stress testing and Compatibility Testing are same or not? (in reference of question asked by Bibhu.)
plz clear my confusion.
hi all,
i have a question asked in interview.
its like this,
how do you rate yourself in manual testing.
i told 7 out of 10.
then interviewer asked me why 7?
i think the answer i gave was foolish answer and he was not satisfied and i answered for rest all questions.
please tell me what was i suppose to answer for such questions?
Hi Rajatha,
The answer which you gave was perfect. 7 is a pretty good rating.No one can say 10 out of 10 because no one is perfect. we all tend to do mistake somewhere
are another.
More over in regards to manual testing, their is always scope for improvement and learning.
so the remaining 3 points which you did not give for yourself is actually your improvement
and learning points, which you will ponder as the time goes on.I personally think u gave the right answer. if the interview got goofed up. it should be
for something else or maybe your luck . but certainly not for that answer.
Regards,
Tiger2k
hi tiger,
very glad to see your immediate response.
actually when he asked why only 7, for that i said still i need to get more exposure in manual testing. again he asked like what in that sense still what you have to learn in manual testing?
i said after becoming bit comfortable in manual testing then i want to into automation side like that i continued then he did not satisfied it seems he interrupted and moved to another question.
Hi Rajatha,
Your answer was right, but the way you put across may not have gone well with him\her.
Check the difference this sentences make :
Your sentence :”actually when he asked why only 7, for that i said still i need to get more exposure in manual testing.”
Better way : ” I think learning never ends, so everyday i learn from whatever i do and feel that their is certainly a scope for improvement. i set myself very high standards that is why i am never satisfied and try to do better. so i wont give full points for myself, then
their wont be any scope for improvement” smile a little after this sentence.
This sentence can change the whole course of your conversation.
Simple things, you indirectly saying to him that my 7 rating is equavelent to any normal person
10 rating. because ur targets are higher than common candidates and you tend to improve
and you learn continously.
Do you know what is the difference between briyani sold on road side shop and five star hotel.
very simple. the way it is presented. that is how they are different.
This is once again my persception. its not a testing question. so cant give a specific answer for it.
but i am sure, if i would have been the interviewer. i would have asked when do like to join our join after this answer
Regards,
Tiger2K
Rajatha,
Dont misunderstand my example of road side shop and five star hotel.
i was not referring your answer. but i am giving a generic example of the importance of presentation and choice of words.
Hope u understand what i was intending to convey
Regards,
Tiger2K
thanks a lot Tiger,
your answer is very useful.
i will answer in the same way in my next interview when i asked this question.
thank you again.
thats why i thought i answered correctly except for few general questions, why i did not get any feedback till now.
though we are technically good, we do mistakes like this.
but now i got my mistake.
one more question for that also i could not give proper answer
question is like this,
i mentioned OS as Windows 2000/XP in my profile.
interviewer : why you mentioned like this.
me : i tested this application in these platforms.
interviewer : then what is the difference that you found while testing in these 2 OS.
i did not give proper answer,
please tell me Tiger what i should answer for such questions.
general question :
being a test engineer we need to have good communication skill.
how to learn to put across our ideas in a perfect and impressive way.
how to get to know to express our ideas like how you explained.
please tell me.
thanks a lot,
@rajatha :
You mentioned like Windows 2000/XP in your profile.
You can justify your answer like this.
In general in Testing, you may come across some situations that you need to Test your Application on Different Platforms and Supporting Environment.
In Real customers may use our application/product in their environment, hence you need to assure that your product/application works perfectly with their environment.
Ping me back if you need more information.
Srikanth
Testing Analyst
hi rajatha
In some situations we have to test our application in different os platform that is also one type of requirement i.e., customer wants to use his application on two different os, at that time we have to test the application in two os environment.
i think this is enough for u if u have any doubts send me to my mail id gsreddy50@gmail.com
hi all i am new to testing i want some help from u r s .if u have any notes on web testing & example test cases
please send me to my mail id gsreddy786@gmail.com
i am always thankful to them who sent me the notes
Hi Rajatha,
I am really not sure what was the intent of interviewer to ask about the OS. because ur not testing the OS your were testing the application.
If you have mentioned in your resume that you have tested this application on 2 different OS then his question makes sense. because then the question is why did you test the application on 2 different OS.
what is the need to test the application on 2 different OS.
About the communication part rajatha, well yes i always belived in a professional environment communication is a must. their are N number of people in the industry, who simply dont talk. They are technical sound but that is not the only thing which will allow you to grow. no one know their existance their knowledge.
they just come to office. open the mail box and do whatever work is allocation to them, they dont explore. they dont question. this way talent is wasted and that actually affect the person also. no one recognise them since they dont do anything special. just do whatever is given to them. communication will only grow if you talk.
Regards,
Tiger2K
thanks Tiger,
by the way, is it true that we shouldn’t follow up regarding our interview feedback. everyone says we lose our prestige i mean being experienced we shouldn’t do follow ups.
so by keep on discussing with the peers and we should always try to use technical terms while discussing, so then only automatically will improve our communication wright.
thank you again..
Hi,
Even i too got the same doubt what Rajatha got…shouldn’t we follow up on the status or feedback of the interview?
HI GS Reddy,
I have send you the sample test cases. check it out and if you have doubts let me know.
Rajatha and Sajani, if you have any doubts regarding this topic e-mail me to lonegladiator@gmail.com let us discuss.
Regards,
Tiger2K
Rajatha and Sajani,
Yes, you should follow up on the status or feedback of the interview.
Reason being that u know where you went wrong. only then you can correct yourself. i dont see any prestige issue coming into play here.
Asking doubts does not make any one small it actually sends a statement to others that your interested in learning.
I dont see any thing wrong in asking for feedback of the interview. its another thing that the interviewer is ready to provide or not
but asking is your right, because u also spend your precious time attending interview, as much as he/she spend time taking on.
Regards,
Tiger2K
Hi to all,
This is venkat. I am working as a tester in a small scale company. The above discussions and the information is really help ful to us like newer to testers.
Hi tiger2k ur reply is too helpful to me. Thanks alot man. Keep in reply to us.
Tiger2k Can i meat u in gmail ?
Hi,
How to test the font size, allignment, pixels using manual testing?
Hi,
How to test the font size, allignment, pixels in a webpage using manual testing?
Hi Venkat,
My email id is lonegladiator@gmail.com
Regards,
Tiger2K
I am new to Automated Testing, I want to learn it as soon as possible, please help me out to learn the tools, it will be very useful for me.I am currently into Manual Testing.
Hi
I am new in Testing field.I have just join an MNC.All these above conversation was quite helpful for me.
I have joined as a Testing professional due to my family responsibilties even I was working on .Net platform having some projects also.
So anyone please help me out by clearing out that what are future oppurtunities in Testing and what are different profiles under this.
I will be very thankful to you.
Hi ,I was previously into telecom domain mainly in to RF.How is it helpful to change the domain now into testing after 2.5yrs of telecom…
This really provided me a good info, i want to further about testing like
1. What are the exact procedures/process followed in software testing from the begining of the project to end of the projects.
hi vijay
how many testplans can we prepare for single project?
I am highly impressed by the disscusion over here.
Can I get the email id for Vijay D and Tiger2K? Thanks and Regards- Rash
Hi Rash,
My E-mail id lonegladiator@gmail.com. if you have any queries you can shoot at this e-mail id.I will try my best to answer.
Regards,
Tiger2K
Please can u send Testing interview Questions and answers
please can u send the defect tracking tool name and how
to use it
Thankyou for information.. can anyone please send me readymade test cases for study.. i am a student
Hi All,
Could u send test case template and give an example
Hi friends,
Can u tell me what is test plan and their types.
hi,
I must tell u that this is a cool site for all the doubts on Qa.
Now, I have just completed my Qa testing course.Thinking that i would land into a testing job sooner or later!
As the days is passing now iam kind of scared as whether i will get a job?? with out any experience how will i tune my knowledge of testing ??what shud i do so that i should not be left behind??also can anyone send me a sample to test cases to my id rajyakumar@yahoo.com.I appreciate it! thanks! raji
Leave a Comment