Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unit Test For perform

Former Member
0 Likes
514

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
486

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

3 REPLIES 3
Read only

Former Member
0 Likes
487

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

Read only

Former Member
0 Likes
486

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.

Read only

Former Member
0 Likes
486

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