By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,068 Members | 874 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,068 IT Pros & Developers. It's quick & easy.

How do i write test cases?

P: 1
i have learnt testingtools but still i dnt know how to write any testcases,i just have theoritical knowledge,so can u help me with practical,what do i do to write a test case
Sep 11 '06 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 100+
P: 2,330

I will move this post to the programmers lounge as it is a specific help question.

Welcome to the community and hope you find the answers you are seeking.

Sep 12 '06 #2

P: 23
please , can you specifically tell us,which domain u r seeking to write test cases?
if u want to test a code written in c,
u can adopt several testing methodologies
1.Unit testing
2.Functional testing
3.IMI(inter modular interface) testing
4.Functionality testing
5.system testing

methods,1-4 comes under white box testing and 5 comes in black box testing

for method 1.-->using c language

to start with,identify all loops,like while,for etc
ex: for(i=0;i<5;i++)
printf("\n hai");

in this loop,u can write test cases to test this loop,by assigning this values to i
to find the loops r working fine

2.for functional testing,create anoter directory,write down dummy functions for all functions u have in your code and call these dummy functions which access ur data base and see they r working fine.

i will continue if u find this info is usefull
Sep 13 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.