Tuesday, February 1, 2011

Create Test Data container

Purpose: This document explains how to create Test Data Container for a Test Script. Here I have been using the Test Script, Create Sales Order ‘ZSD_CREATE_SALESORDER_TS as reference to this Test Data Container.

Transaction: SECATT

Here are the steps to follow.

Step 1: Go to transaction SECATT

Choose Radio button Test Data and enter name of the Data Container to be created. Here the name will be same as Test Script name except that it ends with _TD instead of _TS.

Click Create button.

Step 2: Enter some description as well as component. (Same as Test Script).

Save the script (Local Object) and Click on Parameters Tab.

Step 3: Here create all the Import parameters of the Test Script as parameters.

Save the script and Go to Variants Tab.

Step 4: Click on Create Variant button.

Step 5: Enter the below details.

And press save.

Here we can create as many variants as we wish.

With this we are done with the creation of Test Data Container.

Save the data container and exit.

Now we have to create Test Configuration test our Test Script.

Transaction: SECATT

Here are the steps to follow.

Step 1: Go to transaction SECATT

Choose Radio button Test Configuration and enter name of the Configuration to be created. Here the name will be same as Test Script name except that it ends with _TC instead of _TS.

Step 2: Enter some description and component. (Same as Test script).

Save the Configuration.

Step 3: Go to Configuration Tab.

Give any appropriate System Data Container from F4.

Give the Test Script name we have created earlier ZSD_CREATE_SALESORDER_TS.

Step 4: Now in the test data block. Press Create button and enter the details as shown below.

Press Save button.

Step 5: Now go to Variants Tab and press the button Add variants as shown below.

The below pop-up will come. In that choose V1 and click the button Attach as Variants.

Then the variant V1 will be shown in the second part of screen that is Configuration Tab.

Now press Enter button.

Save the configuration. With this we are done with the Creation of Configuration successfully.

Step 6: Executing the configuration.

We can execute the configuration using the above Execute button. Press that button.

The below pop-up will come. In that choose options as given in the below screen shot.

Press Execute button.

Press Ok for the SAPGUI attach pop-up.

Once the eCATT execution is completed, Log will be displayed. It should come with Green Color. Then only it is executed successfully. Otherwise some error should have come.



No comments:

Tutorials on SAP-ABAP

Adobe Interactive Forms Tutorials

Business Server Pages (BSP)

Userexits/BADIs

Web Dynpro for ABAP (Step by step procedure for web dynpro,Tutorials on Web Dynpro,)

ALV Tutorials

Blog Archive

goodsites