How many action can a QTP or UFT test script have?
I’ve received a few emails over the past years inquiring about if there was a limit to the amount of actions a script could use. I'm surprised I've never created a post specially to address this question. So rather than to continue to answer each one individually, I thought it would be better to frame my reply in the form of a quick post.
First I hate actions – I never use them. I would rather use a function library approach over actions. I think that actions are harder to maintain and use. With UFT one of the drawbacks, of only being able to open one action at a time ,in the IDE, has been changed. Now multiple action can be opened in UFT making some of the maintenance issue a little more bearable.
But I still hate actions. OK –enough with my rant.
120 Actions per Script
Since QuickTest Professional 9 the limit has been a maximum of 120 Actions — either usable or non-reusable– can be placed in a tests. This limit still exist in UFT.
If you hit the actions limit you can work around by using function instead (Which is the approach you should have taken from the beginning :) )