Micro Focus QTP (UFT) Forums
Display a Dialog box - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Display a Dialog box (/Thread-Display-a-Dialog-box)



Display a Dialog box - mv8167 - 07-16-2011

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.


RE: Display a Dialog box - rajpes - 07-16-2011

i think print is the only solution if no confirmation required.


RE: Display a Dialog box - guin.anirban - 07-16-2011

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.


RE: Display a Dialog box - mv8167 - 07-18-2011

@Guin,

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

Lor