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

Support for per-request tags #140

Open
jdem4ine opened this issue Dec 11, 2023 · 1 comment
Open

Support for per-request tags #140

jdem4ine opened this issue Dec 11, 2023 · 1 comment

Comments

@jdem4ine
Copy link

Hello, I'm using har-to-k6 to test a flow in my company's app. In this flow there are multiple requests to a graphql endpoint where the endpoint url is always the same and what differs is the postData. Prior to using har-to-k6 I had the ability to add request tags which I used to add the gql operation, which would then propogate through to the json output of the k6 run.

Since the k6 script is now generated instead of hand written, I can't add these tags anymore.

I did try and add the tags onto the request body, but it seems like these params are only supported by k6/http. Is there a workaround to be able to set tags, or would that be a feature request?

@jdem4ine
Copy link
Author

I did manage to work around this in the end by adding each operation as a "page" to the har file. Then set the pageref on each entry as that operation. It then comes out in the tags on the json output for the k6 run.
Would be nice to see some support for request tagging though!

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