08-27-2009, 03:08 AM
Hello,
I have a basic question about QTP scripting.
My question is what is the ideal order in which to build your script?
It seems to me that you could record your script and then break it down into actions, while copying the VBScript found in the Expert view, and then associate the object repositories. On the other hand you could build a skeleton composed of your actions and then your associated object repositories and then record the code for each or the actions (or do the recording first and then the object repository associations).
So, which is the ideal? Which is the most common? And what are the pitfalls or advantages of each method?
Your comments are much appreciated.
From the documentation it seems that the traditional way is that you add the Actions, then add the object repositories, associate the object repositiories, and then add your steps. After all this you do and then you add your enhancements of checkpoints, parameterization, and functions, etc. Is this the way to do it most of the time? Is this the best way?
Thank you,
Brian
I have a basic question about QTP scripting.
My question is what is the ideal order in which to build your script?
It seems to me that you could record your script and then break it down into actions, while copying the VBScript found in the Expert view, and then associate the object repositories. On the other hand you could build a skeleton composed of your actions and then your associated object repositories and then record the code for each or the actions (or do the recording first and then the object repository associations).
So, which is the ideal? Which is the most common? And what are the pitfalls or advantages of each method?
Your comments are much appreciated.
From the documentation it seems that the traditional way is that you add the Actions, then add the object repositories, associate the object repositiories, and then add your steps. After all this you do and then you add your enhancements of checkpoints, parameterization, and functions, etc. Is this the way to do it most of the time? Is this the best way?
Thank you,
Brian