Forum Discussion

noreenb's avatar
noreenb
New Contributor
13 years ago

'Random' type splitter isn't working for multiple outputs

Hi,

I've tried using the 'Usage' VU generator connected to a splitter which is attached to 2 or more soap UI runners.

This seems to work fine for the 'Round-Robin' setting on the splitter, however I want to use the 'Random' setting on the splitter and use the probability settings to set my usage weightings. I tried with 3 outputs, and set the probabilities to be 50, 20 and 30, then I clicked 'Save'. The settings were not saved as I had specified - instead they were 50, 20 and 40.

I then tried setting the probabilities for each output to 20, 30 and 50 and saved it. This time they appeared as 20, 30 and 70.

It doesn't matter what I select, load UI appears to apply it's own probabilities - and altogether the probabilities never add up to 100. I have tried this for different numbers of outputs and different percentages and it has not worked correctly once for me.

Is there some other way I should be doing this? The weighting/probability functionality doesn't seem to me to be working at all, I am using version 2.1.1.

Thanks,
Noreen

3 Replies

  • Thanks for the report. We have reproduced this bug and are in the process of fixing it.

    Regards
    Henrik
  • Dear Noreen,

    The splitter component was designed to be used mostly through the knobs provided in the graphical interface.
    It escaped us that the Advanced Settings also allow the user to change the percentage values (this is a generic window which allow any component's properties to be edited). When you do that, the splitter component's algorithm does not work as expected, causing the issues you have experienced. We appologize for that, we will make sure to allow users to set percentages also in the Advanced Settings in the next release.

    In the mean time, could you please use the knobs to adjust the percentages you wish?

    For example, if you would like to split the output according to the rates:

    - 50%, 20%, 30%

    You can adjust the knobs, in this order:

    1. Set knob 1 to '50%'
    2. Set knob 2 to '20%' (knob 3 will be automatically set to '30%' so that the total goes to '100%')