question

noahjohnson0 avatar image
noahjohnson0 asked stebhla answered

RFC 2544 Not Saving Results When Using Python API

Hi All, I am attempting to run RFC 2544 testing using the Python API. I first created a .tcc configuration file using the STC GUI 2544 Wizard. This runs perfectly when executed using the GUI, and results are saved in the .db format. However, when this same .tcc configuration file is loaded using a Python script, the results do not save. I know that my script is starting the command sequencer, but no result files show up in the directory where the script is executed, or anywhere else for that matter. Has anyone encountered issues with incongruent behavior between GUI and script such as this? **Code:** ''' Created on Aug 6, 2014 @author: njohnson ''' import sys import time ENABLE_CAPTURE = True from StcPython import StcPython stc = StcPython() stc.log("INFO", "Starting Test") # Retrieve and display the current API version. print "SpirentTestCenter system version:\t", stc.get("system1", "version") #Session dies when last client disconnects stc.perform("terminatebll", TerminateType="ON_LAST_DISCONNECT") #Load 2544_Setup.tcc stc.perform("LoadFromDatabase", DatabaseConnectionString = "conf/2544_Setup.tcc") print "Loading test configuration..." stc.apply() #Grab the port handles lstPorts = stc.get("Project1","children-port") print "Connecting to Spirent chassis..." # Connect to chassis and attach the ports stc.perform("attachPorts", portList=lstPorts, autoConnect= "TRUE") #resultReturn = stc.perform stc.apply() # Arp on the devices print "Starting ARP on all devices..." stc.perform("ArpNdStartOnAllDevicesCommand", PortList = lstPorts) print "Starting the sequencer, this takes a while to complete a run ", stc.perform("SequencerStart") stc.waitUntilComplete() print "Run Completed" STC .tcc: https://www.dropbox.com/s/2d7mbmuesdp2e73/2544_Setup.tcc **I appreciate any feedback!**
apiresults and reportingpythonrfc 2544
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
stebhla avatar image
stebhla answered
Hi, I loaded the .tcc file in python script and the results are save under Results directory from where the script is getting executed.
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.