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 |
wt is playback facilityin qtp?
Does QTP supports Linux or Unix OS?.If so which scripting is preferable? Shell we do record and playback
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
How to execute a VBS file without using Execute File statement?
hen do start automation testing after manual testing
How do you create new test sets in td?
Wht is Smart Identification Mechanisam in QTP..Actually when do we this Technology means during Recording or running ....how is technology works. Anybody can expalin this .....Thanks in advacne
whare exactly we have to use functions and sub routain
Please any on explain usage of "on error resume next","On error goto 0" with sample code....Thankyou......... when a tester is asked to execute 100 scripts in a short time..(the server will be down in another 10 min)..how he has to run those scripts?
How to parameterize in QTP?
The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)
How to check the URL using Automation tool QTP