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

[FEAT] run many requests in parallel #110

Closed
faelin opened this issue Oct 9, 2024 · 2 comments
Closed

[FEAT] run many requests in parallel #110

faelin opened this issue Oct 9, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@faelin
Copy link

faelin commented Oct 9, 2024

Is your feature request related to a problem?

I am using the client to run a comprehensive regression-test suite against my API, which means there are over 1200 requests that are "Fired" per run (plus each request repeats several times due to timeout limitations). This makes the test run take a very long time.

Describe the solution you'd like

I would like to be able to select tests to run "asynchronously", or some other way to mark that certain requests should be able to run in parallel.

Additional context

No response

@faelin faelin added the enhancement New feature or request label Oct 9, 2024
@AntonShuvaev
Copy link
Collaborator

This is already supported. Some jc methods have async versions you can use to run requests in parallel:

  • testCasetestCaseAsync
  • sendRequestsendRequestAsync
  • runRequestrunRequestAsync
  • runFolderrunFolderAsync
  • runTestSuiterunTestSuiteAsync

You can find an example of parallel requests in the demo project: JetClient-Demo. See this file for a specific example where all "Delete vet" requests run in parallel: _TS_Delete vets.md.

@faelin
Copy link
Author

faelin commented Oct 9, 2024

Oh, excellent! Sorry that I missed that 😓

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

No branches or pull requests

2 participants