In this blog, we would discuss the basic concepts regarding eCATT and how to develop a test script and test configuration to upload a test data file with a practical example.
What is eCATT?
eCATT (extended Computer Aided Test Tool) is an SAP Testing Tool used to automate & test business scenarios in SAP R/3. Each test that was executed will generate a detailed log that will give the test process and results. If the testing is successful without any errors log, we can say that the business scenario mapped in SAP is correct. If the test results shows error then the problem can be analyzed using the error log that is generated by the system.
So in short in this blog you will see what eCATT is, how we can use it; how we can load a test data from a file in ECC 6.0 with an example.
After reading this blog, you will have understanding about eCATT tool. And you will be able to create a test script and test configuration in which test data can be loaded from a file.
Prior to execute/create test configuration, we need to create a test script. In many cases, it is helpful to create a Test Data Container and/or a System Data Container but these will not be used in this example.
Transaction Code: SECATT
Step-1: Create Test Script
Click Create or F5 and the following screen will be displayed.
System will start Record the function that you are attempting to perform i.e creation of Material Master.
Select the material views, organizational elements as required and follow the views of the material master. After creating material master system will be returned to the eCATT and prompt the alert box with message Do You Want to Transfer the Data, click on YES.
You will see the following screen:
Now double-click on the interface. In this example the interface was named MM01_1, you will get following screen
This is done by opening the Dynpro menu and going through each numbered screen to review your input.
From the above screen print you can see the values Industry sector “M “and Material Type “FERT” as in input values i.e. VALIN. You must change it to a value as shown in the next screen.
The default parameter will be Local. You can change this to Import and click on the Yes button.
The screen will now look like the following screen. Note the icon on screen 1 has changed from the Green Square. This icon indicates a variable is present.
Now you can change the all the variables in same process
Click on SAVE icon after completing and save as a local object or place in a development class to transport the eCATT.
Step-2: Creating Test Configuration
Before executing eCATT first you need to create a Test Configuration. Use Transaction code SECATT to executing and entering a name for the Test Configuration and clicking on the Create icon. (In this Example I have given same name as Test Script)
Enter the name of the Test Script you would like to execute.
Download icon or just press ctrl+shift+F11. You will be prompted with a window “save as” dialog box. Accept the default name and directory and click save, here file will be saved in text format (ex: VAR_ECTC_Z_MATERIALMASTER_MM01.TXT)
After click on SAVE system will prompt the following alert box
Now click on the Variants tab and you should see the following screen:
Now you are ready to execute your new eCATT Test Script via the Test Configuration. Open your .txt file and convert the file in to excel file (ex: VAR_ECTC_Z_MATERIALMASTER_MM01.xls) enter your variables.
Convert the same Excel file to text file to upload during the execution. If you upload it in .xls format, then SAP will not be able to read it.
Now go back to SAP and run tcode SECATT and enter your Test Configuration and click Execute. You can see the below screen:
Click on the UI control and specify whether you would like to execute in the foreground or background. The test configuration will normally default to the background. As with the CATT the foreground method of execution is very helpful when trying to troubleshoot errors in the test script.
By Gopichand Panghate. (on behalf of SAP Consulting Team)
SAP :: Streamlined
SAP ECC , SAP HR, SAP CRM, SAP SCM, SAP BW, Business Objects, SAP ABAP Development, SAP BASIS and SAP NetWeaver consulting, implementation, development and support services to SAP customers across diverse industries globally.
Have a question on SAP? Write to our SAP Architect.
(We promise a no-obligation consulting reply)