0 votes
in QuickTest Professional (QTP) by

What is the difference between functions and actions in QTP?

1 Answer

0 votes
by

Actions have their own Object Repository & Data Table. Actions help make your Test modular and increase reuse. Example: You can divide your script into Actions based on functionality like Login, Logout etc.

Functions is a VB Script programming concept and do not have their own Object Repository or Data Table. Functions help in re-use of your code. Ex:  You can create a Function in your script to concatenate two strings.

Related questions

+1 vote
asked Jan 16, 2020 in QuickTest Professional (QTP) by JackTerrance
+1 vote
asked Sep 12, 2020 in QuickTest Professional (QTP) by JackTerrance
...