RF-获取body

一个很简单的场景:GET方法获取某URL的body信息,直接读取即可,不做处理

*** Test Cases ***
GetToken
Create HTTP Context host=192.168.0.1:8080 scheme=http
GET /cookies.txt
${token} Get Response Body
log ${token}
Set Global Variable ${token} ${token}

如上,读取http://192.168.0.1:8080/cookies.txt文件内容,保存为token,并设为全局变量

猜你喜欢

转载自www.cnblogs.com/music378/p/11734495.html
RF