Printer FriendlyEmail Article Link

Spirent TestCenter: HLTAPI version t4.22- How do we load the previously saved configuration as xml?

Environment/Versions
  • Spirent TestCenter
  • Automation: From HLTAPI version 4.22
  • Command to Load the saved configuration as xml via script
Answer

We have to use "sth::load_xml" command.

Purpose:
Loads test configurations from a previously saved XML file, and returns
a Spirent TestCenter project handle.


Synopsis:
sth::load_xml
[-filename]
 

Argument:
-filename
Specifies the path of the XML file. This argument is mandatory.
 

Return Values:
The function returns a keyed list using the following keys
(with corresponding data):
 

handle Spirent TestCenter project handle
 

status Success (1) or failure (0) of the
operation
 

log An error message (if the operation
failed)


Product : Automation,API,Spirent TestCenter