Show TOC

Procedure documentationEnhancing CBTA With Custom Code Locate this document in the navigation structure

 

Certain actions cannot be performed with the default component-based test automation, for example recording/playing a test with Adobe flash technology, with Java applets, or with web controls that have complex javascript handling. You can enhance CBTA with custom functions. The CBTA engine is based on a Visual Basic Scripting (VBS) library called runtime library (RTL). You can add custom code to this library using the CBTA runtime library manager.

Procedure

  1. In the Test Management work center, choose   Administration   CBTA Settings   Customize RTL  .

    You go to the RTL Manager.

  2. Enter your credentials.

  3. Do the following:

    1. To lock the RTL for editing and copy the RTL from SAP Solution Manager to the local file system, choose Open for Edit.

    2. Select the location, and confirm.

    3. To open the local folder in which the copy of the RTL is stored, choose Explore.

    4. Optional: To create a custom RTL file, use an SAP-delivered template:

      1. On the Functions tab page, choose Code Assistant.

      2. Choose Select.

      3. Select a pattern, for example SAP GUI, and confirm.

      4. Choose Next.

      5. Enter a name, choose Next, and finish the assistant..

      6. Select the RTL and choose Edit.

    5. Edit the RTL. The editing depends on the targeted UI technology. The following application programming interfaces (APIs) are available:

      • SAP GUI scripting API

      • CRM Query API for SAP CRM Web Client applications

      • Web Query API for all other HTML-based applications

      For more information, see the CBTA Runtime Library Manager documentation on SAP Service Marketplace at   http://service.sap.com/support   Overview   Processes   Media Library   Test Management  .

    6. In the folder, you created, store the edited RTL file under \CBASE\Custom.

      The custom RTL file is automatically recognized by CBTA when you execute a test script in the Test Composaition Environment.

    7. To check your RTL, execute a test script.

    8. To send the new RTL version to SAP Solution Manager and make it available for all users, choose Submit.

      In the next test recording or execution, the new RTL version is retrieved automatically by the local CBTA client installations.