Micro Focus QTP (UFT) Forums
How to enter login details manually while using DP automation? - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to enter login details manually while using DP automation? (/Thread-How-to-enter-login-details-manually-while-using-DP-automation)



How to enter login details manually while using DP automation? - Uma - 09-15-2011

Hi,
I am using DP Programming in my script.I asked to leave the userid and password colum as a blank one.(Instead of automation I need to keep that as a manual one)

Here is my script,
Here I am passing Uname and Pword value from text file.

Code:
'Browser("name:="&result,"application version:=internet explorer 7").Dialog("text:="&dia).WinEdit("attached text:="&usr1,"windowextendedstyle:=0","nativeclass:=edit").Set Uname
'Browser("name:="&result,"application version:=internet explorer 7").Dialog("text:="&dia).WinEdit("attached text:="&pwd).SetSecure Pword

How can I keep the Uname and Pword column as a blank one,I want to manully enter.

Any help?
Thank you,
Uma


RE: How to enter login details manually while using DP automation? - kotaramamohana - 09-16-2011

Hi Uma,

Can you please try with below mentioned code?

Code:
Browser("name:="&result,"application version:=internet explorer 7").Dialog("text:="&dia).WinEdit("attached text:="&usr1,"windowextendedstyle:=0","nativeclass:=edit").Set inputbox("Enter Username")
Browser("name:="&result,"application version:=internet explorer 7").Dialog("text:="&dia).WinEdit("attached text:="&pwd).Set inputbox("enter Pwd")



RE: How to enter login details manually while using DP automation? - Uma - 09-17-2011

Hi,
it is working.
Thank you
Uma