Git Product home page Git Product logo

swagger2locustio's Introduction

GitHub stats

Top Langs

swagger2locustio's People

Contributors

dimapoliuha avatar mx-crs avatar olehkrupko avatar pyup-bot avatar viktor-svirsky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

swagger2locustio's Issues

test #3

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

test ###2

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Add abbreviations for args params

--swagger-file SWAGGER_FILE
path to swagger file (default: None)
--results-path RESULTS_PATH
path to store locustfile.py (default: generated)
--loglevel {info,debug,warning,error}
logging level (default: info)
--strict-level {0,1,2}
add paths with required params without default values
to locust tests (default: 2)
--operations {get,post,put,patch,delete,head,options,trace} [{get,post,put,patch,delete,head,options,trace} ...]
operations to use in api testing (default: ['get'])
--paths-white PATHS_WHITE [PATHS_WHITE ...]
paths to use in api testing (default: [])
--paths-black PATHS_BLACK [PATHS_BLACK ...]
paths not to use in api testing (default: [])
--tags-white TAGS_WHITE [TAGS_WHITE ...]
tags to use in api testing (default: [])
--tags-black TAGS_BLACK [TAGS_BLACK ...]
tags to use in api testing (default: [])

test

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

deal with params without default values

Params without a default value, or examples

Descriptions
Almost all API specs have a lot of params without default values (required and not required).

Solution
It would be great to create the file with helper functions (or classes) that will help to generate those values (for example function, that returns random int) and attach that file to the generated locustio file.

Problems
There can also be params without param_type specified so we need to consider how we'll deal with those situations.

Alternatives
The straightforward solution is to generate an additional file that will contain all params without values so people need to add values themself.

Folders

With a bigger swagger files I need to divide locust files into the folders.

  1. Please create hierarchical folder structure for endpoints that have more than 2 members. Ex:
    /v1/alpha
    /v1/beta
    /v2
    => /v1 - locust, and root locust

  2. Add parameter to disable this feature, possible like --max-folder-depth=1 (how many levels of folders can be created)

  3. Add possibility to run locust inside folder.

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.