Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Testing & Performance analysis
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    Post subject: what are test cases need when you do the unit test cases?
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    Post subject:
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    Post subject: Re: what are test cases need when you do the unit test cases
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    IBMMAINFRAMES.com Support Forums -> Testing & Performance analysis All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts COOLGEN - TSO TEST FACILITY indianrajput CA Products 4 Wed Nov 02, 2016 9:28 pm
This topic is locked: you cannot edit posts or make replies. How to supply called sub-program from... dchristensen JCL & VSAM 25 Wed Sep 14, 2016 11:36 pm
No new posts Two different PDS production and test... Mani453 CLIST & REXX 6 Fri Nov 20, 2015 2:25 pm
No new posts Weird test results when Xpediter is t... Crunch Compuware & Other Tools 6 Tue Oct 06, 2015 7:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us