question

VL avatar image
VL asked VL answered

Python REST API: How to unsubcribe of results (ResultsSubscribeCommand)

I'm creating a CSV using the following command.

stc.perform('ResultsSubscribe', {.......})

When I stop the generator, the results are still added every second to the csv.

To stop doing that, I'm looking for the Rest API equivalent to:

stc.unsubscribe()
Spirent TestCenter (STC)traffic generationresults and reportingpython
10 |950

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

1 Answer

·
VL avatar image
VL answered
my_dictionary = stc.perform('ResultsSubscribe',{.......})
my_handle = my_dictionary['ReturnedDataSet']
stc.perform('ResultDataSetUnsubscribe', {ResultDataSet: my_handle})
10 |950

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

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.