Micro Focus QTP (UFT) Forums
vb script in qtp for different username & password - 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: vb script in qtp for different username & password (/Thread-vb-script-in-qtp-for-different-username-password)



vb script in qtp for different username & password - sonalee - 04-27-2011

hi frnz...............
i want to write script for different username & password in qtp
so how to write it
i know we have to use for loop, checkpoints but how to write


RE: vb script in qtp for different username & password - Saket - 04-27-2011

Hi Sonalee,

Can you please elaborate your query mentioning your exact issue you are facing?




RE: vb script in qtp for different username & password - sonalee - 04-27-2011

hey Saket,
i want to write vb script for testing login with multiple username & password
so wat should be the script




RE: vb script in qtp for different username & password - Saket - 04-27-2011

vbscript in particular or you want to script in QTP?

in QTP - follow below steps for a basic simple way
either record or add your objects to repository
write statements to set values in user and password
parameterize them to get the values from your data table
write statement to submit
write statement to verify login pass/fail
enter different mulitple login data in your datatable.

thats it, now you are ready to run.


RE: vb script in qtp for different username & password - sonalee - 04-27-2011

ok thanks will try