Text DelimitedRegular Expression, JPath, and XPath extractors can have dynamic properties containing not only constant values but also variables. A dynamic property value consists of a combination of constant strings and variables.

The following property can be dynamic:

  • text before and text after, in the text delimited extractors
  • the regular expression in the regular expression extractors
  • JPath query in the Json Jpath Query extractor
  • XPath query in the XML Xpath Query extractor


To insert a variable in a dynamic property, use the variable notation described here. The following variable types are supported:

  • Extractors
  • Datasets
  • Data Generators
  • Functions
  • Scriptable variables

Create dynamic extractor

To create a dynamic extractor, the first step is to set the Is the extractor dynamic? property to Yes.

Then, when setting the extractor definition, you may use variables.

Example:

Imagine the following response:

<input .... name="John" id="11111" />

<input .... name="Laura" id="22222" />

<input .... name="Anita" id="33333" />

You need to extract the id of Laura (22222) because that was the value picked from the dataset. Create the following extractor

Text before: name="{{Contact.FName$Dataset}}" id="

Text after: "

If the value from the dataset on the next iteration would be John, then this extractor would return 11111.



6.2.5
6.2.5
6.2.5
6.2.5
6.2.5
6.2.5
  • No labels