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

fix: parse payload returned by k6 #185

Merged
merged 1 commit into from
Sep 20, 2024
Merged

Conversation

e-fisher
Copy link
Collaborator

Fixes parsing issue when inspecting request payload in validator.

Steps to reproduce:

  1. Create a generator from har file: test.k6.io login.har.zip
  2. Validate script
  3. Inspect POST request to login.php -> Payload
  4. Payload is not displayed, parsing error in console.

When we parse a har file, we read x-www-form-urlencoded requests into JSON string, but k6 executable returns it as query string (key=value pairs). Added condition and function to parse query string.

Copy link
Member

@Llandy3d Llandy3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 🚀

@e-fisher e-fisher merged commit a8a709a into main Sep 20, 2024
1 check passed
@e-fisher e-fisher deleted the fix/preview-payload-in-validator branch September 20, 2024 13:06
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 this pull request may close these issues.

2 participants