Web Add-in Extensibility Developer Guide > Web Add-in Extensibility API reference > resolve Method

HPPromise Method

The HPPromise object provides methods that enable you to run computations that are deferred or asynchronous in your UFT Web Add-in Extensibilty projects.

resolve Method

Passes the original returned value of the object to UFT.

Syntax

JScript

resolve function name(

value

);

Parameters

value. The real value expected to be returned by the calling function.

reject Method

Collapse All

Passes an error or exception of the function being called.

Syntax

JScript

reject function name(

error, line, file

);

Parameters

error

The error instance or the error message

line

The line number in the file containing the function.

file

The file containing the function.