pop up in QTP
I need to execute 10 test conditions. So when QTP is running i need to display a popup which shows automatically the corresponding testcondition id (that is from 1 to 10).The popup should be displayed from the start of script running to the end of script running.Here i dont need to click the "OK" button.Please help!!
Re: pop up in QTP
This message box displays the text, you provide in parameter and dissapears in 2 sec without clicking on "OK" botton.
Sub CustomMesBox (sText)
Set WshShell = CreateObject("WScript.Shell")
WshShell.Popup sText, 2, "Test condition ID"
Set WshShell = Nothing
Call that whenever needed:
If you need to increase\decrease TimeOut, or change the title of PopUp - you can control it in the line:
WshShell.Popup Text, TimeOut, Title