Can I use datatable of Action1 in the Action2.

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if mandatory and Assitive propertys are shows same how will u write skript in QTP window

1786


What is synchronization point in QTP?

804


Hi Friends, How many types of Data Bases available in market... What is the diff. while using Syabase and Oracle in a Project... ? and what is the main diff. of Syabase and Oracle databases... ? Thanx in advance..

1697


Problem with XML checkpoint in QTP ?

3653


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

1832






What does it mean when a check point is in red color? What do you do?

723


Your roles and responsibilities and daily tasks? (As automation tester)

2733


How many tabs are available in debug viewer pane?

774


How can you identify the browser and its information using QTP script?

695


what is the difference between development and testing

2764


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1536


I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?

778


Explain object spy in qtp.

743


What are the challenges u faced in testing with crm domain? How u overcome with?

1648


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?

708