We are using RFT 220.127.116.11 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.
This topic has been locked.
3 replies Latest Post - 2013-03-20T07:57:24Z by SystemAdmin
Pinned topic RFT to capture the Output and use further in the Script
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-03-20T07:57:24Z at 2013-03-20T07:57:24Z by SystemAdmin
mbachu 0600003DGG26 PostsACCEPTED ANSWER
Re: RFT to capture the Output and use further in the Script2013-02-27T16:31:35Z in response to SystemAdminWhen 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.
Re: RFT to capture the Output and use further in the Script2013-02-27T18:06:13Z in response to mbachuCan 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!
Re: RFT to capture the Output and use further in the Script2013-03-20T07:57:24Z in response to SystemAdminHi, 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.