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



How to call Datable values in the QTP program. exp: I have two parameters like Email id and Passwor..

Answer / manish

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

How to call Datable values in the QTP program. exp: I have two parameters like Email id and Passwor..

Answer / 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

How to call Datable values in the QTP program. exp: I have two parameters like Email id and Passwor..

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

Post New Answer

More QTP Interview Questions

There are 4 webpages in an application, in third page there is one cancel button i want to click that cancel button only, how can I click that cancel buttton ?

4 Answers   Wipro,


Is there any MS Access addin in QTP?

7 Answers  


what is the difference between call to copy action and call to an existing action

5 Answers  


Which Databases supports for QTP?

2 Answers  


how to capture objects of remote deskop as it is capturing only window.

1 Answers   Wipro,






What is the XML file architecture ?

0 Answers  


how to parameterizing values from an excel sheet in Quick test professional?

1 Answers  


Please explain the role of Regular expression in QTP

0 Answers  


Tell me the difference between the Data Driven Frame work and Keyword Driven frame work?

3 Answers   Semantic Space,


How to make arguments optional in a function?

0 Answers   Crea,


w is descriptive programming

2 Answers   TCS,


wht type of User defined functions or Java Releated functions Do we write in VB scripting

0 Answers  


Categories