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
How do i write test cases?
Collapse
X
-
Tags: None
-
Hi,
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
regdsComment
Comment