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

    Function k6IHaveTheFollowingPostData

    • Stores POST data for subsequent requests.

      Supports {{VARIABLE_NAME}} placeholder replacement.

      Parameters

      • data: string

        Request body as a string (supports {{VARIABLE_NAME}} placeholders)

      Returns void

      Given I k6 have the following post data:
        """
        {
          "title": "{{POST_TITLE}}",
          "body": "Test content",
          "userId": 1
        }
        """