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

how to upload an excel sheet to quality center?

1 Answers  


How to break the object spy ?

0 Answers  


I'm facing this problem while automating my application..its a web based apps.. In my application there are few webtables are displaying in the page.In the different cells there are links and action buttons.Problem is there is link in different web tables corresponding to one name.Hence the properties of the objects(say a link) are same except the x,y co ordinate of the object.So my script is not able to distinguish between the two links present in different cells of web tables with same name.Kindly help on this..

3 Answers  


Will down time for server and content maintenance/upgrades be allowed? how much?

0 Answers  


Tell me the situations where we will use Data Driven?

2 Answers  






How do you synchronization point through DP?

0 Answers  


Explain about reusable actions?

2 Answers  


What are the advantages of Automation objects than Test Objects?

2 Answers   Adobe,


HOW to invoke any recorded script in QTP with out using RECORD & PLAYBACK CONCEPT?

3 Answers   CTS,


HI. Plz Clarifie my doubt,having 2+yrs experience in Testing , But My accedamics(Xth,INTER) are Less than 60%, But B.Tech 72%. It creats any problem , When i change to any MNC. plz tell me......... lot of friends told it's a problem, Some people says NO problem, What .............

3 Answers  


How do you learn the object in QTP?

2 Answers  


How to take screenshots in qtp?

2 Answers   Sonata,


Categories