Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple test cases 2

Status
Not open for further replies.

DotNetGnat

Programmer
Mar 10, 2005
5,548
IN
Guys,

I have written an application in C++ and I am planning to run some test cases...What is the best way to do them...Are there any tools out there that will help me test my application...

thanks

-DNG
 
What kind of tests?
If you just want to test each individual class & function, I usually just write my own test harness that calls all those functions...
If you have a program with a GUI and you want to test it using the GUI, then there are lots of test apps out there for that, some expensive and some really expensive. Mercury Winrunner and Rational Visual Test are 2 that I've seen.
 
I wanted to test my code for any memory leaks...How can I do that...

thanks

-DNG
 
Creating a good stress test program and watching Task Manager is one way.
There are commercial memory leak detectors available like NuMega Boundschecker...
 
<rant> Good on you for trying. Testing your own code is really hard to do. First, it's hard to get into the psychological frame of mind to try your best to break something that you lovingly created. Second, you will probably tend to think of the same difficulties when you're testing (weird data sets, coincidences of events that lead to the wrong outcome etc.) that you thought of when you were coding.

Perhaps that's why so many "semi-commercial" packages out there (i.e. things written commercially but sold to a smallish customer-base, and therefore brewed up on a budget and ill-tested) are really rather awful.
</rant>
 
Thanks for all your replies guys...have stars...

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top