Contents
Overview
Mainframe testing has vast demand in IT industry. This domain is more
technical as compare to manual testing. Hence, tester should have the
expertise on Mainframe tools and basic understanding of mainframe
testing.
Batch Testing
Most of the times we receive the requirement to unload the data from
source to destination tables.
Some requirements for getting the expected results in files. For these
above requirements you must need JCL to submit. JCL is an interpreter
between COBOL program and MVS operating system. JCL invokes the
program and hit the logic and put the expected result in to either output
file or in a table.
Batch Testing
Role of Tester:
Set up the JCL for test environment for example change the nodes from
file, Set up the SCHENEV parameter to test region.
Once code is available in test environment run the job manually. Job has
to complete by MAX CC=0 or 4.
Check the output file of the job and see the expected result is available in
file or not. If available then document the same and take the snapshots.
Some times JCL have the step to unload the data from one table, Process
it as per program logic and store expected result in another table. Hence,
you need to check the expected result in to table instead of file.
Online Testing
Online Testing
Role of Tester:
As a tester you will have to understand the online transaction
process which is going in existing mainframe application.
You will see the screens to update the transaction data and submit
the claim for processing.
Once you submit the transaction after giving the right data, JCL will
invoke and it will call the program to hit the logic for transaction.
If your given data is correct then your claim will process other wise
it will give youre the reject message.
Here each job runs one by one as per scheduling daily, weekly, monthly
jobs. Also here predecessor jobs output file may be input to the
successor job. For example job A ran and completed good and its xxx
output file will be in input to job Y. Hence in production whole cycle
should complete in a specific given time.
Here each job runs one by one as per scheduling daily, weekly, monthly
jobs. Also here predecessor jobs output file may be input to the
successor job. For example job A ran and completed good and its xxx
output file will be in input to job Y. Hence in production whole cycle
should complete in a specific given time.
1) NOTIFY Parameter : Once you submit the JCL, You must mention this
parameter to notify the status of the submitted JCL.
EG:
10
11
1) JCLLIB : JCL library is for pointing out the procedures written for the JCL.
Here mention the PDS of your liabrary.
EG:
12
1) JOBLIB : The JOBLIB statement defines the library where the program is
residing. It is placed after the JOB statement and is effective for
every JOB steps.
EG:
//JOBLIB
13
DD
DSN=XXXX.TEST.QA.BTCHLOAD,DISP=SHR
14
RDBMS DB2
DB 2 supports SQL, just like any other RDBMS and can run both in
batch and online modes.
and Tablespaces.
Logical objects describe data as perceived by the end developers
and users. Examples:
etc.,
15
RDBMS DB2
2) View Table : Directly you can go in to the table using DB2 panel option
and use the table for viewing / deleting / updating the records.
3) SPUFI : Sequential processing using file input : This is another way for
writing multiple SQL queries for DB2 tables. Generally, Developers use
this option.
As a tester you can use either QMF or View Table directly in DB2. These
above methods we use for mainframe testing.
16
Questions ??