05-20-2008 3:32 PM
05-20-2008 4:31 PM
Hi Sandeep,
you can find required information in following links
http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm
http://www.saptechnical.com/Tutorials/eCATT/eCATTMain.htm
Award points if useful
Thanks,
Ravee..
05-20-2008 4:31 PM
Hi Sandeep,
you can find required information in following links
http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm
http://www.saptechnical.com/Tutorials/eCATT/eCATTMain.htm
Award points if useful
Thanks,
Ravee..
05-20-2008 4:36 PM
Hi,
The step by step document: eCATT
/people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i
/people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation-150-tcd-mode-part-ii
/people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation--sapgui-mode-part-iii
/people/sapna.modi/blog/2006/04/18/ecatt-logs-part-vi
Find the following link of SAP Help for step by step help of eCATT.
http://help.sap.com/saphelp_470/helpdata/EN/20/e81c3b84e65e7be10000000a11402f/frameset.htm
Regards
Kiran Sure
05-21-2008 3:25 PM
hi,
1. eCATT An Introduction(Part I)
[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3334] [original link is broken] [original link is broken] [original link is broken];
2. eCATT Scripts Creation - TCD Mode (Part II)
[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3418] [original link is broken] [original link is broken] [original link is broken];
3. eCATT Scripts Creation - SAPGUI Mode (Part II )
[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3464] [original link is broken] [original link is broken] [original link is broken];
4. eCATT Chaining, Parameterization, Creation Of Test Data,Test Configuration, System Data (Part IV)
[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3497] [original link is broken] [original link is broken] [original link is broken];
5. eCATT Scripts Management Via Test Workbench(Part V)
[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3483] [original link is broken] [original link is broken] [original link is broken];
6. eCATT Logs (Part VI)
[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3489] [original link is broken] [original link is broken] [original link is broken];
7. eCATT Scripts Creation Non-User Interface Mode & Rename, Copy, Delete, Upload, Download eCATT Objects(Part VII)
[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3519] [original link is broken] [original link is broken] [original link is broken];
8. eCATT Tips Of Recording, Testing & Links (Part VIII)
[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3535] [original link is broken] [original link is broken] [original link is broken];
reward if helps
Thanks & Regards
05-22-2008 7:51 AM
Hi
eCATT stands for extended Computer Aided Test Tool (eCATT) which is built is testing tool to test SAP system. By using testing tool we can test the entire business process, and we can also use this tool with a third party testing tool (I am not covering this topic). Execution of every test script ends with a log, which explains the results of the test script.
By using eCATT we can do following operations,
Test transactions, reports, and scenarios
Call BAPIs and function modules
Test remote systems
Check authorizations (user profiles)
Test updates (database, applications, GUI)
Test the effect of changes to customizing settings
Check system messages
To develop a test script in eCATT we need to follow the following steps,
1. Creating Test Scripts.
2. Creating Test Data Containers.
3. Understanding System Data Containers .
4. Executing Test Configurations.
Step 1:
First ABAPu2026ENDABAP block, to get the number of records from the file and store the value in the COUNT local variable.
ABAP BLOCK TO GET THE NUMBER OF TEST CASES
ABAP.[116]
TOT : holds total number of records
FILE: holds file path of test file
DATA : TOT TYPE I VALUE 0,
FILE TYPE STRING.
ITAB TO HOLD TEST DATA FROM FILE
DATA : BEGIN OF I_MARA [117] OCCURS 0,
V_MATNR LIKE RMMG1-MATNR, " Material Number
V_MBRSH LIKE RMMG1-MBRSH, " Industry Sector
V_MTART LIKE RMMG1-MTART, " Material Type
Basic View
V_MAKTX LIKE MAKT-MAKTX, " Material Description
V_MEINS LIKE MARA-MEINS, " Basic Unit of Measure
END OF I_MARA.
TO OPEN FILE DIALOG FOR TEST DATA FILE
CALL FUNCTION 'F4_FILENAME[118] '
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'FILE'
IMPORTING
FILE_NAME = FILE_V-PATH.
FILE = FILE_V-PATH.
LOADING DATA FROM THE FILE
CALL FUNCTION 'GUI_UPLOAD[119] '
EXPORTING
FILENAME = FILE
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = I_MARA.
GETTING NUMBER OF RECORDS IN THE TABLE
DESCRIBE TABLE I_MARA LINES TOT.
STORING NUMBER OF RECORDS IN LOCAL VARIABLE
COUNT = TOT.[120]
CLEARING INTERNAL TABLE
CLEAR I_MARA.
ENDABAP.
Step 2:
Looping through the records count number of times and reading from the internal table and passing them to the screen field values.
This sample code explains how to read, and pass values to the screen.
LOOPING THROUGH (COUNT) NUMBER OF RECORDS
DO (COUNT[121] ).
ABAP.
V_READINDX : holds index number to read the internal table
FILE: holds file path of test file
DATA : V_READINDX TYPE I,
FILE TYPE STRING,
INDX TYPE I VALUE 0.
ITAB TO HOLD TEST DATA FROM FILE
DATA : BEGIN OF I_MARA OCCURS 0,
V_MATNR LIKE RMMG1-MATNR, " Material Number
V_MBRSH LIKE RMMG1-MBRSH, " Industry Sector
V_MTART LIKE RMMG1-MTART, " Material Type
V_MAKTX LIKE MAKT-MAKTX, " Material Description
V_MEINS LIKE MARA-MEINS, " Basic Unit of Measure
END OF I_MARA.
WORKAREA TO HOLD THE I_MARA DATA
DATA : WA LIKE I_MARA.
FILE = FILE_V-PATH.
LOADING MASTER DATA FROM THE FILE
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = FILE
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = I_MARA.
INT_LOC : is a local variable hold the current index to read I_MARA
V_READINDX = INT_LOC.
READING I_MARA UGING ITS INDEX
READ TABLE I_MARA INDEX V_READINDX INTO WA.
assigning work area values to the screen field values
V_MATNR = WA-V_MATNR. " Material Number
V_MBRSH = WA-V_MBRSH. " Industry Sector
V_MTART = WA-V_MTART. " Material Type
V_MAKTX = WA-V_MAKTX. " Material Description
V_MEINS = WA-V_MEINS. " Basic Unit of Measure
ENDABAP.
TCD ( MM01 , MM01_1 ).[122]
move index position by one
INT_LOC = INT_LOC + 1.
ENDDO.
With this we have finished programming. Finally we need to prepare the test data file and execute the program either in Foreground or Background mode.
Please note that data in test file should resemble the order of the elements in the internal table. Other wise it wonu2019t work.
To execute the given test script, follow the steps, copy the code given and declare the necessary variables.
and
CHECK THIS LINKS ALSO
1. eCATT An Introduction(Part I)
[url]/people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i
2. eCATT Scripts Creation - TCD Mode (Part II)
[url]/people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation-150-tcd-mode-part-ii
3. eCATT Scripts Creation - SAPGUI Mode (Part II )
[url]/people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation--sapgui-mode-part-iii
4. eCATT Chaining, Parameterization, Creation Of Test Data,Test Configuration, System Data (Part IV)
[url]/people/sapna.modi/blog/2006/04/18/ecatt-chaining-parameterization-creation-of-test-datatest-configuration-system-data-part-iv
5. eCATT Scripts Management Via Test Workbench(Part V)
[url]/people/sapna.modi/blog/2006/04/13/ecatt-scripts-management-via-test-workbench-part-v
6. eCATT Logs (Part VI)
[url]/people/sapna.modi/blog/2006/04/18/ecatt-logs-part-vi
thanks
sitaram
05-27-2008 5:43 AM
05-27-2008 6:19 AM
Hi,
Kindly reward the points and close the thread.
regards,
mahatesh