Anda di halaman 1dari 17

IBM Global Services

Overview of Mainframe Testing

2009 IBM Corporation

IBM Global Services

Contents

Overview of Mainframe Testing


Batch Testing
Online Testing
JCL for Testers
Production environment for Mainframe
DB2 for Mainframe Testing

2009 IBM Corporation

IBM Global Services

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.

Tester should have good understanding of JCL (Job Control Language)


and its parameters to set up the environment for testing.

In most of the mainframe projects clients demand Base line Testing,


System Testing, Integration testing and Regression testing.

2009 IBM Corporation

IBM Global Services

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.

2009 IBM Corporation

IBM Global Services

Batch Testing

Role of Tester:

As a tester before deployment of code in test environment you need to pull


the required JCL from production environment or need to request
developer to provide the JCL required for your batch testing.

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.

2009 IBM Corporation

IBM Global Services

Online Testing

Online mainframe testing is based on CICS (Customer information


control system), COBOL, DB2 / IMS DB / DC.

Online testing is completely base on the CICS screens developed for


processing the online transactions. For example daily Claim processing,
Account billing, Insurance, Air ticket reservation etc. these type of
transaction only done in online mainframe testing.

As per requirements testers have to submit the transaction and need to


validate the expected results and calculations for the exact transactions.

2009 IBM Corporation

IBM Global Services

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.

Once claim submitted successfully, Tester needs to validate the


screen results and validate data in to the tables. The same claim
data you must see in specific table belong to the transaction.

2009 IBM Corporation

IBM Global Services

Production Environment for Mainframe

In production environment jobs (JCL) have a set in a cycle and it invoke


as per scheduling. Suppose application XYZ has 20 jobs to trigger the
programs then these 20 jobs need to schedule in mainframe scheduler
like ESP scheduler and CA7.

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.

2009 IBM Corporation

IBM Global Services

Production Environment for Mainframe

In production environment jobs (JCL) have a set in a cycle and it invoke


as per scheduling. Suppose application XYZ has 20 jobs to trigger the
programs then these 20 jobs need to schedule in mainframe scheduler
like ESP scheduler and CA7.

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.

2009 IBM Corporation

IBM Global Services

JCL for Testers

Few important parameters are required to set up the JCL in test


environment.

1) NOTIFY Parameter : Once you submit the JCL, You must mention this
parameter to notify the status of the submitted JCL.
EG:

10

2009 IBM Corporation

IBM Global Services

JCL for Testers

Few important parameters are required to set up the JCL in test


environment.

1) SCHENV Parameter : This should be the region of testing in mainframe.


Point the parameter to your test region where code is deployed. This
important parameter to point out the code.
EG:

11

2009 IBM Corporation

IBM Global Services

JCL for Testers

Few important parameters are required to set up the JCL in test


environment.

1) JCLLIB : JCL library is for pointing out the procedures written for the JCL.
Here mention the PDS of your liabrary.
EG:

12

2009 IBM Corporation

IBM Global Services

JCL for Testers

Few important parameters are required to set up the JCL in test


environment.

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

2009 IBM Corporation

IBM Global Services

JCL for Testers


DSN : Dataset name, this parameter is for defining the input/output file name
DISP: DISPOSITION
DCB (Data Control Block)
Space

14

2009 IBM Corporation

IBM Global Services

RDBMS DB2

DB 2 is an abbreviation for Database 2. It is a RDBMS developed


by IBM specifically for Mainframe computers.

DB 2 supports SQL, just like any other RDBMS and can run both in
batch and online modes.

DB 2 manages all the data through a set of objects.


Objects are broadly classified into two types Viz. physical objects
and logical objects.
Physical objects are objects that are actually stored on the storage
media. These are managed by DBAs. Examples: Databases

and Tablespaces.
Logical objects describe data as perceived by the end developers
and users. Examples:

Tables, indexes, synonyms, views,

etc.,
15

2009 IBM Corporation

IBM Global Services

RDBMS DB2

Retrieve Test Data for Validation

There are different tools used for accessing the tables


1) QMF (Query Management Facility): This is one of the tool in DB2 panel
to write a single query at a time and Add/Update/ Retrieve the data from
the table. Here in this tool you need to give the single SQL query.

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

2009 IBM Corporation

IBM Global Services

Questions ??

2009 IBM Corporation

Anda mungkin juga menyukai