Customer Service Center
Home
Knowledge Base
Contact Support
License Activation
|
Contact Support
|
License Activation
|
Spirent KB Article
Doc ID: FAQ19575
Printer Friendly
Email 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
Attachment
Native - queryresult.py
Attachment
HLTAPI_queryresults.py
Version
2.0
Publish Date
2021-04-15
Categories
Product : Automation,Spirent TestCenter
Related Articles