Printer FriendlyEmail Article Link

Spirent TestCenter-Automation: How to use Dynamic Result View to display only non-zero value for Frame Loss (Frames) ?

Environment/Versions
  • Spirent TestCenter
  • Dynamic Result View (DRV)
Answer
  • Use the below filter condition in Presentation Result Query object of DRV,


-WhereConditions {{StreamBlock.Frameloss > 0 OR StreamBlock.Frameloss < 0

Example:

set DynamicResultView [stc::create "DynamicResultView" \
        -under project1 \
        -ResultSourceClass \
        -Name ]

set PresentationResultQuery [stc::create "PresentationResultQuery" \
        -under $DynamicResultView \
        -SelectProperties {StreamBlock.Name StreamBlock.Frameloss} \
        -WhereConditions {{StreamBlock.Frameloss > 0 OR StreamBlock.Frameloss < 0}} \
        -GroupByProperties {} \
        -SortBy {} \
        -DisableAutoGrouping "TRUE" ]

  • For complete code on creating DRV please refer FAQ15035

Product : Automation,API,Spirent TestCenter