* def updategetPhonePref = !getPhonePref
* def mpRequestJson =
"""
{
"entity": '<entity>',
"consent": {
"PHONE": updategetPhonePref
},
"notices": [{
"title": "policy",
"version": "NA"
}],
"source": "existing web"
}
"""
Given path '<entity>'
And request mpRequestJson
When method PUT
Then status 200
Examples:
|entity |
|abc |
我具有以上请求JSON,updategetPhonePref的值为布尔值。如何将其作为参数传递给请求JSON参数“ PHONE”?