Is there a way to call a Unit/Script from other script? I know that you can add the unit and call the function inside the unit. what about calling the Unit. In keyword you can call other keyword scripts. Under the scripts I am not sure.
I too am not sure about running a whole unit of scripts.
I know you could call them all in a row within another scipt, but then it would just look a little weird.
I usually set my test items under the project suite. So that way I can link them in the order I want them run. So if I wanted to run all routines from one unit, I could put them as a subgroup first, then create another folder for the second group to run.
Make sure both folders are checked and then run the entire suite. It would run all tests within the first folder, then go to next.
Otherwise, no real way to call an entire unit that I know of.
you can make a unit and create a Main sub so when you call the unit it will execute the Main.
[/ QUOTE ]
In this case, you can just call a needed function - it's an easier way. However, if there are several functions with the same name in different units, you can specify the unit name directly where the function is declared. You can do this in the following way:
<font class="small">Code:</font><hr /><pre>
Log.Message("This is Unit1")
Also, you can use the Runner.CallMethod method in such a situation. Please refer to the "Runner.CallMethod" help topic for more information. There's no need to add the USEUNIT statement in each unit when using the method.