QuickTest Professional (QTP) Question:
Download Questions PDF

Where to use function or action?

Answer:

Well answer depends on the scenario. If you want to use the OR feature then you have to go for Action only. If the functionality is not about any automation script i.e. a function like getting a string between to specific characters, now this is something not specific to QTP and can be done on pure VB Script, so this should be done in a function and not an action. Code specific to QTP can also be put into an function using DP. Decision of using function/action depends on what any one would be comfortable using in a given situation.

Download QTP Interview Questions And Answers PDF

Previous QuestionNext Question
What is checkpoint in QTP?Can I change properties of a test object?