1.1.25 • Published 3 years ago

yaml-scene v1.1.25

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

YAML Scene

It's a platform to do everything with only yaml scenario files.
Because it's a platform, so you can easy to create extensions by yourself or use extensions which is shared by others.

Features

  1. Split a huge scenario file to many small files which make easy to run in a big project
  2. Flexible to use, easy to extends, customize for specific project
  3. Easy to install and reuse extensions via npm registry or create a extension by yourself
  4. Easy to customize or create new extensions and share them to everybody or reused in projects
  5. Support encrypt a scenario file and run the encrypted scenario file
  6. Provide docker image to run it without installation
  7. Support run a scenario file, load extensions from both local files and remote files (http(s)
  8. Auto generate a json schema for suggestion and validation

Installation

Install via npm or yarn

  npm install -g yaml-scene   # yarn global add yaml-scene

How to run

  1. Create a scenario file with the below content
# Make a http request to http://localhost:8000/index.html
- yas-http/Get:
    baseURL: http://localhost:8000
    url: /index.html
    var: responseContent

# Print response content to console
- Echo: ${responseContent}
  1. Run the scenario
  yas $YAML_SCENE_FILE $PASSWORD
  • $YAML_SCENE_FILE: Path to scenario file
  • $PASSWORD: Password to run encrypted scenario file which contains property "password" in scenario file content.

Docker image

docker pull doanthuanthanh88/yaml-scene:latest

Run via docker

  docker run --rm -it doanthuanthanh88/yaml-scene $YAML_SCENE_FILE $PASSWORD

Extensions

  1. yas-http: Manage http(s) request, mocking api server, create testcases, generate to document...
  2. yas-grpc: Manage gRPC request, mocking gRPC server, create testcases, generate to document...
  3. yas-sequence-diagram: Generate to sequence diagram, flow diagram base on comment in code
  4. yas-redis: A redis client

You can build a extension by yourself

Guideline document

Sharing

How to create a yaml scene file

Please follow wiki pages to create a scene file for your self.

Examples

Please go to here to see examples

Create a new extension

Please clone Extension template project which includes examples, commands to unit test, build, document...

Or you can write a simple extension js file

CLI

  1. Run a scenario my_scenario.yas.yaml
  1. Install new extensions
  yas add yas-http yas-grpc
  1. Upgrade extensions
  yas up yas-http yas-grpc
  1. Uninstall extensions
  yas rm yas-http yas-grpc
  1. Show version
  yas -v
  1. Show help content
  yas -h

More information

Goodluck and fun :)

1.1.25

3 years ago

1.1.24

3 years ago

1.1.23

3 years ago

1.1.22

3 years ago

1.1.22-alpha.1

3 years ago

1.1.21

3 years ago

2.0.0-alpha.1

3 years ago

1.1.21-alpha.3

3 years ago

1.1.21-alpha.2

3 years ago

1.1.21-alpha.1

3 years ago

1.1.20

3 years ago

1.1.20-alpha.4

3 years ago

1.1.20-alpha.3

3 years ago

1.1.20-alpha.2

3 years ago

1.1.20-alpha.1

3 years ago

1.1.19

3 years ago

1.1.19-alpha.3

3 years ago

1.1.19-alpha.2

3 years ago

1.1.19-alpha.1

3 years ago

1.1.18

3 years ago

1.1.17

3 years ago

1.1.17-alpha.1

3 years ago

1.1.16

3 years ago

1.1.16-alpha.3

3 years ago

1.1.16-alpha.2

3 years ago

1.1.16-alpha.1

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.13

3 years ago

1.1.12

3 years ago

1.1.12-alpha.2

3 years ago

1.1.12-alpha.1

3 years ago

1.1.11

3 years ago

1.1.11-alpha.1

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8-alpha.8

3 years ago

1.1.8-alpha.7

3 years ago

1.1.8-alpha.6

3 years ago

1.1.8-alpha.5

3 years ago

1.1.8-alpha.4

3 years ago

1.1.8-alpha.3

3 years ago

1.1.8-alpha.2

3 years ago

1.1.8-alpha.1

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.2-alpha

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.16-alpha.0

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0-rc.7

3 years ago

1.0.0-rc.6

3 years ago

1.0.0-rc.5

3 years ago

1.0.0-rc.4

3 years ago

1.0.0-rc.3

3 years ago

1.0.0-rc.2

3 years ago

1.0.0-rc.1

3 years ago

1.0.0-rc.0

3 years ago

1.0.0-beta.6

3 years ago

1.0.0-beta.5

3 years ago

1.0.0-beta.4

3 years ago

1.0.0-beta.3

3 years ago

1.0.0-beta.2

3 years ago

1.0.0-beta.1

3 years ago

1.0.0-beta.0

3 years ago

1.0.0

3 years ago

0.0.1

3 years ago