It seems to me that the qtpApp.Test.Actions array is readOnly through the AOM, can anyone confirm this for sure?
I am trying to generate the whole test(repo+scripts) automatically from C# so at some point I arrive at the following code:
....//some initialization work here
qtpApp.Test.AddNewAction(testCaseName, testCaseName, strBScriptContent.ToString(), true, qtActionPosition.qtAtEnd);
After this however I will always have 2 Actions in the view in QTP:
The first one called Action1, which contains nothing
and the second one called testCaseName containing the expected script.
I was wondering if someone could help me either delete Action1 or show me a line of code where I can make my own generated and added action the first one in the list.