pls tell me how will you write the vb script in QTP for
DataDriven test from Excel sheet for multiple userid and
password explain with example
Answer Posted / ravindra
We write different userids and passwords in Datatable.
then..
Dialog("Login").Winedit("Userid:").set Datatable.value
("userid",dtGlobalSheet)
Dialog("Login").Winedit("Password:").set Datatable.value
("password",dtGlobalSheet)
Dialog("Login").WinButton("OK").Click
Here "Userid" and "Password" are the Column names of the
datatable
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading
How to use checkpoints in qtp ?
Where to use function or action?
Can you list some technologies that support qtp?
Did QTP prove efficient for your project? Yes or No, explain?
how to acess a test in RSA?
Why to use descriptive programming?
Hi All, How to Compare two strings character by character in QTP
Explain different type of event trigger option.
What is a Patch in QTP?
What is the process of synchronizing qtp and aut?
What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);
How to create scenario selector