Specifications

The information setup through the Fixture pane defines a simulated run-time environment for
script testing purposes, including:
The values of the properties for the flow element to which the script is considered to be
attached.
The number of incoming and outgoing connections and the relevant property values for each.
A list of input jobs (files or job folders), and the corresponding job ticket and metadata
information for each.
The target location for any output files of the test.
The fixture information is stored in a fixture package alongside the script package (with the same
filename but a different extension). The fixture is not part of the definition of a script and may
be removed after the script has been tested.
Basic fixture settings
The following table describes the properties displayed in the Properties pane when you select
the main item in the Fixture pane (that is, "My Script" in the example above).
The values of these settings (except for the test folder path) can be accessed in the script at
run-time through functions of the Switch class in the Switch scripting API.
DescriptionProperty
The absolute path of the folder in which to place files or folders
provided to or generated by the script during testing
Test folder
The set of global data presented to the script for all scopesGlobal data
The name of the flow to which the script is considered to be
attached
Flow name
The name of the flow element to which the script is considered
to be attached
Element name
Additional flow element properties as specified in the Declaration
pane
Injected flow element
properties
Incoming jobs
The "incoming jobs" section of the fixture defines the jobs that are presented to the script as
inputs during testing, including job ticket and metadata info, and the connection on which each
job is to be presented.
Use the small tool buttons at the top of the Fixture pane to add, remove and reorder job
definitions. In the example above, there are two job definitions ("creaX-cmyk....pdf" and
"creaX-spot....pdf").
The following table describes the properties displayed in the Properties pane when you select
one of the job definitions in the Fixture pane.
The values of these settings (except for the test file or folder path) can be accessed in the script
at run-time through functions of the Job class in the Switch scripting API.
337
Enfocus Switch 10