How to call Datable values in the QTP program.
exp: I have two parameters like Email id and Password
this two i would like to add multiple entries in the datable
to use it.
What is the difference between Gobal/Action datatable

Answer Posted / lakshmi

Call DtValues in Qtp:-

(Ur data Present in Dt(Global/Action Sheet first u verify)
nd Then proceed with this script...

dim rc
rc=DataTable.GetSheet("Global/Action").GetRowCount
for i=1 to rc
Datatable.setCurrentRow(i)
invokeapplication "Give Flight appPath"
Dialog("Login").WinEdit("AgentName").set
DataTable("Email id","Global")
Dialog("Login").WinEdit("PWord").set
DataTable("Password","Global")
Dialog("Login").WinButton("OK").click
Window("FR").close
DataTable.SetNextRow
Next

Diff in Datatable:(As ur Req u can ...)

By Default Setting For Global sheet is:
Run For Multiple Iterations
By Default Setting For Action sheet is:
Run For One Iteration Only

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you do batch testing in wr and is it possible to do in qtp, if so explain?

509


How do I lauch my test website using code from qtp in different environmet, uat and PPTE?

1462


How may types of defects identify application or your currently working application?pls give me answer..

1517


Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

637


whenever U using QTP,Test Director, Why we using separate Bug tracking tool?

1568






How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?

3058


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

614


How can i initiate the objects to find uniquely in OR

1474


Does quicktest professional is unicode compatible?

527


how to acess a test in RSA?

1672


What is use of object spy?

616


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

1506


If created one virtual object? Next time I changed the window position will it work?

585


Where you get the run time data table?

589


in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded

1524