Robot Framework是一款python编写的功能自动化测试框架。具备良好的可扩展性,支持关键字驱动,可以同时测试多种类型的客户端或者接口,可以进行分布式测试执行。主要用于轮次很多的验收测试和验收测试驱动开发(ATDD)。
RIDE是一款专门用来编辑Robot Framework用例的软件,用Python编写并且开源。
1、RIDE中如何查询关键字
2、最简单的用法:hello world
3、如何定义变量
4、如何拼接字符串
5、如何加分隔符
6、如何实现List
7、时间操作
8、if
9、for
10、如何直接引用Python方法
11、如何引入外部库
12、一个简单测试用例
log hello world
Comment ---------
${a} Set Variable hello world
log ${a}
Comment ---------
${b} Catenate hello world
log ${b}
Comment ---------
${c} Catenate SEPARATOR=- hello world
log ${c}
Comment ---------
${d} Create List hello world
log ${d}
log ${d[0]}
Comment ---------
@{e} Create List hello world
Log Many @{e}
Comment ---------
${f} Get Time
log ${f}
Comment sleep 5
${f} Get Time
log ${f}
Comment ---------
${g} Set Variable 89
Run Keyword If ${g} == 100 log great ELSE IF ${g} >= 90 log nice ELSE log good
Comment ---------
: FOR ${h} IN RANGE 5
Exit For Loop If ${h} == 3
log ${h}
Comment ---------
${i} Evaluate random.randint(1000, 9999) random
log ${i}
${j} Evaluate sum([0,1,2])
log ${j}
${k} Evaluate len('string')
log ${k}
Comment ---------
log_jwt
Comment ---------
${req_url} 获取iag_status请求url iag_status
log ${req_url}
${status} ${resp} http_request 1.1.1.1 8080 ${req_url}
log ${status}