Test data#
Scenarios 1. To test whether the job completes successfully without any issues
2. To test whether system date and tesco calendar date are set back to previous 6th day to
pull the rejected data from sr and mj
3. To test whether system date and tesco calendar date are set to current day for processing
wastage data
Date file#
Date file below has the combination of system date + tesco calendar date
Rejection data file#
Rejection data shown below has rejects falling on different dates
Successful completion of job
Sysout of job#
It is evident from test results that rejections falling beyond last 6th day (20170330) are not extracted for
recycling
Data written in SR rejects file#
if the wastage type code is 1 or 3 then such records are extracted to SR rejects file
Data written in MJ rejects file#
if the wastage type code is 2 then such records are extracted to MJ rejects file
Date file updation
From below snapshot it is inferred that system date and tesco calendar date are set to current day
Date setting functionality from huron transaction# ml360,ml365 running in ML005 job
Before execution of transaction below is the date set in MLK table
After execution of transaction below is the date set in MLK table (set as previous 6th day)
After extracting rejected records from mj and sr ML365 updates the date to current day as shown
below