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

Allow importing swagger files #519

Closed
dolohow opened this issue Jan 17, 2017 · 3 comments
Closed

Allow importing swagger files #519

dolohow opened this issue Jan 17, 2017 · 3 comments

Comments

@dolohow
Copy link

dolohow commented Jan 17, 2017

This would be a really nice feature.

@cgoldberg
Copy link
Member

no explanation and nothing to do here... closing.

@dolohow
Copy link
Author

dolohow commented Jan 25, 2017

Swagger is a framework for APIs. It has ability to export APIs endpoints with arguments that particular endpoint can accept. Locust could import this json/yaml file and automatically generate all endpoints to test. The user could further apply weight and other properties

Whole specification can be found here.

Example:

/pets:
  get:
    description: Returns all pets from the system that the user has access to
    produces:
    - application/json
    responses:
      '200':
        description: A list of pets.
        schema:
          type: array
          items:
            $ref: '#/definitions/pet

@DataGreed
Copy link

@dolohow there is a project that uses swagger files to generarate locust tasks. It can handle only GET-endpoints, but you're welcome to contribute - https://github.com/lieldulev/swagger-to-locustfile

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

3 participants