Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to call Action
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi ,

Find the following way :

Step 1 :
Create 3 Actions
1)Login ---> 3 rows of data in global sheet of datatable(3 userNames & pwds)
2)Insert_FlightOrder --> 3 rows of data in Localsheet of Datatable ( 3 different filght dates )
3)Exit

Step2 :
Go to Keyword View -> Select "Insert_FlightOrder" Action --> Right Click "Action Call Properties" --> Choose "Run on All rows"

Step3 :
Now execute the script & see .... it will work as expected Smile

_________________________________________________________________________________________________________
FYI...Find the entire code for your requirement given below :

Code for "Login" Action :

Code:
invokeapplication  "D:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe"
dialog("Login").WinEdit("Agent Name:").Set DataTable("Uname", dtGlobalSheet)
dialog("Login").WinEdit("Password:").Set DataTable("Pwd", dtGlobalSheet)
dialog("Login").WinButton("OK").Click

Code for "Insert_FlightOrder" Action :

Code:
Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"
Window("Flight Reservation").WinObject("Date of Flight:").Type DataTable("Fight_Date", dtLocalSheet)
Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt"
Window("Flight Reservation").WinComboBox("Fly To:").Select "Los Angeles"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select 0
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "sree"
Window("Flight Reservation").WinRadioButton("First").Set
Window("Flight Reservation").WinEdit("Tickets:").Set "2"
Window("Flight Reservation").WinButton("Insert Order").Click
wait(5)

Code for "Exit" Action :

Code:
Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"
Reply


Messages In This Thread
How to call Action - by sudhirzpatil - 02-09-2009, 02:55 PM
RE: How to call Action - by sreekanth chilam - 02-09-2009, 11:34 PM
RE: How to call Action - by sudhirzpatil - 02-10-2009, 12:02 PM
RE: How to call Action - by Forrest Gump - 08-25-2011, 01:43 AM
RE: How to call Action - by ashita - 08-26-2011, 10:14 AM
RE: How to call Action - by Forrest Gump - 08-27-2011, 11:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Object not found during the 2nd iteration of an Action call in a For loop BGunay 0 969 04-23-2020, 07:08 PM
Last Post: BGunay
  Is it possible to call Java window and Power Builder Window in 1 Action sbkhbk 0 2,533 06-05-2014, 08:18 PM
Last Post: sbkhbk
  insert call to new action bistritapcv 1 2,586 04-06-2013, 12:09 PM
Last Post: ravi.gajul
  How to stop Second Action Call faheem05 6 4,135 10-05-2012, 11:11 AM
Last Post: faheem05
Exclamation QC is very slow and does not run my tc. My testcase has 'call to existing action' chong67 0 2,161 06-13-2012, 07:47 PM
Last Post: chong67

Forum Jump:


Users browsing this thread: 1 Guest(s)