Платформа автоматизации — работа запрашивающей стороны

Это задание отправляет специально созданные запросы на целевой URL-адрес с настраиваемым методом и телом запроса. Пользователь также может указать код ожидаемого ответа, с которым сравнивается фактический ответ, и пользователь получает предупреждение, если он не совпадает. The user can add additional headers to the request e.g. Authorization Tokens, etc.

It is covered in the video: ZAP Chat 09 Automation Framework Part 3 - Requests.

YAML

  - type: requestor                    # Used to send specific requests to targets
    parameters:
      user:                            # String: An optional user to use for authenticated requests, must be defined in the env
    requests:                          # A list of requests to make
      - url:                           # String: A mandatory URL of the request to be made
        name:                          # String: Optional name for the request, for documentation only
        method:                        # String: A non-empty request method, default: GET
        httpVersion:                   # String: The HTTP version to send the request with, default: HTTP/1.1
        headers:                       # An optional list of additional headers to include in the request
            - "header1:value1"
        data:                          # String: Optional data to send in the request body, supports vars
        responseCode:                  # Int: An optional, expected response code against which the actual response code will be matched
    enabled:                           # Bool: If set to false the job will not be run, default: true
    alwaysRun:                         # Bool: If set and the job is enabled then it will run even if the plan exits early, default: false