Test and debug your test object operation support
Note: This task is part of a higher-level task. For details, see Design test object class operations .
If you are running on Microsoft Internet Explorer, enable script debugging in Microsoft Internet Explorer.
For example: In Internet Explorer 7.0, select Tools > Internet Options. In the Advanced tab, clear the Disable Script Debugging options in the Browsing group.
Extensibility Accelerator 2022 or later: If you are running on Google Chrome, press F12 to open DevTools and use it to debug your functions.
Open the application on which you want to run and debug your operation, and make sure that the page is fully loaded and the relevant control is visible. (You must run Extensibility Accelerator and open a project before you open the web browser.)
Make sure that the rules displayed in the rule editor for your test object class correctly identify the control on which you want to debug the operation.
You can click Test All Rules in the Map to Controls tab (Test Object Class designer) and verify that the control is highlighted in the application.
- Set a breakpoint in your implementation function - Optional
If you want the run session to pause when it reaches the function that you designed to support the operation, you can add a breakpoint at the beginning of the function.
If you are using Google Chrome, use the DevTools capabilities.
- In the Debug Test Object Operation dialog box, select the test object class operation to run
Do one of the following:
In the Class View, right-click the operation and select Debug. The Debug Test Object Operation dialog box opens with the test object class and operation selected.
In theOperations tab (Test Object Class designer), select an operation from the operation list and click the Debug Operation button in the operation list toolbar. The Debug Test Object Operation dialog box opens with the test object class and operation selected.
Select Project > Debug Test Object Operation. In the Debug Test Object Operation dialog box that opens, select the test object class and the operation that you want to run.
If the operation you selected receives arguments, a table displays the argument names, whether they are optional, and the type of value they require. If necessary, enter the argument values to pass to the operation.
- Select an application control on which to run the operation
In the Debug Test Object Operation dialog box, click Select Control. Extensibility Accelerator is hidden, all of the controls that match the mapping rules in all open Web applications, are highlighted, and a Cancel button is displayed at the top of the screen.
In many cases you can open or navigate to additional applications or Web pages at this point. Once the application or page loads successfully, the matching controls are highlighted in it as well. (To navigate at this point, you need to hold down the Ctrl key.)
If a specific page does not load properly when navigating to it at this point, load that page in an additional browser before clicking Select Control.
Note: Controls are highlighted only in browsers that are opened after you open a project in Extensibility Accelerator.
Click the control on which you want to run the operation. You must select one of the highlighted controls.
The highlighting is removed from the application, Extensibility Accelerator opens and the Debug Test Object Operation dialog box is displayed.
- Run the operation
If you ran the operation on a control running in Microsoft Internet Explorer, you can now debug your functions using the Microsoft Visual Studio Shell debugging tools that are available in Extensibility Accelerator.
If you ran the operation on a control running in Google Chrome, use the DevTools capabilities to debug it.