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

    Function k6IAuthenticateWithTheFollowingUrlAndRequestBodyAs

    • Authenticates with the API using credentials from a data table (JSON format).

      Parameters

      • context: string

        User context identifier

      • dataTable: any

        Authentication credentials data table

      Returns void

      When I k6 authenticate with the following url and request body as "user":
        | endpoint | username      | password    |
        | /login   | test_user     | pass123     |