What is difference between Reusable Actions and functions in QTP(functionality wise)

Questions by Ashish Kadam   answers by Ashish Kadam

Showing Answers 1 - 3 of 3 Answers

srujan

  • Aug 25th, 2006
 

there is the difference:

Re-usable Action: an action that can be used numer of times when ever n where ever that perticular action is required. this perticular re-usable action can carry not only the script but also the data sheets which r related to that script.    ex: the login action is occured in 3times in an appliaction, if we prepared that action in re-usable mode that can be called in to QTP for 3 times r more than to that insted of recording/writing the script again, so that we can save the time as wel as memory of computer. 

Functions: Funtions are different from re-usable actions. these funtions are related to VBScript not to QTP, becz we use VBScript for QTP. funtions like Time Funtion, date Funtion, Public Funtion, private Funtion etc.,

  Was this answer useful?  Yes

Mike Adams

  • Sep 6th, 2006
 

The other big difference is that you cannot pass objects to the re-usable actions when you can to functions.

  Was this answer useful?  Yes

Bharathi

  • Dec 22nd, 2006
 

Reusable actions:

  If we want to use actions across various tests in QTP, we mark it as a reusable action.

Functions are part of the action, if we call a vbs in then we can use the functions in any test by including the settings -> resources. or executing the vbs file using the utility statement

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions