Can I use datatable of Action1 in the Action2.

Answers were Sorted based on User's Feedback



Can I use datatable of Action1 in the Action2...

Answer / nagk24

we can use any table from any action
here is the login details in action1 calling from action2
record in action2:=
n=datatable.GetSheet("Action1").GetRowCount
For i=1 to n
systemutil.Run"C:\Program Files\HP\QuickTest
Professional\samples\flight\app\flight4a.exe"
datatable.SetCurrentRow(i)
Dialog("Login").WinEdit("Agent Name:").Set
datatable("A","Action1")
Dialog("Login").WinEdit("Agent Name:").Type micTab
Dialog("Login").WinEdit("Password:").SetSecure
datatable("B","Action1")
Dialog("Login").WinEdit("Password:").Type micReturn
Window("Flight Reservation").Close
Next

Is This Answer Correct ?    1 Yes 0 No

Can I use datatable of Action1 in the Action2...

Answer / abcde

Yes we can.Use the following code

Datatable.value("column_name",sheet_id)

Here Sheet_id is action2

eg: Datatable.value("c1",3)

3=action2 datasheet

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

how will check the links in multiple pages at a time

3 Answers  


Hi, Can anyone help me in esimating time for an application using QTP tool.. What factors should be considered while calculating the estimation time for QTP... Thanks in advance... Prasad Gali

3 Answers  


MANUAL TESTING, AUTOMATION TESTING QTP,QC , Load Runner , SELNEIUM ONLINE TRAINING

0 Answers  


1)Difference Between Value & RawValue?

2 Answers   Wipro, Zensar,


can u expect, major bugs in NET BANKING Project? Modules Transaction Module, Customer Relation Module.

2 Answers  






What is smart identification?

2 Answers   Ordain Solutions,


I install .Net Add-Ins in my system. It installed properly. But all the objects are recognizing as window objects only. But it has to recognize as swf objects. In Record and Run setting i selected 'Record and run test on any open browser' and Record and run test on any open Windows-based application' Can any one tell what setting i have to do to recognize objects correctly as swf...? Please give some suggestions..?

1 Answers  


How many types of Parameters are available in QTP?

1 Answers  


If requirments changed then how we can teach the QTP this is the new requirment

2 Answers   Accenture,


whaht is the difference between CLASS & OBJECT?

3 Answers   Accenture,


how to explain a claims and insurance project?

0 Answers  


Synchronization methods?

8 Answers   Ordain Solutions,


Categories