You can use For i = 1 to qtp_app.Test.Actions.Count to get number of actions in script.
Regarding your second point you should be able to use xml environment file. As there is no error coming i will not be able to give you answer unless you send me your vbs file.
you can try with .ini text file to environment variable.
Regarding your second point you should be able to use xml environment file. As there is no error coming i will not be able to give you answer unless you send me your vbs file.
you can try with .ini text file to environment variable.