Printer FriendlyEmail Article Link

How can I modify where my Avalanche TCL test configuration XML files are stored?

Answer

By default the test configuration XML files are stored in the same directory where the test is run from as specified in the "Generate the test" section of the test.tcl file:

#
    # Generate the test
    #
    SPI_AV::dputs STATUS -nonewline "Generating Test"; flush stdout
    SPI_AV::ClusterController::GenerateClusteredTest configArray $testDirectory $testId
    SPI_AV::dputs STATUS " - done"

For various reasons, it may be desirable to have these files created in a different directory.  In order to do this you must modify the test.tcl file to point at the desired directory.  For example, should you want these files in the C:\tmp directory, you must first create that directory and then modify the above portion of the script as follows ( note that the second line was commented out  (#) and an additional line was inserted rather than modifying the original settings)

#
    # Generate the test
    #
    SPI_AV::dputs STATUS -nonewline "Generating Test"; flush stdout
    #SPI_AV::ClusterController::GenerateClusteredTest configArray $testDirectory $testId
    SPI_AV::ClusterController::GenerateClusteredTest configArray $testDirectory $testId "C:/tmp"
    SPI_AV::dputs STATUS " - done"

For complete details on the GenerateClusteredTest command, please go to the C:\Program Files\Spirent Communications\Spirent TestCenter [version]\Layer 4-7 Application\TclAPI\Documentation directory where your Avalanche Commander GUI was installed, open the L4_7_Scripting_API.pdf document and search for "GenerateClusteredTest".

 


Product : Avalanche,Automation