You are on page 1of 12

UTC #

Subject

Test Name Designer

Status

Step
Name

Test Scenario

UTC1

CLM_DISTRB\ DDL_01
DDL

Umashankar

Ready

Step 1

Validate data types


of columns in
target table

UTC2

CLM_DISTRB\ DDL_02
DDL

Umashankar

Ready

Step 1

Validate data types


of columns in
target table

UTC3

CLM_DISTRB\ DDL_03
DDL

Umashankar

Ready

Step 1

Validate target
table is present in
all the 6 databases.

UTC4

CLM_DISTRB\ Control_M_JO Umashankar


Control_M_JO B_01
B

Ready

Step 1

Run the Control M


job (provide the
job name) and
check the status

UTC5

CLM_DISTRB\ Run01_Count Umashankar


Run01
_01

Ready

Step 1

Verify the count of


source table
records and target
table records

UTC6

CLM_DISTRB\ Primary_Key_ Umashankar


Run01
Check_Uniqu
e

Ready

Step 1

Validate Unique
Key(clm_id, strt_dt
and strt_tm)

UTC7

CLM_DISTRB\ Primary_Key_ Umashankar


Run01
Nullability

Ready

Step 1

Validate
Nullability(clm_id,
strt_dt and strt_tm)

UTC8

CLM_DISTRB\ Default_Valu Umashankar


Run01
e_Check_1

Ready

Step 1

Validate data
loaded correctly
-----------strt_dt,strt_
tm,end_dt,end_tm

UTC9

CLM_DISTRB\ Direct_Move_ Umashankar


Mapping &
TMS
Transformati
on

Ready

Step 1

Validate
clm_id,pmnt_rls_dt
and pmnt_mthd_cd
columns are loaded
correctly -------target minus
source ,direct move
column

UTC11

CLM_DISTRB\ Null_Check
Run01

Umashankar

Ready

Step 1

Validate that NULL


is moved for the
derived column
reimb_amt

UTC12

CLM_DISTRB\ Derived_Data Umashankar


Mapping &
_Check_TMS_
Transformati 1
on

Ready

Step 1

Validate that
correct sum value
is moved to the
target columns
-----ncgs_prmpt_pay_int
_amt,
ncgs_prmpt_pay_int
_day_cnt,
tltgtn_int_amt,
tltgtn_int_day_cnt,
its_accs_fee_amt,
its_admn_fee_amt
------ target minus
source

UTC13

CLM_DISTRB\ Derived_Data Umashankar


Mapping &
_Check_SMT_
Transformati 1
on

Ready

Step 1

Validate that
correct sum value
is moved to the
target columns
-----ncgs_prmpt_pay_int
_amt,
ncgs_prmpt_pay_int
_day_cnt,
tltgtn_int_amt,
tltgtn_int_day_cnt,
its_accs_fee_amt,
its_admn_fee_amt
------ source minus
target

UTC14

CLM_DISTRB\ Rec_Status_I Umashankar


Mapping &
d_check
Transformati
on

Ready

Step 1

Validate the correct


max value is
moved to the
target columns
------ncgs_prmpt_pa
y_int_prcs_dt,
tltgtn_int_prcs_dt,
int_adj_reqst_dt,
int_ovrrd_strt_dt----target minus
source

UTC15

CLM_DISTRB\
Mapping &
Transformati
on

CLM_DISTRB\ Umashankar
Mapping &
Transformatio
n

Ready

Step 1

Validate the correct


max value is
moved to the
target columns
------ncgs_prmpt_pa
y_int_prcs_dt,
tltgtn_int_prcs_dt,
int_adj_reqst_dt,
int_ovrrd_strt_dt----source minus
target

UTC16

CLM_DISTRB\
Mapping &
Transformati
on

CLM_DISTRB\ Umashankar
Mapping &
Transformatio
n

Ready

Step 1

Validate
sys_of_rec_id
column values
correctly populated
from
source.source
minus target

UTC17

CLM_DISTRB\
Mapping &
Transformati
on

CLM_DISTRB\ Umashankar
Mapping &
Transformatio
n

Ready

Step 1

Validate
sys_of_rec_id
column values
correctly populated
from
source.target
minus source

UTC18

CLM_DISTRB\ CLM_DISTRB\ Umashankar


Run01
Mapping &
Transformatio
n

Ready

Step 1

Validate that '1' is


moved for the
derived column
Rec_status_id

Source/
Identifier
/* SOURCE DATABASE */
SHOW TABLE PRV1_EDW_STG_TAB.CDW_CLM_LINE_WORK;
/* TARGET DATABASE */
SHOW TABLE PRV1_EDW_BASE1_TAB. CLM_DISTRB; -- Target table database
SHOW VIEW PRV1_EDW_BASE.CLM_DISTRB; -- View created on top of target table

SELECT a.* , b.* FROM


(SEL databasename , tablename, columnname,ColumnType,ColumnLength,Nullable,
COALESCE(DecimalFractionalDigits, 0) AS FractionalDigits , COALESCE(DecimalTotalDigits, 0) AS
TotalDigits FROM dbc.COLUMNS WHERE tablename = 'CLM_DISTRB'
AND databasename IN ( 'clm1_edw_base','clm1_edw_base1_tab','clm1_edw_load') ) a
FULL OUTER JOIN
(SEL databasename , tablename, columnname,ColumnType,ColumnLength,Nullable,
COALESCE(DecimalFractionalDigits, 0) AS FractionalDigits , COALESCE(DecimalTotalDigits, 0) AS
TotalDigits FROM dbc.COLUMNS WHERE tablename = 'CLM_DISTRB'
AND
databasename
IN ( 'prv1_edw_base','prv1_edw_base1_tab','prv1_edw_load'))b
SELECT
databasename
FROM
dbc.tables WHERE tablename = 'CLM_DISTRB' AND databasename IN
ON SUBSTR(a.databasename,6) = SUBSTR(b.databasename,6) AND a.tablename = b.tablename AND
('clm1_edw_base',
a.columnname
= b.columnname
'clm1_edw_base1_tab',
WHERE a.columnname IS NULL OR b.columnname IS NULL OR a.columntype <> b.columntype OR
'clm1_edw_load',
a.columnlength <> b.columnlength
'prv1_edw_base',
OR
a.Nullable <> b.Nullable OR a.FractionalDigits <> b.FractionalDigits OR a.TotalDigits <> b.TotalDigits
'prv1_edw_base1_tab',
ORDER BY 1,2,3,9,10,11;
'prv1_edw_load');

Run the Control M job EWFINU009R and check the status

Source count: Select count(*) from SHOW TABLE PRV1_EDW_STG_TAB.CDW_CLM_LINE_WORK WHERE


PROCESS_DT BETWEEN DATE '2011-02-01' AND DATE '2011-07-31'; Target count : Select count(*) from
PRV1_EDW_BASE1_TAB.CLM_DESTRB;

Select clm_id,strt_dt,strt_tm from PRV1_EDW_BASE1_TAB.CLM_DESTRB group by clm_id, strt_dt and strt_tm


having count(*)>1;

select clm_id,strt_dt,strt_tm from PRV1_EDW_BASE1_TAB.CLM_DESTRB where clm_id is null or strt_dt is null


or strt_tm is null;

SELECT *
FROM PRV1_EDW_BASE1_TAB.CLM_DISTRB
WHERE strt_dt<> DATE '1970-01-01'
OR strt_tm<>'00:00:00'
OR end_dt<> DATE '9999-12-31'
OR end_tm<>'23:59:59';

select clm_id,pmnt_rls_dt,pmnt_mthd_cd from PRV1_EDW_BASE1_TAB.CLM_DISTRB minus select


clm_id,check_dt,payment_method_cd from STAGE.CDW_CLM_LINE_WORK where clm_line_nbr = 1 and
PROCESS_DT BETWEEN DATE '2011-02-01' AND DATE '2011-07-31';

select reimb_amt from


PRV1_EDW_BASE1_TAB.CLM_DISTRB
where reimb_amt is NOT NULL

select
ncgs_prmpt_pay_int_amt,ncgs_prmpt_pay_int_day_cnt,tltgtn_int_amt,tltgtn_int_day_cnt,its_accs_fee_amt,its_a
dmn_fee_amt from PRV1_EDW_BASE1_TAB.CLM_DISTRB minus select
clm_id,sum(ncgs_interest_amt),sum(ncgs_accumulated_interest_days),sum(tl_interest_amt),sum(tl_accumulat
ed_interest_days),sum(access_fee_amt),sum(administrative_fee_amt) from STAGE.CDW_CLM_LINE_WORK
group by clm_id having PROCESS_DT BETWEEN DATE '2011-02-01' AND DATE '2011-07-31'

select
sum(ncgs_interest_amt),sum(ncgs_accumulated_interest_days),sum(tl_interest_amt),sum(tl_accumulated_int
erest_days),sum(access_fee_amt),sum(administrative_fee_amt) from STAGE.CDW_CLM_LINE_WORK where
encounter_service_nbr = 1 and PROCESS_DT BETWEEN DATE '2011-02-01' AND DATE '2011-07-31' minus
select
ncgs_prmpt_pay_int_amt,ncgs_prmpt_pay_int_day_cnt,tltgtn_int_amt,tltgtn_int_day_cnt,its_accs_fee_amt,its_a
dmn_fee_amt from PRV1_EDW_BASE1_TAB.CLM_DISTRB

SEL clm_id,
ncgs_prmpt_pay_int_prcs_dt,
tltgtn_int_prcs_dt,
int_adj_reqst_dt,
int_ovrrd_strt_dt
FROM PRV1_EDW_BASE1_TAB.CLM_DISTRB
MINUS
SEL clm_id,
MAX (ncgs_interest_processed_dt),
MAX(tl_interest_processed_dt),
MAX(adjusted_request_dt),
MAX(start_interest_override_dt)
FROM PRV1_EDW_STG_TAB.CDW_CLM_LINE_WORK
WHERE encounter_service_nbr = 1
GROUP BY 1
SEL clm_id,
MAX (ncgs_interest_processed_dt),
MAX(tl_interest_processed_dt),
MAX(adjusted_request_dt),
MAX(start_interest_override_dt)
FROM PRV1_EDW_STG_TAB.CDW_CLM_LINE_WORK
WHERE encounter_service_nbr = 1
GROUP BY 1 minus SEL clm_id,
ncgs_prmpt_pay_int_prcs_dt,
tltgtn_int_prcs_dt,
int_adj_reqst_dt,
int_ovrrd_strt_dt
FROM PRV1_EDW_BASE1_TAB.CLM_DISTRB

select clm_id,case origin_cd = '08' then 6 else case origin_cd = '12' then 18 else case source_system_cd in
('01', '02') then 2 else case source_system_cd = '03' then 6 end end end end as sys_of_rec_id where
process_dt between date minus select sys_of_rec_id from PRV1_EDW_BASE1_TAB.CLM_DISTRB

select sys_of_rec_id from PRV1_EDW_BASE1_TAB.CLM_DISTRB minus select clm_id,case origin_cd = '08' then
6 else case origin_cd = '12' then 18 else case source_system_cd in ('01', '02') then 2 else case
source_system_cd = '03' then 6 end end end end as sys_of_rec_id where process_dt between date minus

SELECT Rec_status_id
FROM PRV1_EDW_BASE1_TAB.CLM_DISTRB
WHERE REC_STATUS_ID <> 1

Expected
Results

Design
Scenario

TestCase Type Overview

column data type


should be match

DDL Validation

Manual

metedata check for all the columns.


Comparison between source to target

Expected 0 rows

DDL Validation

Manual

Source and Target Data types should be


the same and Target Data TypeSize
should be greater than or equal to
Source.

The target table


should be present
in all the 6
databases.

DDL validation

Manual

The target table should be found in all


the 6 databases.

Job should be
executed
successfully

To validate
Control-M job
execution

Manual

Job Check

Count of source
and targer should
be equal

Record count
check

System test

Number of records in Source should be


same as the number of records in target.

Expected 0 rows

To validate
unique key for
the table

System Test

Primary Key Checking

Expected 0 rows

To validate
primary key is
not null for the
table

System Test

Primary Key Checking

Expected 0 rows

To validate
Manual
whether the
target columns
are loaded
correctly with the
derived values

Data quality checking

Expected 0 rows

To validate the
Manual
records from
source tables are
loaded into the
target table

Data Completeness Checking

Expected 0 rows

Validate the
target column
has null value

Manual

Data Completeness Checking

Expected 0 rows

To validate the
Manual
records from
source tables are
loaded into the
target table

Data Completeness Checking

Expected 0 rows

To validate the
Manual
records from
source tables are
loaded into the
target table

Data Completeness Checking

Expected 0 rows

To validate the
Manual
records from
source tables are
loaded into the
target table

Data Completeness Checking

Expected 0 rows

To validate the
Manual
records from
source tables are
loaded into the
target table

Data Completeness Checking

Expected 0 rows

To validate the
Manual
records from
source tables are
loaded into the
target table

Data Completeness Checking

Expected 0 rows

To validate the
Manual
records from
source tables are
loaded into the
target table

Data Completeness Checking

Expected 0 rows

To validate that
this column
contains the
value 1

Data Quality Checking

System Test

You might also like