Beruflich Dokumente
Kultur Dokumente
1 2
Code Checks
Cond. No.
Data Stage Version DataStage Job Naming Conventions Project Job Stage DB Stage (Source)
DB Stage (Target)
Database Hashed Definition Flat File CFF XML Stored Procedure 4 Transformation stages Sort Stage Aggregator Stage Transformer Stage Merge Stage Complex Flat File Sequential Flat File Pivot Stage FTP Stage Hashed File Container Link Collector Link Partitioner
Primary Input Link Link to process source data Lookup Link Output Link Parameter Type Sequencer Param. Job Parameters Stage Variables User Activity Variables Environment Variables Transformations and Routines Routine Transform
7 8
9 10
11
Condition Description
Job will be tested on datastage 8.5 Best practice is attached in this sheet Categoryname_tablename_actiontype> <table type><table name> Eg. OraSorgExt,Db2Agentdetail <table type><table name>Action Eg. OraSorgExtInsert, Db2AgentdetailUpdate \<DBType>\<DSN><name> Eg.Oracle\SBU\Table Name \Hashed\<name> Eg.Hashed\SystemValueHash \Sequential\<name>Eg. Sequential\payment \CFF\<name Eg.CFF\payment \XML\<name Eg.XML\payment \StoredProcedures\DBType\<DSN>\<name> Eg.StoredProcedures\Oracle\SBU\\TRUNC S_<name>,eg. S_SortInput Agg_<name>,eg. Agg_TotalPayment X_<name>eg.X_ConvertEBCDIC M_<table name> eg.M_SorgExt CF_<name> eg.CF_InputFile FF_<name> eg.FF_InputFile P_<name> eg.P_DataDescription FTP_<name> eg.FTP_FileDescription H_<name> eg.H_HashFileName CON_<name> eg.CON_Purpose LC_<name> eg.LC_Payroll LP_<name> eg.LP_Payroll
Lnk<name>Type Eg.LnkPayrollFileIn Lnk<name>Type Eg.LnkPayrollSrc Lnk<name>Type Eg.LnkPayCodeLkp Lnk<name>Type Eg.LnkPayrolFileOut sq<name> Eg.sqRestartStep p<name> Eg.pInputFile sv<name> Eg.svCalculateTotYears uv<name> Eg.uvDataDir $<name>Eg.$HashDir,$SBUServerName pre<name> Eg.DateYYYYMMDDToOraDateWithTime pre<name>T Eg.DateYYYYMMDDToOraDateWithTimeT
In the Remove Duplicates stage the dedup keys will be all the natural keys Eg: the remove dups keys for PHONE Table will be 1)ACCOUNT_ID 2)ACCOUNT_TYPE_ID 3)PHONE_TYPE
In the Change Capture stage the Change keys will be all the natural keys
Eg: the Change Keys for Email Table will be 1)ACCOUNT_ID 2)ACCOUNT_TYPE_ID 3)PHONE_TYPE . The Change Columns will be 1)EMAIL_VALUE2) UNDERIVABLE3)UNDERIVABLE_SRC
Expected Result
Actual Actual Actual Status Remarks Result in Result in Result in Iteration 1 Iteration 2 Iteration 3
Datastage8.5
TEST CASE_PREFERENCES Project Name Test case prepared by Code Developed By Input File Names Output File Names job Name WU UCD Abhishek Soni Abhishek Soni NA NA WUINTL Scenario Generaliz Descripti ed query on if any Condition Description
see the Space comments Actual query are trimming. for query Comments Get the source and target row count and match query is inside the commnets Get the source CDC column MINUS target CDC columns and its opposite she the query in SOURCE right outer join commnets TARGET on CDC column count AND SOURCE INNER join TARGET on CDC column count -Query is in Comments SOURCE CDC column MINUS SOURCE right outer join target
At Initial Load The source row count and target row count 2 should be the same NA At Initial Load The source data value and TARGET Data values must be the 3 same
NA
NA
NA
At Incremental Load The source row count and target row count 4 should be the same NA
NA
NA
NA
NA
Need to get any one account_key and run the query Need to get any one account_key and run the query
NA
NA
check for duplicates in the source stage table. Check how the duplicates are getting 8 inserted into target NA All 3 date in target 9 should be proper NA
Update all columns and run the job all column must be 10 updated
Chk inside Chk inside the the Please change the query comments comments Chk inside the comments
TEST CASE_PREFERENCES
Expected Result No leading and trailing spaces should be present in the <> column value. SPACE_CNT =0
Actual Actual Actual Result in Result in Result in Iteration 1 Iteration 2 Iteration 3 Status
Remarks
SRC_CNT=TAR_CNT !=0
RIGHT_OUTER_CNT=INNER_J OIN_CNT
DISTINCT_CNT=ALL_CNT DT_Not_NULL_CNT=0
TEST CASE_PREFERENCES Project Name Test case prepared by Code Developed By Input File Names Output File Names job Name WU UCD Abhishek Soni Abhishek Soni NA NA WUCOM Actual Result in Iteration 1
Scenario Generaliz Descripti ed query Condition Scen. No. Test Goal on if any Description
Test for At Initial Space space 1 Load The trimming. character source row count and target row count should be 2 the same NA At Initial Load The source data value and TARGET Data values must be 3 the same NA
Expected Result No leading and trailing spaces should be present in the <> column value. SPACE_CNT =0
NA
Get the source and target row count and match query is inside SRC_CNT=TAR_CNT ! the commnets =0
NA
Get the source CDC column MINUS target CDC columns and its opposite she the query in commnets Result set must be null
At Increment al Load The source row count and target row count should be 4 the same NA At Increment al Load The source Data MINUS Target 5 Data NA
NA
SOURCE right outer join TARGET on CDC column count AND SOURCE INNER join TARGET on CDC column count -Query RIGHT_OUTER_CNT=IN is in Comments NER_JOIN_CNT
NA
SOURCE CDC column MINUS SOURCE right outer join target Result set must be null
NA
Need to get any one account_key and run the query This query must be fail Need to get any one account_key and run the query This query must be fail
NA
check for duplicates in the source stage table. Check how the duplicates are getting inserted 8 into target NA All 3 date in target should be 9 proper NA
DISTINCT_CNT=ALL_C NT
NA
DT_Not_NULL_CNT=0
Update all columns and run the job all column Chk inside Chk inside Please change the must be the the query Chk inside the Check the updated in 10 updated comments comments comments target table
TEST CASE_PREFERENCES
Remarks
TEST CASE_PREFERENCES Project Name Test case prepared by Code Developed By Input File Names Output File Names job Name WU UCD Abhishek Soni Abhishek Soni NA NA LOYALTY
Scenario Generalized query if Scen. No. Test Goal Description any Test for space Space 1 character trimming. At Initial Load The source row count and target row count should be 2 the same NA
Condition Description
NA
Get the source and target row count and match query is inside the commnets
At Initial Load The source data value and TARGET Data values must be 3 the same NA At Increment al Load The source row count and target row count should be 4 the same NA
NA
Get the source CDC column MINUS target CDC columns and its opposite she the query in commnets
NA
SOURCE right outer join TARGET on CDC column count AND SOURCE INNER join TARGET on CDC column count -Query is in Comments
At Increment al Load The source Data MINUS Target 5 Data NA Testing of Source 6 Duplicates NA Testing of TARGET 7 Duplicates NA
NA
SOURCE CDC column MINUS SOURCE right outer join target Need to get any one account_key and run the query Need to get any one account_key and run the query
NA
NA
check for duplicates in the source stage table. Check how the duplicates are getting inserted 8 into target NA All 3 date in target should be 9 proper NA Update all columns and run the job all column Chk inside must be the 10 updated comments
NA
TEST CASE_PREFERENCES
Expected Result No leading and trailing spaces should be present in the <> column value. SPACE_CNT =0
Actual Actual Actual Result in Result in Result in Iteration 1 Iteration 2 Iteration 3 Status
Remarks
SRC_CNT=TAR_CNT !=0
RIGHT_OUTER_CNT=INNER_ JOIN_CNT
DISTINCT_CNT=ALL_CNT
DT_Not_NULL_CNT=0
TEST CASE_PREFERENCES Project Name Test case prepared by Code Developed By Input File Names Output File Names job Name WU UCD Abhishek Soni Abhishek Soni NA NA Receivers Scenario Descripti on Generalized query if any Space trimming. see the comments for query
At Initial Load The source row count and target row count should 2 be the same NA At Initial Load The source data value and TARGET Data values 3 must be the same NA
NA
NA
At Incremental Load The source row count and target row count 4 should be the same NA At Incremental Load The source 5 Data MINUS Target Data NA 6 Testing of Source Duplicates 7 Testing of TARGET Duplicates NA NA
NA
NA NA NA
check for duplicates in the source stage table. Check how the duplicates are getting inserted 8 into target NA All 3 date in target should be 9 proper NA
NA NA
Update all columns and run the 10 job all column must be updated
TEST CASE_PREFERENCES
Condition Description
Expected Result No leading and trailing spaces should be present in the <> column value. SPACE_CNT =0
Actual query are Comments Get the source and target row count and match query is inside the commnets Get the source CDC column MINUS target CDC columns and its opposite she the query in commnets
SRC_CNT=TAR_CNT !=0
SOURCE right outer join TARGET on CDC column count AND SOURCE INNER join TARGET on CDC column count -Query is in RIGHT_OUTER_CNT=INNER_JOIN_C Comments NT SOURCE CDC column MINUS SOURCE right outer join target Result set must be null Need to get any one account_key and run the query This query must be fail Need to get any one account_key and run the query This query must be fail
Chk inside the comments DISTINCT_CNT=ALL_CNT Chk inside the comments DT_Not_NULL_CNT=0
Status
Remarks
TEST CASE_PREFERENCES Project Name Test case prepared by Code Developed By Input File Names Output File Names job Name WU UCD Abhishek Soni Abhishek Soni NA NA PREFERENCES Scenario Generalized Description query if any Space trimming. see the comments for query Condition Description
Scen. No.
Test Goal
Test for space 1 character At Initial Load The source row count and target row count should be the 2 same NA
Actual query are Comments Get the source and target row count and match query is inside the commnets Get the source CDC column MINUS target CDC columns and its opposite she the query in commnets SOURCE right outer join TARGET on CDC column count AND SOURCE INNER join TARGET on CDC column count -Query is in Comments SOURCE CDC column MINUS SOURCE right outer join target Need to get any one account_key and run the query Need to get any one account_key and run the query
NA
At Initial Load The source data value and TARGET Data values must be the 3 same NA
NA
At Incremental Load The source row count and target row count 4 should be the same NA At Incremental Load The source Data MINUS Target 5 Data NA
NA
NA
NA
NA
NA
check for duplicates in the source stage table. Check how the duplicates are getting inserted into 8 target NA All 3 date in target 9 should be proper NA Update all columns and run the job all column must be Chk inside the 10 updated comments
Chk inside the comments NA NA Chk inside the comments Please change the query Chk inside the comments
TEST CASE_PREFERENCES
Expected Result No leading and trailing spaces should be present in the <> column value. SPACE_CNT =0
SRC_CNT=TAR_CNT !=0
RIGHT_OUTER_CNT=INNER_JOIN_CNT
DISTINCT_CNT=ALL_CNT DT_Not_NULL_CNT=0
TEST CASE_PHONE Project Name Test case prepared by Code Developed By Input File Names Output File Names job Name WU UCD Abhishek Soni Abhishek Soni NA NA SEQURITY 40717 1
Test for see the space Space comments for At Initial 1 character trimming. query Load The source row count and target At Initial row count Load The should be source 2 the same data value and TARGET Data values must be 3 the same At Increment al Load The source row count and target At count row Increment should be 4 al Load the same The source Data MINUS Target 5 Data
Condition Description Expected Result No leading and trailing spaces should be present in the <> column value. Actual query are Comments SPACE_CNT =0
NA
NA
Get the source and target row count and match query is inside the commnets Get the source CDC column MINUS target CDC columns and its opposite she the query in commnets
SRC_CNT=TAR_CNT ! =0
NA
NA
NA
NA
SOURCE right outer join TARGET on CDC column count AND SOURCE INNER join TARGET on CDC column count -Query is RIGHT_OUTER_CNT=IN in Comments NER_JOIN_CNT SOURCE CDC column MINUS SOURCE right outer join target Result set must be null Need to get any one account_key and run the query This query must be fail Need to get any one account_key and run the query This query must be fail Chk inside the comments DISTINCT_CNT=ALL_C NT
NA
NA
check for Testing of duplicates Source in the 6 Duplicates NA source stage Testing of table. TARGET Check 7 Duplicates NA how the duplicates are getting inserted 8 into target NA
NA
NA
NA
All 3 date in target Updatebe should all 9 columns proper and run the job all column must be 10 updated
NA
NA
Chk inside the comments Please change the query Chk inside the comments
DT_Not_NULL_CNT=0
TEST CASE_PHONE
Actual Actual Actual Result in Result in Result in Iteration 1 Iteration 2 Iteration 3 Status
Remarks
TEST CASE_PHONE Project Name Test case prepared by Code Developed By Input File Names Output File Names job Name WU UCD Abhishek Soni Abhishek Soni NA NA LYT_PHONE_COMMOM Scenario Generalized Description query if any Space trimming. see the comments for query 40717 1
Scen. No.
Test Goal
Condition Description
Test for space 1 character At Initial Load The source row count and target row count should be the 2 same NA
Actual query are Comments Get the source and target row count and match query is inside the commnets Get the source CDC column MINUS target CDC columns and its opposite she the query in commnets SOURCE right outer join TARGET on CDC column count AND SOURCE INNER join TARGET on CDC column count -Query is in Comments SOURCE CDC column MINUS SOURCE right outer join target Need to get any one account_key and run the query Need to get any one account_key and run the query
NA
At Initial Load The source data value and TARGET Data values must be the 3 same NA
NA
At Incremental Load The source row count and target row count 4 should be the same NA At Incremental Load The source Data MINUS Target 5 Data NA
NA
NA
NA
NA
NA
check for duplicates in the source stage table. Check how the duplicates are getting inserted into 8 target NA All 3 date in target 9 should be proper NA Update all columns and run the job all column must be Chk inside the 10 updated comments
Chk inside the comments NA NA Chk inside the comments Please change the query Chk inside the comments
TEST CASE_PHONE
Expected Result No leading and trailing spaces should be present in the <> column value. SPACE_CNT =0
SRC_CNT=TAR_CNT !=0
RIGHT_OUTER_CNT=INNER_JOIN_CNT
DISTINCT_CNT=ALL_CNT DT_Not_NULL_CNT=0
ACCO UNT_I PH_TY PH_EX PH_PR D 1 PH_NO1 1 1 101 C 9312975643 111 RIM 102 C 9312975643 111 RIM 103 C 9312975643 111 RIM 104 C 9312975643 111 RIM
PH_TY PH_EX PH_PR 2 PH_NO2 2 2 L 9826708418 102 TATA C 9826708418 102 TATA C C 9826708418 102 TATA
PH_TY PH_EX PH_PR 3 PH_NO3 3 3 O 1111111111 345 IDAI C 1111111111 345 IDAI C 1111111111 345 IDAI C 1111111111 345 IDAI
ACCO UNT_I D PH_TY PH_NO PH_EX PH_PR 101 C 9312975643 111 RIM 101 L 9826708418 102 TATA 101 O 1111111111 345 IDAI 102 C 9312975643 111 RIM 102 C 9826708418 102 TATA 102 C 1111111111 345 IDAI 103 C 9312975643 111 RIM 103 C 103 C 1111111111 345 IDAI 104 C 9312975643 111 RIM 104 C 9826708418 102 TATA 104 C 1111111111 345 IDAI
9 1 9 1 9 9 9 1 9 9 1
PH_EX PH_PR 1T 3I 1R 3I 1R 1T 1R 3I 1R 1T 3I
Name * ACCOUNT_ID RECEIVER_NO ACCOUNT_TYPE_ID RECEIVER_TYPE_ID NAME_PREFIX NAME_SUFFIX FIRST_NAME MIDDLE_NAME LAST_NAME LAST_NAME_MATERNAL STREET_ADDRESS1 STREET_ADDRESS2 STREET_ADDRESS3 CITY STATE_PROVINCE COUNTRY_CODE COUNTRY ZIP_POSTAL_CODE ADDRESS_TYPE EMAIL PHONE MOBILE_PHONE DOB GENDER UAB UAB_ENC_VERSION UAB_IN UAB_IN_ENC_VERSION ATTRIBUTE RATE_MOD_ID DELETED_CD PAY_TXN_CNT OPT_SHARE OPT_DMAIL PRIVACY_REQUESTED PREF_MTHD_OF_CNTC_CODE ID_PROVIDED PREF_LANGUAGE_CODE PRIVACY_REQUESTED_DATE NO_CHANGES COMMERCIAL_PAYEE_ID DEBIT_ACCT_NO DEBIT_ENC_VERSION RECEIVER_PIN REF_NUM ENROLLING_AGENT_ID_C LOCKED EXPIRY_DATE ALT_CURRENCY_CD ENROLL_FEE_AMT FIRST_SEND_DT LAST_SEND_DT
Position * 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
52 53 54 55 56 57
Data Type BIGINT SMALLINT VARCHAR(2) SMALLINT VARCHAR(50) VARCHAR(50) VARCHAR(50) VARCHAR(50) VARCHAR(50) VARCHAR(50) VARCHAR(50) VARCHAR(50) VARCHAR(50) VARCHAR(60) VARCHAR(50) VARCHAR(2) VARCHAR(100) VARCHAR(10) VARCHAR(5) VARCHAR(150) VARCHAR(20) VARCHAR(20) DATE VARCHAR(1) VARCHAR(3500) VARCHAR(10) VARCHAR(3500) VARCHAR(10) VARCHAR(10) VARCHAR(10) VARCHAR(10) SMALLINT VARCHAR(5) VARCHAR(5) VARCHAR(5) VARCHAR(10) VARCHAR(10) VARCHAR(2) TIMESTAMP SMALLINT VARCHAR(25) VARCHAR(100) VARCHAR(10) VARCHAR(25) VARCHAR(25) VARCHAR(15) VARCHAR(10) TIMESTAMP VARCHAR(10) VARCHAR(10) TIMESTAMP TIMESTAMP
Default
Identity * No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
No No No No No No
Generated *
No No No No No No
Scope
KEYSEQ 1 2
Remarks
Name * ADDED_DT ADDR_1_C ADDR_2_C ADDR_3_C ADDR_4_C ADDR_5_C ADDR_LOCATION_C ADDR_PURPOSE_C ADDR_TY_C ALT_CURRENCY_CD_C ATTRIBUTE_C BIRTH_DT CODE_CITY_C CONT_PT_OF_LAST_CHANGE_C COUNTRY_ID_C CREATED_DT CUST_ACCT_NO_C CUST_STAT_ID_C CUST_TY_ID_C DEBT_ACCT_NUM_C DELETED_CD_C ENROLL_FEE_AMT_N ENROLLING_AGENT_ID_C EXPIRY_DT EXPORT_DT FIRST_SEND_DT FIRST_USE_FLAG_C GENDER_C HHOLD_ID_C ID_PROVIDED_C LAST_CHANGED_DT LAST_MOD_DT LAST_SEND_DT MAIL_FLAG_C MOBILE_PHONE_C NAME_1_C NAME_2_C NAME_3_C NAME_TY_C NO_CHANGES_N PAY_TX_CNT_N PHONE_C POS_MODS_ALLOWED_FLAG_C POSTAL_CD_C PREFER_LANG_ID_C PREFER_LANG_ID_N PREFER_MODE_C PREFIX_C PRIV_MAIL_FLAG_C PRIVACY_SEL_DT PRIVACY_UPDATED_DT RATE_MOD_ID_C
Position * Data Type 17 TIMESTAMP 57 VARCHAR(50) 58 VARCHAR(40) 59 VARCHAR(40) 60 VARCHAR(40) 61 VARCHAR(40) 54 VARCHAR(2) 49 VARCHAR(20) 53 VARCHAR(3) 5 VARCHAR(3) 14 VARCHAR(10) 35 TIMESTAMP 44 VARCHAR(34) 4 VARCHAR(10) 52 VARCHAR(3) 56 TIMESTAMP 0 VARCHAR(25) 50 VARCHAR(2) 51 VARCHAR(2) 46 VARCHAR(25) 20 VARCHAR(2) 8 DECIMAL(5) 18 VARCHAR(10) 9 TIMESTAMP 19 TIMESTAMP 10 TIMESTAMP 6 VARCHAR(1) 41 VARCHAR(2) 24 VARCHAR(16) 30 VARCHAR(2) 12 TIMESTAMP 23 TIMESTAMP 11 TIMESTAMP 26 VARCHAR(1) 31 VARCHAR(16) 36 VARCHAR(35) 37 VARCHAR(35) 38 VARCHAR(35) 29 VARCHAR(10) 21 INTEGER 22 INTEGER 43 VARCHAR(17) 7 VARCHAR(1) 62 VARCHAR(40) 42 VARCHAR(3) 32 INTEGER 28 VARCHAR(1) 39 VARCHAR(11) 27 VARCHAR(1) 33 TIMESTAMP 34 TIMESTAMP 16 VARCHAR(3)
Nulls *
NOT NULL
NOT NULL NOT NULL NOT NULL NOT NULL NOT NULL
Default Identity * No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
RCVR_PIN_C REC_COOKIE_C REC_NO_N REC_TY_ID_C REF_NO_C REF_NUM_C SHARE_FLAG_C SNDR_ACCT_NUM_C SOURCE_CONT_PT_C SUFFIX_C UNIV_ADDR_C UPDATED_DT
47 VARCHAR(24) 13 VARCHAR(80) 1 INTEGER NOT NULL 2 VARCHAR(2) NOT NULL 15 VARCHAR(16) 48 VARCHAR(16) 25 VARCHAR(1) 45 VARCHAR(25) 3 VARCHAR(10) NOT NULL 40 VARCHAR(11) 63 VARCHAR(400) 55 TIMESTAMP
No No No No No No No No No No No No
No No No No No No No No No No No No