italktothewind
italktothewind

Reputation: 2185

Variables as map keys during response assertion with match

Given the following Karate code:

Given path 'path'
When method get
And def var1 = "name"
Then match response ==
"""
{ #(var1): "val1"}
"""

The #(var1) is not being resolved to "name" in the match

Any advice?

Upvotes: 1

Views: 34

Answers (0)

Related Questions