Hi to all
Could any body tell me what maximum number of actions we can create in QTP 11.0?And also support for answer why this so?
Thanks & Regards
infinity physically, depending on storage aspect. I guess so.
Each action has to have it's own sheet in the Data Table. The maximum number of sheets allowed in QTP 11.0 is 255. So the maximum actions allowed should be the same.
No this is wrong answer according to Tarun Lalwani's book (I thought I know QTP) in which he said only 120 action.
But did not mentioned the reason for support this answer.
Yeah.. Even I read the same in the book. I guess maybe having that many actions in a single test case is not a good approach. So they might have kept it at 120. But still not sure why its 120. If its this reason then it could have been anything.
P.S. Just a guess.
A n i s h [My QTP Blog]
It's 255. Please view the screenshots and run the below code as a ".vbs" file.
Set qtApp = CreateObject("QuickTest.Application")
qtApp.Visible = True
For i = 2 to 500
ActionContent = "Action" & i
ActionDescription = "This is Action " & i
ActionName = "Action" & i
Set NewAction = qtApp.Test.AddNewAction(ActionName, ActionDescription, ActionContent,True, qtAtBegining)
Looks like someone has missed reading the preface to the book [img]/images/graemlins/smile.gif[/img]