SaveAsXmlCommand Object


Description:

Saves the current configuration as an XML file. You can load this XML file using the LoadFromXmlCommand object or the Spirent TestCenter GUI. In the GUI, choose File / Open, and then set Files of type to Xml files (*.xml).

Can be used with Command Sequencer: No

Parents: Sequencer, StcSystem

SaveAsXmlCommand Writable Attributes

Attribute Description
Common Writable Attributes Active, Name, ProgressCancelled
Config

Handle of the portion of the configuration to save. The default of 1 means system1, which is the root object of the entire configuration.

Type: handle

Default: 1

ConfigList

Do not use this attribute.

Type: handle

Default: 0

FileName

Name of the file to save to.

Type: outputFilePath

Default: config.xml

SaveDefault

All objects and attributes are included in the XML file, unless set to false. If set to false, then only objects and attributes that are changed from their default settings will be included in the XML file.

Type: bool

Default: TRUE

Possible Values:

Value Description
TRUE

All objects and attributes are included in the XML file.

FALSE

Only objects and attributes that are changed from their default settings will be included in the XML file.

SaveAsXmlCommand Read-Only Attributes

Read-Only Attribute Description
Common Read-Only Attributes ElapsedTime, EndTime, ProgressCurrentStep, ProgressCurrentStepName, ProgressCurrentValue, ProgressDisplayCounter, ProgressMaxValue, ProgressStepsCount, StartTime, State, Status
SavedConfigString

Save default objects and attribue values to Tcl or Xml file.

Type: string

Default: 0