HomeSUPPORT QUESTIONS

Need help with StresStimulus? Start here.

How to Pick A Random Value from Extractor Messages in this topic - RSS

Unregistered User
Unregistered User
Posts: 509


11/23/2021
Unregistered User
Unregistered User
Posts: 509
I am using stress stimulas for recording the script for D365 application , I am using extractor to automate the value .
I have a query if I have 10 values in output how can we pick the random value out of 10 value
For example when we have 10 data in the response with same boundaries and we want to pick a random value for each iteration

If below is the response and we want to pick different random value in each iteration what code should we write for that
Userid=xyzsds’,
Userid=xyzsds’,
Userid=xyzsds’,
Userid=xyzsds’,
Userid=xyzsds’,
Userid=xyzsds’,
Userid=xyzsds’,
Userid=xyzsds’,
Userid=xyzsds’,


Thanks,
0 link
George @StresStimulus
George @StresStimulus
Administrator
Posts: 554


11/23/2022
George @StresStimulus
George @StresStimulus
Administrator
Posts: 554
You will need a random extractor that is described https://support.stresstimulus.com/display/doc54/Emulating+Clicks+on+Random+Links
For your situation, create a text delimited extractor with the following properties:
  • Text before: Userid=
  • Text after: ‘
  • Occurrence type: Random
  • Min occurrence: 1
  • Max occurrence: 10



0 link






Copyright © 2024 Stimulus Technology