Need help with StresStimulus? Start here.
How to capture multiple Values by 1 extractor?
TanvirAhmed Posts: 4
9/1/2020
|
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 Administrator Posts: 510
9/1/2020
|
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 © 2023 Stimulus Technology