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 to open a new test using quicktest professional?
How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box
how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer
Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project
What is data driver in qtp?
In qtp, explain what is keyword driven automation framework?
when will you do debug your script? and explain that process?
How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")
What test you perform mostly? Regression or retesting in your testing process?
how can i pass a "cript"as a parameter in to a function
Sql questions to find second max salary and how to use joins
Diff b/w Health care domain and Banking Domain?
Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this
give me the code to save all messages of inbox of gmail into a folder and notepad
Explain the concept of how quicktest professional identifies object?