Results 1 to 3 of 3

Thread: Reusable Action

  1. #1
    Junior Member
    Join Date
    Feb 2008
    Answers
    12

    Reusable Action

    Need to call one reusable external action and Get the output value from the external reusable action. Need to Use this output value in the calling action. How can I do this?
    For example Random Function in external Action and it function return a random string “XXXXX” and I want to use this random string for next operation in the calling action Action2. How can I do this?
    Debug this code also returnValue=RunAction(“Action name”, iteration, input parameter)
    After debugging above code , get Null value 


  2. #2
    Expert Member
    Join Date
    Jan 2007
    Answers
    211

    Re: Reusable Action

    1. In Action Properties you can define the output values for the Reusable Action

    2. While the Called Action(Reusable) is executed, the output values can be fetched by Parameter('Variable Name as defined in the Action Properties')


    '''code
    strTemp = Parameter(Variable) 'used in the calling Action

    Regards,
    Nawab

    Last edited by NawabShaikh; 02-29-2008 at 01:23 AM. Reason: Inclusion of Code

  3. #3
    Junior Member
    Join Date
    Feb 2008
    Answers
    24

    Re: Reusable Action

    You can use any of the following things to save the returned value to use it later..


    1) Data Table: You can use local data table if you want to use this value in this action only or if you want to use the value in other actions then use the global data table

    2) Output Parameter

    3) Internal Environment Variable. ( Will be available to all the actions in your Test )


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact