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

First release #15

Open
2 of 7 tasks
R-Loic opened this issue Oct 6, 2022 · 0 comments
Open
2 of 7 tasks

First release #15

R-Loic opened this issue Oct 6, 2022 · 0 comments
Labels
engine Affect the engine module enhancement New feature or request server Affects the server module

Comments

@R-Loic
Copy link

R-Loic commented Oct 6, 2022

Below the features to implement to release the first version:

  • templateString
  • session package which link tasks with their associated volume
  • needs fields to link tasks
  • file reader to manage data (csv, json...)
  • CLI
  • Metrics & reports
  • Requests body in separate file

Yaml Target:

x-headers: &headers
    headers:
    - Content-Type: "application/json"
    - Accept: "*/*"

x-requests: &req


tasks:
  t1:
    data:
      users:
        csv: path
        options: random
      products:
        json: path
        options: circular
    requests:
      - name: req1
        method: "POST"
        protocol: https
        url: https://reqres.in/authent
        <<: *headers
        body: '{ "user": "batman", "password": "password", "tag":"${ swp.REQUEST_ID}"}'
        assertions:
          body:
            - jsonpath: $.token
              variable: token
          code:
            - 200

  t2:
    needs:
    - t1
    requests:
    - name: req1
      method: "POST"
      protocol: https
      url: https://reqres.in/api/users
      <<: *headers
      body: '{ "name": "${data.users.name}", "job": "${data.users.job}"}'
      assertions:
        headers:
        - Access-Control-Allow-Origin: ["*"]
        - Content-Type: [application/json; charset=utf-8]
        body:
        - jsonpath: $.id
          variable: id
        - regex: '(\d{4,})'
          variable: date
        code:
          - 201

    - name: req2
      method: GET
      url: https://${env.HOST}/api/users/${var.id}
      headers:
      - Authorization: "Bearer ${var.token}"
      - Accept: "*/*"
      assertions:
        body:
        - jsonpath: $.id
          variable: id

  t3:
    needs:
      - t1
    requests:
      - name: req3
        method: GET
        url: https://reqres.in/api/users
        assertions:
          code:
            - 200
    volume:
      - wait: 5
      - rps: 5
        during: 60s
@R-Loic R-Loic added enhancement New feature or request engine Affect the engine module server Affects the server module labels Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine Affect the engine module enhancement New feature or request server Affects the server module
Projects
None yet
Development

No branches or pull requests

1 participant