DEV Community

idealistic
idealistic

Posted on

Hi guys! Karate DSL - How to read token string from __arg and send this string in json request?

https://stackoverflow.com/q/59489470/12601444

How to read token string from __arg and send this string in json request using Karate DSL?

Store string token value from first response to __arg

and this works well:

    Then match response.result.token == '#string'

    * def tokenPathInstance =
    """
    function() { karate.write(response.result.token, '__arg'); }
    """
    * def tokenPath =

Top comments (0)