HomeSUPPORT QUESTIONS

Need help with StresStimulus? Start here.

How to capture multiple Values by 1 extractor? Messages in this topic - RSS

TanvirAhmed
TanvirAhmed
Posts: 4


9/1/2020
TanvirAhmed
TanvirAhmed
Posts: 4
My response has 4 rows of data, Each rows has 5 columns. All values in column has same left and right boundaries.


Refer below example: Assume each digit to be unique values.

a b c d e
f g h i j
k l m n o
p q r s t

I want to use regex to capture all values in all columns using regex and also get the number of matches based on extractor.

e.g :
If below is my response and "" are the boundaries of values.
"a",''b","c","d","e"

I want to apply below regex extractor:
"(.*?)","(.*?)","(.*?)","(.*?)","(.*?)"

Also, I want the regex to apply to all rows in my response.So that all the values get picked up simultaneously using only 1 regex extractor.
0 link
George @StresStimulus
George @StresStimulus
Administrator
Posts: 554


9/1/2020
George @StresStimulus
George @StresStimulus
Administrator
Posts: 554
It seems that you are requesting support for an extractor returning an array of values.

Please refer to this post discussing why extractors are currently returning a single value, because the broad need for extractors returning arrays is unobvious at this time.


To implement your custom requirements to extract value from a response using custom rules, you can create a scriptable variable described here. It will enable you to write custom code to comply with your specific requirements.


-Cheers
0 link






Copyright © 2024 Stimulus Technology