Micro Focus QTP (UFT) Forums

Full Version: Display a Dialog box
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Durring a QTP Test Script Run, is it possible to display a pop up or dialog box for a secound or two that dispays a message to the user, but with no comfirmation required?

I would like to display some values on my screen without use print or msgbox.

thx for your ideas.
i think print is the only solution if no confirmation required.
You can do that by shell scripting.

Code:
Set ShellObj = CreateObject("WScript.Shell")
ShellObj .Popup "Hello", 5
Set ShellObj = Nothing
ShellObj .Popup "Hello", 5>>>>In this step you need to replace "Hello" with your desired keyword and "5" with your needed time in sec to be displayed the popup.
@Guin,

Thx for the idea. This is perfect. I will try this in a function that will pass a variable. Thx!

Lor