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
How do you do batch testing in wr and is it possible to do in qtp, if so explain?
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?
How may types of defects identify application or your currently working application?pls give me answer..
Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
How can i initiate the objects to find uniquely in OR
Does quicktest professional is unicode compatible?
how to acess a test in RSA?
What is use of object spy?
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.
If created one virtual object? Next time I changed the window position will it work?
Where you get the run time data table?
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