- Prepare for testing the operations
Enable script debugging in your Internet Explorer browser.
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. (You must close and reopen the browser after making changes to these options.)
Run the sample application in Internet Explorer. (Make sure to allow blocked content).
In Extensibility Accelerator, open the Output window (Debug > Windows > Output). If necessary, right-click in the window and select Clear All.
- Select the GoToAuthorPage test object operation for testing
In the Operations tab in the test object designer, select the GoToAuthorPage operation and click the Debug Operation button in the Operations toolbar.
The Debug Test Object Operation dialog box opens, with the WebExtBook test object class and the GoToAuthorPage operation selected.
- Select the Book control as the control on which to run the operation
Click Select Control.
Extensibility Accelerator is hidden, the Book control is highlighted in the browser, and a Cancel button is displayed at the top of the screen. (This might take a moment.)
Click the highlighted Book control.\
The Debug Test Object Operation dialog box comes back into focus.
- Enter the argument to use for the operation
In the argument value table, in the cell for the AuthorName value, enter
- Run the operation
Click Run Operation.
Extensibility Accelerator runs the GoToAuthorPage operation with the argument "
The sample application opens to the
In the Output window, you can see the _util.Logline and _util.Report functions that are called during this process.
- Run the GoToUsedBooksPage operation with a breakpoint in the function
In the browser, click Back to sample.
In the Class View, right-click the GoToUsedBooksPage operation and select Debug to open the Debug Test Object Operation dialog box.
Click Run Operation.
Extensibility Accelerator runs the GoToUsedBooksPage function and stops at the breakpoint.
Many debugging options are now available in the Debug toolbar and menu. You can use Step Into, Continue, or Stop Debugging to complete this session.
- Test the Select method
Use the tools that you learned in the previous steps to test the remaining test object operation you implemented.