As part of verification in Robot Framework, I have following data (stored as ${response}
) as get request 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 compare it with predefined value. I tried to use it out of HttpLibrary.HTTP
as this will be deprecated for Robot Framework 3.1 so I would like to use Evaluate
.
Will it be possible within Robot Framework?