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: Replace custom parameters using regex while creating the k6 script. #125

Open
AchimGrolimund opened this issue Aug 30, 2023 · 0 comments

Comments

@AchimGrolimund
Copy link

Hey all

i am currently working with "har-to-k6" and it is a great tool that has helped me a lot. However, I would like to suggest a feature that I think could be a useful addition for many users.

Feature Description:

It would be very helpful to be able to include a list of user-defined parameters in the converter, which are automatically replaced by a regex during the creation of the k6 script.

saml_request_1 = "samlreq"="(.*)"
bearer_1 = Bearer\s([a-zA-Z0-9_\-\.]+)

The idea is that as soon as a response comes from the website and has a match with the user defined parameter, this should be remembered. All other values that are the same in a response should be replaced by the variable saml_request_1. If there is another match, the same should happen, but with a different key --> saml_request_2, saml_request_3, ...

Best Regards Achim

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

No branches or pull requests

1 participant