IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

what are test cases need when you do the unit test cases?


IBM Mainframe Forums -> Testing & Performance
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jspaulpeter

New User


Joined: 25 Aug 2005
Posts: 12

PostPosted: Fri Jan 19, 2007 9:50 am
Reply with quote

hi friends,


what are test cases need?

if i will do the unit test cases for one program that is source.
what are the steps i need to follow
Back to top
View user's profile Send private message
rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Fri Jan 19, 2007 12:32 pm
Reply with quote

Prepare the input data such that it should execute all the lines that you have coded.

So while preparing test data...you might encounter all kinds of test cases
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Sat Jan 20, 2007 12:21 am
Reply with quote

jspaulpeter

Test cases should exercise all conditions in your program, with expected results.

Lets say you have two input files, a master file, and a transaction file. You update the master record (or create a new one for a transaction that does not exists and write a new master file.

Test cases in part might be:

Test case: Empty master file
Expected result: Program abends with message, master file should NEVER be empty

Test case: Empty Transaction file
Expected Result: Program continues, with message, Transaction file could be empty (holiday)

Test case: Transaction file not in expected sort order.
Expected Result: Program abends with message, record number previous key, current key.

Test case: Duplicate Transaction file keys.
Expected Result: Programs updated master file with both transactions.

Test case: Duplicate Master file keys.
Expected Result: Program abends with message, Record number, key

You need to be very specific with the test case and the expected results. If you cannot do this, you do not understand the requirements well enough.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Testing & Performance

 


Similar Topics
Topic Forum Replies
No new posts Convert Service Unit to CPU Seconds All Other Mainframe Topics 1
No new posts Zunit Test case editor error Testing & Performance 4
No new posts Copying GDG version(all/few) from pro... CLIST & REXX 13
No new posts Related to Unit Testing Testing & Performance 2
No new posts REXX Test under Mask??? CLIST & REXX 3
Search our Forums:

Back to Top