473,480 Members | 1,777 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How do i write test cases?

1 New Member
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
2 11220
Niheel
2,460 Recognized Expert Moderator Top Contributor
Madhavi,

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.

~ KUB
Sep 12 '06 #2
koder
23 New Member
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
regds
Sep 13 '06 #3

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

Similar topics

33
3442
by: Nick Evans | last post by:
Hello there, I have been on and off learning to code (with python being the second language I have worked on after a bit of BASIC). What I really want to know is, if you are going to actually...
15
2794
by: marco | last post by:
Hi, I'm a Javascript Newby. But that doesn't discourage me at all. At this time I'm working on a little javascript-gimmick. A white browser page filled with white (invissible for the viewer)...
13
9580
by: Stumped and Confused | last post by:
Hello, I really, really, need some help here - I've spent hours trying to find a solution. In a nutshell, I'm trying to have a user input a value in form's textfield. The value should then be...
3
11162
by: Anbu | last post by:
Hi All, I have 5 test cases (b, c, a, d & e) , NUnit picks up the in alphabatical order. I want to execute the test case e first before the exection of other function. Is there any way to...
3
14006
by: Simon Gare | last post by:
Hi All, having a problem with the error "Either BOF or EOF is True, or the current record has been deleted. " found a workaround that allows the non existent data to be bypassed and insert a 0...
48
2443
by: Ark Khasin | last post by:
Unit testing is an integral component of both "formal" and "agile" models of development. Alas, it involves a significant amount of tedious labor. There are test automation tools out there but...
23
1781
by: jim | last post by:
Look at Microsoft and Windows apps in Vista.... They aren't .Net. If .Net is so great, why doesn't MS use it more? In fact, what desktop applications does Microsoft code in .Net? I think...
0
1699
by: TheFunkyGibbon | last post by:
Hello, 1st post. Now the problem here is that I have never written a test script. I have an interview with ITV next thursday as a Test Analyst and I want to make a good impression. I know how to...
5
12543
by: DotNetDanny | last post by:
Hello Machine: Windows Vista Business, standalone machine (no domain). Installed an old classic ASP webapplication in IIS7, running under a new app.pool with 'NETWORK SERVICE' account (using...
27
4174
by: duli | last post by:
Hi: I would like recommendations for books (in any language, not necessarily C++, C, python) which have walkthroughs for developing a big software project ? So starting from inception, problem...
0
7046
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7048
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7088
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6956
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5342
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4485
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2997
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.