473,382 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How do i write test cases?

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 11217
Niheel
2,460 Expert Mod 2GB
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
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
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
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
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
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
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
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
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
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
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
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.