Vous êtes sur la page 1sur 3

CATT stands for Computer Aided Test Tool which is integrated in SAP ABAP Workben ch.

It is a universal SAP functionality to combine and automate the business pro cess as repeatable test procedures. This tool sends the data to SAP system throu gh the user interface and causes real database updates. CATT (Computer Aided Testing Tool) is basically used for: Processing multiple transactions automatically through SCAT To check for transaction results and system messages To check database updates by making comparisons between target and actual values or determining values. To check reactions of changes in the customizing setting Step by Step procedure to upload data using CATT Let us consider the scenario to create the multiple materials through SCAT which are further required for testing purpose. The complete procedure of uploading the data using CATT is divided into four ste ps. Step 1) Creation of the test cases and recording the transaction Transaction for CATT (Computer Aided Testing Tool): SCAT Enter the transaction SCAT Fig 1 Enter the Test Case Name (Z-Test Case) and click on create button Fig 2 On clicking create button it would ask for test case attributes Fig 3 Press Save and then Click on. It will navigate to next screen. Fig 4 Press Record Button to initiate the recording for Transaction MM01 Fig 5 Click on right arrow button to start recording Transaction MM01 for creating Mat erials Enter Industry sector and Material type Fig 6 Press Enter and select Basic Data1 and Basic Data2 Fig 7 Now again Press Enter it will navigate to next screen and fill the mandatory fie lds for creating the material Fig 8 Press Save and end the recording Fig 9 Recording for Transaction MM01 is done and saved Fig 10 Double Click on object MM01 to navigate to recording Fig 11 Step 2) Creation of Import Parameters and then download source file template. To Download Source file template firstly we need to create the import parameters . It contains those fields which are required to create the material To create import parameters place the cursor on Screen No. 0060 and then click F ield List

Fig 12 It will navigate to next screen Fig 13 Now Double click on the parameters which are required as import parameters Fig 14 Add Industry Sector and Material Type as import parameters from Screen 0060 Fig 15 Now go back and select screen no. 0070 and press field list Fig 16 Double click on check box and add it into import parameters Now again go back and place cursor on screen no. 4004 it will navigate to deta iled screen Fig 17 Double click on Material Description, Base unit of measure and prod. Hierarchy t o be added as import parameters Once all the fields are selected from the respective screen then press back Fig 18 It will navigate to screen Fig 19 Now Press execute button to check for the import parameters which need to be pa ssed to create the material through transaction MM01 Fig 20 Now download the import parameters from path GOTOVariantsExport Fig 21 Text file is downloaded Step 3) Modify the source file The data to be uploaded is populated into the downloaded source file template Downloaded Text File is to be opened using Excel. Already existing entries are not changed in the file. First row contains the field names, 2nd row contains the description of f ield, 3rd row contains the default values, which are the test cases whereas 4th row contains a warning that changes the default values in the spreadsheet and do es not effect on the actual default values. The data to be uploaded can be entered in the spreadsheet from row 4 onwa rds (delete the 4th row warning message and add the test case data). Save the file as tab delimited text file Downloaded TAB Delimited text file Now delete the 4th row and add the test cases Fig 22 Now save as the Tab delimited text file Step 4) Uploading of the data from the source file Fig 23 Press Execute it will navigate to screen Fig 24 Now select the processing mode as foreground, background or errors. Also set the variant as External from file to read the data from file.

Press Execute button to upload the data. Fig 25 A log is generated which displays material had been created and data uploaded su ccessfully using CATT (Computer Aided Testing Tool)

Vous aimerez peut-être aussi