1.常用关键字介绍:
a. 打印:log 用法:log 打印内容
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
b.定义变量:Set Variable 用法:${name} Set Variable hello world
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
c.创建字典:Create Dictionary 用法:${dict} Create Dictionary a=1 b=2 或 ${dict} Create Dictionary a 1 b 2
例子:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
d.post请求发送:requests.Post 用法:${resp}= requests.Post ${test_url} ${postdata}
打印返回内容:log ${resp.text}
例子:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------