k6-cucumber-steps API Reference - v2.0.10-alpha.0
    Preparing search index...

    Function k6IMakeAPostRequestToWithBody

    • Makes a POST request with the provided body data.

      Parameters

      • endpoint: string

        API endpoint

      • bodyData: any

        Request body data table or string

      Returns void

      When I k6 make a POST request to "/posts" with body:
        | title | body              | userId |
        | Test  | Test body content | 1      |