How about a similar utility function, which works very similar, like "msgbox" and also provides the user the flexibility to perform further debugging?
Firstly let us see what happens in case of "msgbox" function. As soon as the script encounters the "msgbox" function, it displays a dialog box and the script gets paused till the user presses the OK button.
In order to counter this problem, HP QTP also provides a fantastic Print utility which is very similar to its "msgbox" counterpart but much more flexible. It can be used for debugging purposes. It is very simple to use inside QTP tool.
As you can see from this screenshot, QuickTest Print Log window remains open even after your script has finished running, thus providing more flexibility.
So from now on which one you would like to use? QTP’s "msgbox" function or QTP’s Print Utility Statement?
Did you like my explanation of the concept in the above article?
Keywords: HP QTP, Quicktest Professional, QTP Blog, QTP msgbox function, QTP Print utility statement