question

amyng avatar image
amyng asked amyng edited

Empty ResultHandleList in ResultDataSet upon ResultsSubscribeCommand

Spirent Test Setup.postman_collection.json.txtOur team just started automating using REST api calls to stcweb to initiate traffic from between 2 ports and trying to subscribe and get the results. The problem observed is that ResultHandleList is empty when querying ResultDataSet object.

PUT https://{url}/stcapi/perform/ResultsSubscribeCommand with request body

{ "configType" : "StreamBlock" , "resultType" : "RxStreamSummaryResults" , "filenameprefix" : "RxStreamResults" , "parent" : "project1" , "viewAttributeList" : "DroppedFrameCount FrameCount" , "resultParent" : "streamblock1" }


Response was 200 with response

{ "Active" : "true" , "DisablePaging" : "true" , "ElapsedTime" : "31" , "EndTime" : "1695094175.96611" , "FilterList" : "" , "Interval" : "1" , "Name" : "ResultsSubscribeCommand 3" , "OutputChildren" : "false" , "OutputFormat" : "csv" , "ProgressCancelled" : "false" , "ProgressCurrentStep" : "1" , "ProgressCurrentStepName" : "" , "ProgressCurrentValue" : "0" , "ProgressDisplayCounter" : "true" , "ProgressMaxValue" : "0" , "ProgressStepsCount" : "1" , "RecordsPerPage" : "100" , "ReturnedDataSet" : "resultdataset3" , "ReturnedResultDataSet" : "resultdataset3" , "StartTime" : "1695094175.93548" , "State" : "COMPLETED" , "Status" : "" , "ViewName" : "" , "configType" : "StreamBlock" , "filenameprefix" : "RxStreamResults" , "parent" : "project1" , "resultParent" : "streamblock1" , "resultType" : "RxStreamSummaryResults" , "viewAttributeList" : "DroppedFrameCount FrameCount" }


GET https://{url}/stcapi/objects/resultdataset3 (which was in ReturnedDataSet in previous response)

{ "Active" : "true" , "Description" : "" , "DisablePaging" : "true" , "Identifier" : "" , "InternalXmlFormatString" : "" , "Name" : "ResultDataSet 5" , "NotifyInterval" : "1000" , "PageNumber" : "1" , "Path" : "" , "PrimaryClass" : "" , "RecordsPerPage" : "100" , "ResultHandleList" : "" , "ResultState" : "SUBSCRIBED" , "ResultViewOwner" : "USER" , "TotalPageCount" : "0" , "children" : "resultquery1" , "parent" : "project1" }


According to the automation programmer's Reference

The stc::subscribe command returns a handle to a ResultDataSet object. The ResultDataSet object’s attribute, -ResultHandleList, contains a list of the available result object handles. These handles provide access to the statistics availablefor each result object

Are there additional setup steps that is needed for ResultDataSet? We can also the postman collection on how the configuration was setup and associating environment.

results and reportingresults set
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.