Show TOC

Procedure documentationRunning a CBTA Test Script in Debug Mode Locate this document in the navigation structure

 

If a CBTA test script fails, you can execute the components (test steps) one at a time. Component-Based Test Automation provides a graphical overview of the test (steps) and displays the corresponding UI components.

The CBTA debugger allows you to debug a test at component level, without seeing the Visual Basic Scripting (VBS) code, so you see the actual state of the tested application UI, and input and output parameter values.

Note Note

To examine the code, you can use the Microsoft Visual Studio debugger. Do the following

  1. In Microsoft Visual Studio, choose   Tools   Attach to Process  .

  2. Next to the Attach To drop down list, click Select and choose Script.

End of the note.

Procedure

  1. In the Test Repository, select a CBTA test script, and choose Execute.

    You go to the Start Options screen.

  2. On the UI Control tab page, in the Mode for External Tool field, select Debug Mode.

  3. Choose Execute.

    The CBTA debugger starts. A graphical overview of the test steps is displayed.

  4. Choose Run.

    The test script steps are executed while the corresponding UI components are displayed.

  5. You have the following options:

    • To insert breakpoints, choose the Toggle Breakpoint button.

      The following shortcuts are available:

      • Toggle Breakpoints: F4

      • Run: F5, F8

      • Skip a component: F6, F10

    • To change parameter values dynamically, double-click them in the table.

    • To examine the code, choose the Start External Debugger pushbutton.

    • To identify errors (on request by the SAP support, for example), display the CBTA logs:

      1. Under MS Windows, choose   Start   All Programs   CBTA   CBTA Configuration  .

      2. On the Log tab page, choose View Log.