Skip to content

Using dynamic extractor with index in flow #4449

Pinned Answered by tovask
pascal-sun asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @pascal-sun,
I think here is a solution to your problem:

id: extracted_value

info:
  name: Extracted value does not work in flow
  author: pascal-sun
  severity: info

flow: |
  http(1);
  set("test2", template["test1"][0]);
  http(2);

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    extractors: 
      - type: regex
        name: test1
        group: 1
        regex:
          - 'This (domain) is for use in illustrative examples in documents.'
        internal: true

    matchers:
      - type: status
        status:
          - 200
 
  - method: GET
    path:
      - "https://example.org/{{test2}}"
    matchers:
      - type: status
        status:
          - 200

Seems t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ehsandeep
Comment options

Answer selected by ehsandeep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #4359 on December 01, 2023 09:50.