【发布时间】:2020-06-07 21:50:26
【问题描述】:
作为 Robot Framework 中验证的一部分,我有以下数据(存储为 ${response})作为获取请求响应:
{
"interfaces": [
{
"name": "eth0",
"status": "ready",
"macAddress": "xx:xx:xx:xx:xx:xx",
"ipv4": {
"mode": "DHCP",
"address": "127.0.0.1",
"mask": "255.255.255.0",
},
"ipv6": {
"mode": "DISABLED",
"addresses": [],
"gateway": "",
}
}
],
"result": 0
}
And I would like to get value of key ipv4 and store in variable
3 library is requestlibrary collection httplibrary.http
is there anykeyword to save this value ? please help me
【问题讨论】:
-
你能告诉我们你到目前为止所做的尝试吗?
-
嘿,请看How to Ask a good Question - Guide。并考虑不删除已批准的编辑。请提供更多详细信息:您尝试了什么,您在哪里失败...
标签: python api automation robotframework robotframework-ide