关键字:Set Variable Get Json Value to json Get From Dictionary 具体关键字用法不再说明,可百度一下;
例:下面是某一个请求页面Response返回的数据,如下:
{"id":"1496654252","code":0,"msg":"ok","data":{"tag_list":[{"game_id":28,"enabledFlag":true,"game_name":"王者荣耀"},{"game_id":29,"enabledFlag":true,"game_name":"镇魔曲"}]}}
在RobotFramework中输入以下代码,可获取第一个“game_name”的值;