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
Answers were Sorted based on User's Feedback
For multiple iteration we can use global data sheet.
Getting the value :-
Browser(" ").page(" ").webedit("Emailid"). set
datatable.value("Email id",dtGlobalSheet)
Browser(" ").page("
").webedit("Password")datatable.value("Password",dtGlobalSheet)
Global Sheet And Action Sheet
GlobalSheet :- Global sheet we can use for every action and
by default it run for multiple iteration depends on the
value in the global sheet.
Action Sheet :- Action sheet is for perticular action and by
default it runs only one iteration but we can change it to
run for multiple iteration depends on the value in the
action sheet from the action property.
| Is This Answer Correct ? | 5 Yes | 2 No |
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 |
Answer / xyz
datatable.rawvalue("emailid",dtglobalsheet)
datatable.rawvalue("password",actionsheet)
global represents the iteration of the test,
| Is This Answer Correct ? | 0 Yes | 1 No |
can u tell me website address of VBscript with examples.
what is the difference between window command and dialog command
What is Modular framework and Keyword drive framework? Explain
How will you handle application crash using recovery scenario manager(step by step process)?
If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?
How to open an application through scripting?
Hi friends, I have heard that it is required to have an application hosted in the same machine where we use QTP. Otherwise QTP may identify the objects incorrectly. Please clear me is it true.
Please have a look at this: a = Browser("Travel Boutique Online").Page("Travel Boutique Online_2").webelement("innerhtml:=2622").getroproperty("y") a=a+9 msgbox a Browser("Travel Boutique Online").Page("Travel Boutique Online_2").image("alt:=check","y:=a").click Now please let me explain. As clear from code I am trying to enter value of variable 'a' as Property y. But each time QTP AND MY SYSTEM stops responding when this line is execcuted. But When i enter some number in place of 'a' in the last line. it works fine. Please let me know what I am doing wrong at time of entering the variable in last line. Thanks a lot
How should i get name of the screen? Ex:There is a "submit" button.If i clicked on the submit button it opens a screen. I want that screen name.How can i get that screen name I dont have any property regarding that screen. If suppose we cliked on the screen , Then QTP captures the screen properties then i can get the screen name by using GETROPROPERTY But i want the screen name without clicking the screen. ("I am using the "settoproperty" for Second screen by using fist screen properties") Please tell me anyone
what are the functions availabla in QTP? what are the data types in QTP?
Can I record on netscape browser does it require any special settings ?
Wht are the BY default Add-ins in QTP 9.2 version and what all are differences between 8.2 and 9.2