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

Which property will you use to check the object state? (Exist)

2 Answers   Symphony,


I heard that in Hyderabad Ameerpet is renowned for its training institutes it has , but from my own experience I can only say that this institutes have become money making machines losing their cognitive ability and ethics , can anybody tell me is there a good ins. in hyderabad for testing tools.?

2 Answers  


What is the use of virtual objects?

1 Answers  


whenever U using QTP,Test Director, Why we using separate Bug tracking tool?

1 Answers  


how do u import the test cases written in excel sheet to qtp? and how do u generate the script in qtp for the testcase in excel sheet? plzzzz do answer this question thanks in advance

4 Answers  






To which environments does quicktest professional supports?

0 Answers  


what is action in QTP?

1 Answers   Infosys,


I want to scroll down in MSPAINT (captured a screen already). So that I can read the data in it through the step Window(paint).GetVisibleText for my validation. Anyone know the scripting for this?

1 Answers   TCS,


I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

0 Answers  


When i used this below script to insert value in the Datatable... At run time it was inserting the given value in the specified column, But after execution all those inserted values were cleared automatically... datatable("column name",sheetid)=value

1 Answers  


what is L-trim function will do?

2 Answers  


How to supress warnings from the "Test results page"?

6 Answers   BirlaSoft,


Categories