Micro Focus QTP (UFT) Forums
pop not getting timed out in vbscript file - 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: pop not getting timed out in vbscript file (/Thread-pop-not-getting-timed-out-in-vbscript-file)



pop not getting timed out in vbscript file - tester_rahul - 09-23-2010

I am using the following code of lines in a vbscript file:

Code:
Set wshShell = WScript.CreateObject("WScript.Shell")
WshShell.Popup "Do you feel alright?", 2, "Question:"


A pop up appears as expected but the popup does not gets timed out.
The code is working fine if i use it through QTP.
Any idea what could be wrong.


RE: pop not getting timed out in vbscript file - supputuri - 09-23-2010

Hi Rahul,

Test with the below code.

Code:
Set wshShell = CreateObject("WScript.Shell")
WshShell.Popup "Do you feel alright?", 2, "Question:"
Set wshShell = Nothing

This code is working fine.

Let me know if you need any info.


RE: pop not getting timed out in vbscript file - tester_rahul - 09-23-2010

This is also not working. there must be some problem with my system configuration but i am not sure what it is.
i would appreciate it if anyone could provide me with any kind of solution


RE: pop not getting timed out in vbscript file - supputuri - 09-23-2010

hmmmm strange behaviour .....