Git Product home page Git Product logo

simulator's Introduction

plot

The official application for simulating scenarios

All Contributors

  • Command line library and desktop application for generating asynchronous traffic.

  • Visualize your asyncApi files and test your asynchronous networks.

Image Alt Text


๐Ÿ“ข ATTENTION:

This package is under development and it has not reached version 1.0.0 yet, which means its API might get breaking changes without prior notice. Once it reaches its first stable version, we'll follow semantic versioning.


Define and simulate scenarios for your applications

Usage

Throught desktop application (underDevelopment):

npm run desktop

Throught command line:

simulator -f ./my_api.yaml -s ./scenario.yaml
simulator -f ../subdirectory/my_api.json -s ./scenario.json

Run sample application by specifying the corresponding AsyncApi and scenario files.

simulator -f ./example-projects/game-processor/asyncapi.yaml -s ./example-projects/game-processor/scenario.yaml
or
simulator -b ../ -f ./simulatorFolder/example-projects/game-processor/asyncapi.yaml -s ./simulatorFolder/example-projects/game-processor/scenario.yaml

Cli

Options:
  -v                     AsyncApi simulator cli version.
  -f, --filepath <type>  The filepath of a AsyncAPI document, as either yaml or json file.
  -s, --scenario <type>  The filepath of a json or yaml file which defines a scenario based on the spec.
  -b, --basedir <type>   The basePath from which relative paths are computed.
                         Defaults to the directory where simulator.sh resides. (default: "./").
  -h, --help             Display help for flags and commands.

Supported Protocols

  • mqtt

AsyncApi File

The file where the api you want to test is defined. By specifying the x-plot: {id} field under a channel will automatically make the channel available for sending requests.

Scenario File

Here with the plot-{id} (where id is the same as the x-plot: {id} in the field you specified in the AsyncAPI channel) field you:

  • Connect your AsyncApi and scenario File.
  • Specify the parameters for each channel and have the options for them to be randomly generated.
  • Specify the payload you want to send.

Contributing

Read CONTRIBUTING guide.

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


NektariosFifes

๐Ÿ’ป ๐Ÿ“– ๐Ÿค” ๐Ÿšง โš ๏ธ

Jonas Lagoni

๐Ÿ“– ๐Ÿ‘€ ๐Ÿง‘โ€๐Ÿซ ๐Ÿ’ก

This project follows the all-contributors specification. Contributions of any kind welcome!

simulator's People

Contributors

asyncapi-bot avatar nektariosfifes avatar jonaslagoni avatar derberg avatar sumantxd avatar codingtenshi avatar

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.