Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: support regex extractions also for Store / Header #16

Closed
m-31 opened this issue Oct 15, 2021 · 3 comments · Fixed by #19
Closed

Feature Request: support regex extractions also for Store / Header #16

m-31 opened this issue Oct 15, 2021 · 3 comments · Fixed by #19
Assignees
Milestone

Comments

@m-31
Copy link
Contributor

m-31 commented Oct 15, 2021

We test the PKCE oauth flow with XLT and we have to extract parameters from the 'location' header of a response.

Currently we use the workaround: store response header value for 'location' into variable, when using the variable transform the value via beanshell call to custom extraction method.

It would be more elegant to directly extract the needed value into the variable when receiving the header response.
Perhaps something like this:

    - Action :
        ...
        Response :
            Store :
                - code :
                    Header : location
                    Regex : "code=([a-z0-9A-Z]*)"
                    Group : 1

      
@jowerner jowerner self-assigned this Sep 28, 2022
@jowerner jowerner added this to the 3.2.0 milestone Sep 28, 2022
jowerner pushed a commit that referenced this issue Nov 23, 2022
- added regex support to Header and Cookie extractors
- added corresponding unit tests
- adjusted the cheat sheet with examples
- updated dependencies
- prepared beta release
@NilsHasenbanck4758
Copy link

@jowerner We tested the beta release and it worked as expected. We successfully used the new regex extraction feature for header and cookies.

@jowerner
Copy link
Contributor

@NilsHasenbanck4758 Cool, thanks for your feedback! Then we are all set to prepare the final release.

jowerner added a commit that referenced this issue Jan 19, 2023
…er (#19)

- added regex support to Header and Cookie extractors
- added corresponding unit tests
- adjusted the cheat sheet with examples
- updated dependencies
- prepared beta release

Co-authored-by: Joerg Werner <j.werner@xceptance.de>
@jowerner
Copy link
Contributor

@NilsHasenbanck4758 xlt-nocoding 3.2.0 is available now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants