Posts: 9
Threads: 6
Joined: Mar 2011
Reputation:
0
04-27-2011, 11:25 AM
(This post was last modified: 04-27-2011, 11:38 AM by sonalee.)
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
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
04-27-2011, 11:42 AM
Hi Sonalee,
Can you please elaborate your query mentioning your exact issue you are facing?
Posts: 9
Threads: 6
Joined: Mar 2011
Reputation:
0
04-27-2011, 11:44 AM
hey Saket,
i want to write vb script for testing login with multiple username & password
so wat should be the script
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
04-27-2011, 11:51 AM
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.