Printer FriendlyEmail Article Link

Spirent TestCenter - Automation: How to query and parse the results from an RFC2544 test.

Environment/Versions
The example attached was created using STC 5.19 and 2 ports connected back to back
Answer
You need the "QueryResult" command to get the results from the DB
In the example attached, regex is used to parse the results.
Also, and optionally, the example include an example to get the results into a Pandas dataframe in case that it its usefult to you, otherwise, just focus on the “columns” and “results” variables and delete the import and pandas related lines.

In the case of using HLTAPI, you can use the command "test_rfc2544_info", however, if you need more information you can use the invoke command to use NativeAPI commands.
Note: if you are using TCL, you can call the stc library (package require stc) and use the NativeAPI directly.
Attached is an example of the "QueryResult" command used in an HLTAPI script.
Attachments


Product : Automation,Spirent TestCenter