| || |
Project level varialbe
I have a project suite called ‘Main Test’ and under that I have projects ‘User Test’, ‘Shares’, ‘Sys Test’ and so on. I have a user form in shares and I’m setting a lot of variables there, if a variable in a script in the ‘Sys Test’ project is blank I then want to run a script in the ‘Shares’ project and pass the variable(s) back. In the past I have not tried to link project together, (one suite for one project). Is there an easy way or should I cram all the scripts into one project. Also are the NameMapping, TestedApps and others auto shared. This is a web portal test and I’m trying to divide the scripts up logically pertaining to the different functions of the portal and user account used for testing.
In short how do you run scripts from a different project and how do you pass variables to different projects?
Re: Project level varialbe
There's no way to access items of a project from another project. If you want to use an item (such as a script unit or a Name Mapping scheme) in two projects, you need to add this item to both. To learn how to run scripts from another project, see the "Calling Routines Declared in Another Project" help topic.
As for variables, you can create them on the project suite level (see the "Project and Project Suite Variables" help topic) to make them visible to all projects in the suite.