A Simple scenario on eCATT Test Script to the Standard Transaction.
In this scenario, I would like to explain about create Test Script for “MM02”.
Start transaction SECATT.
On the eCATT initial screen, select the System Data radio button and enter a name for your new system data container in the field beside it. For this tutorial, we will refer to it as ZTEST_SDC.
On the Attributes tab, enter a title for the system data container – for example, System Landscape for MM02.
In the System Data tab, you would notice a default target system called NONE.
Save your system data container.
Creating Your Test Script
In this section, you will create an empty test script and assign to it the system data container that you created earlier. You will then execute the test script.
On the Attributes tab, enter the following information:
Title : Test Script for MM02
Component : BC-TWB-TST-ECA
System Data Container : ZTEST_SDC
Leave the Target System field empty.
Save your test script.
Choose Execute Button and Execute the Test Script.
The Start Options are displayed.
Accept the defaults but make sure that Log Display has been selected.
Select the checkbox Highlight All Called GUI Elements. This option is cosmetic but will help you see which elements are being selected during replay. Leave the other default options as they are.
Execute the test script. The log will then be displayed and should look something like the following:
Get back to the Test Script Editor.
Recording the Transaction
Starting the Recorder
n the test script editor, choose the Pattern function to display the Insert Statement dialog.
In the dialog, change the group to UI Control, choose SAPGUI (Record) for the command.
Specify the transaction MM02 that you want to record. Additionally, select the check box that will automatically generate a new SAPGUI command after every screen change ( You must first deselect manual generation).
Choose Start Recording or Enter
Click on “Yes”.
A new session is automatically created. You can, and should, switch back and forward between the two sessions using the taskbar as shown below.
Enter the Material
Select the Basic Data1
Basic Data1 Screen as shown.
Change the “Gross Weight”.
Save and Close the screen
Ending the Recording
Select the Close Recorded GUIs check box and then choose Stop Recording.
The recorded session closes and you now see the SAPGUI commands in the command editor of the test script editor.
Above the command editor is the parameter list. You can use the button at the top left of this section to toggle between the display of normal parameters and the command interfaces.
Executing Your Test Script
In the test script editor, choose “Execute” button.
Choose “Execute” Button in the Start Options screen. Check the log.