Customer Service Center
Home
Knowledge Base
Forums
Contact Support
License Activation
|
Contact Support
|
License Activation
|
Spirent KB Article
Doc ID: FAQ12018
Printer Friendly
Email Article Link
How to access the Spirent TestCenter Detailed Stream Results when testing with TCL API?
Answer
1.
Subscribe the results at the beginning of the script
set hResultDataSet [stc::subscribe -Parent $hProject \
-configType StreamBlock \
-resultType RxStreamSummaryResults \
-filenameprefix RxStreamSummaryResults \
-viewAttributeList [list FrameCount FrameRate DroppedFrameCount MinLatency MaxLatency AvgLatency BitRate ]]
a.
resultType RxStreamSummaryResults which is same as Detailed stream results
b.
viewAttributeList – You can add all the available attributes to the list. Please Spirent TestCenter object reference for more attributes
2.
Access the results while the test is running or after the test completion
Example after Test
foreach hResults [stc::get $hResultDataSet -ResultHandleList] {
# Place the results into an array for easy access.
array set aResults [stc::get $hResults]
# Use the -Comp32 (32 bit filter used to identify the string identifier). Same number as String #Id. in Preview information.
puts "$hResults\tStream Id: $aResults(-Comp32)\tFrameCount $aResults(-FrameCount)\tMin: $aResults(-MinLatency)\tMax: $aResults(-MaxLatency)\tAvg: $aResults(-AvgLatency)"
}
Version
1.0
Publish Date
2012-06-19
Categories
Product : Spirent TestCenter,L2-3,API
Related Articles