【发布时间】:2018-12-29 19:28:21
【问题描述】:
每次运行代码时,我都需要从下面的示例 json 中选择任何随机值。我怎样才能在空手道中做到这一点?我需要获取任何随机值并在另一个功能文件中使用。
def myJson =
"""
{
"sampleJson": {
"random1": "1",
"random2": "2",
"random3": "3",
"random4": "4",
"random5": "5"
}
}
"""
【问题讨论】:
-
到目前为止你尝试过什么? Minimal, Complete, and Verifiable example
标签: karate