Note: This task is part of a higher-level task. For details, see How to Design Test Object Class Operations .
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.
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.
- 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
You can now debug your functions using the Microsoft Visual Studio Shell debugging tools that are available in Extensibility Accelerator.