| || |
How to make reusable lines of scripts...
I am using QTP9.2. I have created the script and converted it into Actions. Some of the lines in the script are reusable and I want to use these lines of script in different independent Test scripts.
What I did is I copied steps in the last of the script and splited into (Independent of each other)action, when I call this action its working fine in the new scripts, but when I run the original script it also executing the last lines of the scripts, I don't want to execute the lines in the last which is converted into Action.
Please suggest if there is any alternative..
Re: How to make reusable lines of scripts...
Create a function library(.qfl or .vbs) and associate it with the needed scripts. Aside from the driverscript everything I do is with subs or functions in a library rather than using actions.