Topic
  • 3 replies
  • Latest Post - ‏2013-03-20T07:57:24Z by SystemAdmin
SystemAdmin
SystemAdmin
16727 Posts

Pinned topic RFT to capture the Output and use further in the Script

‏2013-02-22T15:14:28Z |
Hi,

We are using RFT 8.2.2.1 version.
We have some HR related scenarios, where i have to capture the EmployeeID which gets generated at the end of NewEmployeeEnroll Script and i have to re-use the same EmployeeID for enrolling them for paystubs, benefits and all, either in the same script or enrolling can be in another script.

Does RFT can capture the value from first script and save it in Datapool? and reuse it again? If so please help me understand how i can do that. We got RFT recently from January onwards, and trying to learn this tool.
Thanks
RFT Worker
Updated on 2013-03-20T07:57:24Z at 2013-03-20T07:57:24Z by SystemAdmin
  • mbachu
    mbachu
    26 Posts

    Re: RFT to capture the Output and use further in the Script

    ‏2013-02-27T16:31:35Z  
    When you capture an employee id, write the captured employee id in to a (New)table and when you need to add the benefits, use the new(table) entries (like emplyee id) to add benefits.

    Thanks,

    Mahesh
  • SystemAdmin
    SystemAdmin
    16727 Posts

    Re: RFT to capture the Output and use further in the Script

    ‏2013-02-27T18:06:13Z  
    • mbachu
    • ‏2013-02-27T16:31:35Z
    When you capture an employee id, write the captured employee id in to a (New)table and when you need to add the benefits, use the new(table) entries (like emplyee id) to add benefits.

    Thanks,

    Mahesh
    Can you please explain how it can be done. How can we capture employee ID and is there a way that i can save it in Data pool and use it again in the script?
    Also , please explain, "write the captured employee id in to a (new) table" how do i do this?

    Appreciate your help!
  • SystemAdmin
    SystemAdmin
    16727 Posts

    Re: RFT to capture the Output and use further in the Script

    ‏2013-03-20T07:57:24Z  
    Hi, you can return a value from a script and use it in the calling one. Just return a value from testMain of the called script. Then cast the returned Object from callScript to your type, in the calling script.