-
Notifications
You must be signed in to change notification settings - Fork 23
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
Runner-like function to run load tests in VS Code extension? #229
Comments
I don't currently have such behavior integrated in vscode, however it would be possible. If you use httpyac directly, you can currently already execute all files of a folder and output the result as JSON. Since everything uses the same API, this would also work in vscode. httpyac **/*.http --all --json I also support In summary, it could work out, but would be a bit of work to get it cool in GUI. |
@victor-marino The behavior is relatively simple to implement.
|
Thanks a lot for your response @AnWeber, and the orientation on how to implement this. I don't yet have any experience with TypeScript or VS Code extensions whatsoever, so it may take me some time to wrap my head around the code and its general architecture, even if the added functionality is trivial to implement 😅 But I will start looking into it whenever I get some spare time, as I'd love to contribute to this project (and of course learn something new along the way!). I may ping you with a question or two in the future if that's OK 😉 By the way, if I may ask: judging by the open-source nature and MIT license of the project, I take it you have no plans of monetizing the extension in the future? I only ask because I've realized pretty much every API client that has a GUI has moved or will move to a subscription model in the future, so I'm just wondering if the same will happen to this kind of projects that are in-between a GUI and a CLI app, sort of. |
0% expectations, 10% chance of success, 1000% improvement potential. Sounds like my cup of tea 😎
Wow, that's awesome! Thanks a lot. I'll try to look into this when my workload goes down a bit and I get some spare time, but no promises! You know, 0% expectations 😬 And thanks in general for being open and supportive towards my proposal. I see the "not interested" attitude in too many open source projects nowadays! |
First of all, apologies if this is already possible currently. I'm loving the extension so far, and I've been reading the docs today and trying out all the options I could see. But I couldn't find a way to do this.
Is there any way to:
I know I can just run all the requests in a given file from start to finish. But I can't do multiple iterations. And even if I could, there doesn't seem to be a clear way to see how many of those requests returned a 200 OK vs a timeout, or a 404 or a 429, short of analising responses one by one.
Ideally, when running a load test I'd like to specify:
It'd be great if we could see the result presented nicely in a dedicated panel on the right.
Here's the report table I had developed for an Insomnia plugin I was contributing to... right before they pushed me out with their new business model:
This would be really useful to me, as this kind of features are harder to find in other GUI-based tools, or are partially locked behind a subscription like Thunder Client does.
Is there any way to do something like this currently? If not, do you think this could be added?
The text was updated successfully, but these errors were encountered: