Skip to Content
Author's profile photo Srividya Madireddy

AUTOMATION THROUGH COMBINING TEST SCRIPTS (ECATT & START)

In this blog let’s see wrapping/combining of ECATT & START scripts.

In general, Ecatt scripts are used for recording SAP GUI screens and START scripts are used for recording FIORI Applications.

In many cases end to end scenarios can not be covered in a single script. So, in such cases we record multiple scripts and can combine them into a single script which covers the complete scenario.

In the following example we use transaction SECATT for creating ECATT and wrapper script, where we can combine both ECATT and START scripts (or two ECATT or two START scripts) to test or execute the business flow accordingly.

In the following example, we first create an ECATT and then START script. Later, combining both to form a wrapper script.

For instance, consider the following steps.

PART – I

Creation of ECATT script.

  1. Go to SECATT transaction code.

2. Enter the script name (recommended to use Z as it is identified as user defined script) and click on create icon.

3. Enter the Title, Person Responsible, Application Component.

4. Enter the SDC (System Data Container) and Target System (if available).

5. Click on Save button.

6. When promoted to Create Object Directory Entry dialog box, select Local Object.

7. Click on Pattern.

8. Enter the Group and Command with Target System.

9. When Record SAP GUI Command dialog box appears, enter the transaction to be recorded             (for ex: MM01 transaction).

10. Select Start Recording.

11. Select YES in Record SAP GUI Command screen to start recording in new session.

12. Select NO in Generation of RFC destination dialog box (because the RFC destination is                 already mentioned at the time of script creation: Refer step 4).

13. It goes to ‘MM01’ transaction as follows.

14. Record the steps as required.

15. After completing the recording, click on Stop Recording.

16. Click on Save.

17. By double clicking the interface we can observe all the recorded steps.

PART – II

This part includes recording of START script.

  1. Go to START_F01 transaction code. (START_F01 T-Code is used for recording the FIORI applications)
  2. Click on Launch with URL.

3. Enter the SDC (System Data Container), Target System and URL.

4. Click on Create.

5. Chrome tab will be opened according to the URL details given.

6. Record the required steps with importing and exporting parameters.

7. Click on Stop Recording in the Recording Panel.

8. The script is generated with the steps recorded.

9. Click on Save.

10. Enter the Test case and Test case description in Test case details dialog box.

PART – III

Combining ECATT and START script into single(wrapper) script.

The wrapper script is created in the same way the ECATT script is created in PART- I.

  1. Go to SECATT transaction.

2. Enter the Test Script name and click on Create.

3. Click on Save icon.

4. Save as Local Object.

5. Click on Editor and click on Pattern.

6. Enter the Group, Commands and Target system.

7. Enter the Test Script (Ecatt Script which is created in PART – I).

8. The reference is created for Z_SV_TEST_ECATT as Z_SV_TEST_ECATT_1. (The reference consists of importing, exporting parameters etc., of the script recorded)

9. By double clicking on the reference we can observe all these parameters.

10. Click on Pattern.

11. Enter the Test Script name (START script which is created in PART – II).

12. The reference for ECATT and START is created.

13. The exporting and importing parameters can be made from one script to another.

14. We can test the script by executing it (Press F8).

15. Logs of the script can also be checked (Ctrl+F12).

In this way we can combine multiple test scripts to test end to end business scenarios.

Assigned Tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Ila Chaudhary
      Ila Chaudhary

      Very Helpful. Good Job.

       

      Thanks

      Ila Chaudhdary

      Author's profile photo Nathan Genez
      Nathan Genez

      The problem with these tools is just that the customers don't use them for their intended purpose.  SAP actually uses Test Case Management internally but I've never seen a customer do it.  They all use HP QC or another app.

       

      Author's profile photo Venkatraman Lakshmanan
      Venkatraman Lakshmanan

      Very helpful Srividya.

      One question regarding START_F01.

      Do we need to install any additional SP or package for START_F01 transaction?

      I have tried in our system and it doesn't exist. I'm sure I'm missing something.

       

      thanks

      Venkat

       

      Author's profile photo Srividya Madireddy
      Srividya Madireddy
      Blog Post Author

      Hi Venkat,

      Sorry for delay in response.

      For creating and maintaining START and Ecatt scripts we have different systems(I cannot explicitly mention here). If you require in your development system(any other system), you need authorization.

       

      Regards,

      Srividya

      Author's profile photo Ajith Cheruvally
      Ajith Cheruvally

      Hi, Srividya.

      Thanks for this article. However, I am not able to find the START_F01 tcode in my system. We are on Netweaver 7.50. How do we get acces to this transaction?

      Thanks,

      Ajith

      Author's profile photo jaya nair
      jaya nair

       

       

      Hi Srividya,

       

      we have created custom ecatt and tried to solution in the building block builder.

      1. in the source system.
          1. the ecatt was generated from SECATT,

      2. ECATTs are downloaded as a text file in the local folder

      3. and added to the custom building block in tcode /n/smb/bbi

      4. the solution and installation is then exported from the source system to local                                      folder

      2.  in the target system – both the systems are not connected to each other

      the local files – solution and installation are imported via the tcode /n/smb/bbi

      while activating/check  the system throws error

      /SMB/BBPRJ_INST (PCC-CE message class) 071

       

      Thanks.