Associating Function Libraries with QTP Actions and the different ways to do it.
What is Associating Function Libraries ?
Associating means a way of connecting Function Libraries with the QTP Actions.Why should we Associate Function Libraries ?
Normally while we write code , we could also write it in Actions , but it is best practise to write it in Function Libraries as we can Load it whenever necessary or Unload it whenever we want , but this cannot be done in ActionsBecause , a single action can contain n number of Function Libraries associated with it , but Action will be only 1.
Ways to Associate/Disassociate Function Libraries
There are 2 ways
Other than Runtime:
1) Right clicking in Function Library Tab
2) File Settings
At Runtime:
1) LoadFunctionLibrary
Lets see in detail with screenshots
1) Right clicking in Function Library Tab
2) File Settings
At Runtime:
1) Using LoadFunctionLibrary Keyword in Action
No comments:
Post a Comment