Printer FriendlyEmail Article Link

How do I export results with more than 100 records to a CSV with the Export Result command using command sequencer?

Answer

 

How do I export results with more than 100 records to a CSV with the Export Result command using command sequencer?
 
With the Export Result command you are only able to export results with 100 records this is the limitation
 
However, there is a workaround using “Global Services: Run Custom”  Command  with the following settings  (This FAQ explains how to export results with 500 records)
 
1.      Change the “maxRecordsPerPage“  value in the stcbll.ini from 256 (default) to 500
Stcbll.ini located in the installation directory (C:\Program Files\Spirent Communications\Spirent TestCenter 3.xx\Spirent TestCenter Application\Templates)
Warning: Changing the value is not recommended since; this may add delays and may impact the real-time results.
 
2.      In the script make sure you set the recordsperpage to 500
 
 
Create a tcl script and subscribe the results that you want to export into CSV as shown in the example ExportCSV.tcl file below
 
 
package require SpirentTestCenter
 
    # Subscribe to results for result query test-0003-rxstreamsummaryresults
    stc::subscribe -parent [lindex [stc::get system1 -children-Project] 0] \
        -resultParent " [lindex [stc::get system1 -children-Project] 0] " \
        -configType streamblock \
        -resultType rxstreamsummaryresults \
        -recordsperpage 500 \
        -filterList "[lindex [stc::get system1.Project(1) -children-RxPortResultFilter] 0] " \
        -viewAttributeList "framecount sigframecount minlatency maxlatency droppedframecount" \
        -interval 1 -filenamePrefix "Rrxstreamsummaryresults"
 
return 1
  
Call the ExportCSV.tcl file using the “CustomCommand”
  
Rxstreamsummaryresults.CSV file will be created based on your request.
Usually Results will be saved in to the following directory unless user changed the path in the parameter or in the Spirent Application (Tools -> Option)
 
C:\Documents and Settings\<user name\My Documents\Spirent\TestCenter 3.xx
 
Please see the attached samples for more details.
Attachments
Attachment

Attachment


Product : L2-3,Spirent TestCenter