Académique Documents
Professionnel Documents
Culture Documents
Introduction:
Library files:
Create the VB Script file that you need and save to your PC
Click on the “Check Syntax” button to verify that the script is a valid one
The VB script file has been associated with your test and functions it can
be used in all the actions present in the script. If you click on the “Set as
Default” button then all the library files specified in your current test
would be automatically added to the new tests that you create from now
on.
Variables, classes, functions etc… declared in the Library files are
Specifying Library File in Test Setting Loading Library File at Run-Time
For declaring Global Variable, For restricting functions of the library
Functions, classes etc… to specific Actions
For loading libraries depending upon
Add all global variables to a VB conditions at run-time. Ex-
Script file and specify it in
settings. If Condition1 then
ExecuteFile “C:\File1.vbs”
Else
ExecuteFile “C:\File2.vbs”
End If
accessible to all the Actions present with in the test. Specifying library
files using this method makes it impossible to restrict the use of the
Library to specific actions.
Instead of specifying the library file in test settings we can load it at run-
time by using the execute file function.
This would load all the variables, classes, structures etc… declared in the
Library but they would be accessible on in the action that has called the
ExecuteFile function i.e. if Action1 loads a library file using ExecuteFile
then everything present in the library file would only be accessible to
Action1 and not any other action.
To Load a library file present in Test Director the path can be specified as
“[Quality Center] Subject\PathInTD”