Appendix

YAML anchors and references

You can also define a new request/scenario from an existing one, if you want a request/scenario that is only partially different. For this, you can assign a name to the existing request/scenario using anchor (e.g. &name) and then embed it in the new request/scenario using reference (e.g. *name).

With the help of command line tool, you can expand the anchors and references in YAML and confirm the YAML in local environment. The command line tool can be downloaded from here. Refer rocro expand --help to see the usage.

scenarios:
  scenario1: &base
    num-users: 100
    period:    100
    requests:
      - request1
      - request2
  scenario2:
    <<: *base
    num-users: 200

results matching ""

    No results matching ""