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 / srikanth

Create different userids and passwords in Datatable.
then..
Dialog("Login").Winedit("Userid:").set Datatable
("columnname",dtGlobalSheet)
Dialog("Login").Winedit("Password:").set Datatable
("columnname",dtGlobalSheet)
Dialog("Login").WinButton("OK").Click

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to carry out bit map check points in QTP

1759


After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.

5858


An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?

648


How to check bitmap output value?

622


hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me

1867






How you can find length of array in qtp?

539


give me the code to save all messages of inbox of gmail into a folder and notepad

1611


how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.

1314


What is keyword view in qtp?

546


To which environments does quicktest professional supports?

533


How to recognise the webelement and verifying that webelement is enabled?

1636


How to start recording using quicktest professional (qtp)?

591


What is object repository in qtp?

556


Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?

2968


Explain the concept of object repository and how quicktest professional (qtp) recognises objects?

601