Supporting a Custom Control > JavaScript Function Debugging

JavaScript Function Debugging

After you design the JavaScript functions that implement your test object operations and property retrieval, you can test and debug them using Extensibility Accelerator. You do not need to have UFT installed to do this.

You can run a selected test object operation or retrieve the value of a selected property for a control that you select in your application. Extensibility Accelerator performs the test object operation or retrieves the property value by running the JavaScript function that you designed to support it, just as UFT would during a run session. This enables you to test and debug the support you designed.

While your JavaScript function runs, you can debug your JavaScript functions as you would in a regular Microsoft Visual Studio JavaScript debugging session.

For example, if you set a breakpoint in your function before running the operation, the run session will stop at the breakpoint if it is reached.

You can also add breakpoints, use step commands and other Debug menu commands and toolbars, use the various debugging-related windows such as Watch and Output, and so on. For details, see the MSDN Visual Studio Help.

Note: _util methods are relevant only when running in the UFT context. Therefore, if the JavaScript functions that you run include calls to _util methods, these calls are not carried out when they are encountered during the debugging process. Instead, a message is printed in the Extensibility Accelerator Output window specifying the method call and the parameters it passed.

For task details, see How to Test and Debug Your Test Object Operation Support and How to Test and Debug Your Property Retrieval Function.