Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to call reusable actions by passing parameters.?
#1
Not Solved
Hi All,

Below is the sample action code
###############################
======== Login Action ========
Code:
Dialog"Login").WinEdit"Agent Name:").Set "username"
Dialog"Login").WinEdit"Password:").SetSecure "password"
Dialog"Login").WinButton"OK").Click

======== Insert_order Action ========
Code:
Window"Flight Reservation").ActiveX"MaskEdBox").Type "parameter1"
Window"Flight Reservation").WinComboBox"Fly From:").Select "parameter2"
Window"Flight Reservation").WinComboBox"Fly To:").Select "parameter3"
Window"Flight Reservation").WinButton"FLIGHT").Click
Window"Flight Reservation").Dialog"Flights Table").WinButton"OK").Click
Window"Flight Reservation").WinEdit"Name:").Set "parameter4"
Window"Flight Reservation").WinButton"Insert Order").Click

======== Logout Action ========
Code:
Window"Flight Reservation").WinMenu"Menu").Select "File;Exit"
###############################

1) These are the reusable actions which I'm using
a. Login
b. Insert_order
c. Logout

2) I'm using MS excel for database.
a. login database for fields (username,password)
b. insertodrer database for fields (date, Fly From, Fly To, Flight, Name)


Question :
Now I have to create this program in a below mentioned flow
———————————————–
Code:
call "login" action                 //pass parameters here (i.e. username/password from xls)
        if login sucessful
            call "Insert_order" action    //pass parameters here (i.e. date, Fly From, Fly To, Flight, Name frm xls)
            call "Logout" action
        endif
        return the result of test in a separate xls files
———————————————–

Please help me in getting these resolved.
Or what is the best way to do this type of case?

Thanks
Arun
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Set data parameters Mik2s 1 1,536 03-07-2019, 10:18 PM
Last Post: supputuri
  Part of parameters missing when passing between actions skumar007 1 3,033 10-10-2014, 02:00 AM
Last Post: skumar007
  How to call Actions from other Actions Naresh 1 8,039 09-25-2014, 10:26 AM
Last Post: vinod123
  Launching .exe file with parameters magnifyingone 1 3,218 08-28-2014, 06:39 PM
Last Post: dplank
  Action Parameter passing problem Qtpuser1 1 2,871 04-18-2014, 06:23 AM
Last Post: kgovadav

Forum Jump:


Users browsing this thread: 1 Guest(s)