View previous topic :: View next topic
|
Author |
Message |
sriraj1122
New User
Joined: 18 Dec 2008 Posts: 15 Location: Hyderabad
|
|
|
|
Hi,
I am facing a challenge in my work.
I have two programs Pgm A and Pgm B. Basically Pgm A has to call Pgm B. Pgm A is to be coded and Pgm B is finished. Pgm A passes a parameter which has the length of 300 to Pgm B. Now I have to test Pgm B.
How can I test the prgm ?
I followed one way.. I coded a sample Pgm A in which im calling Pgm B and I am passing the parameters manually. Is there any way of testing the prgm B more efficiently ? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
I would write a small driver program A that reads a file of parameter records (each 300 bytes long) and calls B with each parameter record. You can then perform multiple tests in one execution of this driver program and document the expected results of each parameter record to know if B passed the test or not. |
|
Back to top |
|
|
sriraj1122
New User
Joined: 18 Dec 2008 Posts: 15 Location: Hyderabad
|
|
|
|
That sounds gr8... anyother methods are appreciated... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
anyother methods are appreciated... |
since the suggestion was the best You could get, start doing a bit of homework Yourself
no reason to whine and ask for more |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Is there any way of testing the prgm B more efficiently ? |
Change your sample calling program to call the sub-program multiple times providing different parm values and showing the "results" for each call. . . |
|
Back to top |
|
|
|