1、post rf接口脚本
*** Settings ***
Library Collections
Library RequestsLibrary
*** Test Cases ***
test1
${headers} create dictionary Content-Type=application/json
create Session api http://frpmxgpre.suning.com ${headers}
${app} set variable "22c650ee0e474815b0cb3098e6c033be"
${data} set variable {"appId": ${app},"checkPerson": {"groupId": "b8c2415f5aed4ec8811757637c461c9e","fileDataOne": "/9j/4AAQSkZ=="
case 2
人脸1 大中华区总司令
*** Keywords ***
人脸识别 1:1
[Arguments] ${appId} ${groupId} ${shou} ${tupian}
${headers} create dictionary Content-Type=application/json
create Session api ${url}
${data} set variable {"appId":${appId},"checkPerson": {"groupId": ${groupId},"fileDataOne": ${tupian}}}
${res} post request api ${lujing} data=${data} headers=${headers}
log ${res.content}
log to console ${res.content}
should contain ${res.content}.encode("utf-8") ${shou}
delete all Sessions
人脸1
[Arguments] ${appId}
log to console ${appId}
测试工作软件包下载,要不知道下载哪个就都下载下
软件包:https://pan.baidu.com/s/1NxB2HaGRrRs9ERVu9w3SvQ
提取码:nn5j