‎2009 Jan 11 1:31 PM
Hi,
I want to do unit test for some perform that exist in some big program.
What the steps for doing such of thing?
Best Regards
‎2009 Jan 12 8:49 AM
Hi..
set a break-point in that perform. execute that mail program. automaticlly prog.. execution will halt at break point. then execute thet perform by pressing F5. if any values u need to pass then in debugging only pass that values. for unit testing u have to know what are the values u need to provide and what the expected output.
and procede like that with different data.
regards,
KP
‎2009 Jan 12 8:49 AM
Hi..
set a break-point in that perform. execute that mail program. automaticlly prog.. execution will halt at break point. then execute thet perform by pressing F5. if any values u need to pass then in debugging only pass that values. for unit testing u have to know what are the values u need to provide and what the expected output.
and procede like that with different data.
regards,
KP
‎2009 Jan 12 12:43 PM
Hi ,
For testing a subroutine in a big program , it is suggested to put a break at the specific subroutine call.
On executon of the main program the cursor is positioned to the specific statement with break point.
Then ypu can go ahead debugging the subroutine as all teh values will already be avaiable at that point itself.
Regards,
Radhika.
‎2009 Jan 13 10:46 AM
Hi,
if u want to test the perform in big program just put break point on that perform and run the program it automatically goes to debugging mode on particular statement and use F5 for single step or f6 for further process....
Regards,
Madhu