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

    Function k6IStoreIn

    • Stores a response value to a file for persistence across scenarios.

      Extracts a value from the last response using JSON path notation and stores it both to a file and in memory with an alias.

      Parameters

      • jsonPath: string

        JSON path to extract from response (e.g., "accessToken", "data.token")

      • fileName: string

        File path to store the value (e.g., "data/user.json")

      Returns void

      And I k6 store "accessToken" in "data/user.json"
      And I k6 store "data.token" in "data/admin.json"