1.1 数字变量
执行结果:
Starting test: Robot Demo.Demo.3-1
20161116 09:46:19.544 : INFO : var=32016111609:46:19.544:INFO: {float} = 3.14
20161116 09:46:19.544 : INFO : ${float} = -0.0001
Ending test: Robot Demo.Demo.3-1
1.2 布尔变量和None/null
执行结果:
Starting test: Robot Demo.Demo.3-2
20161116 09:49:42.501 : INFO : testtrue=True2016111609:49:42.502:INFO: {test_false} = False
20161116 09:49:42.503 : INFO : testnone=None2016111609:49:42.503:INFO: {test_null} = None
Ending test: Robot Demo.Demo.3-2
1.3 字符串、元组、list和字典
执行结果:
Starting test: Robot Demo.Demo.3-3
20161116 14:26:48.401 : INFO : string=test2016111614:26:48.402:INFO: {tuple} = (1, 2)
20161116 14:26:48.403 : INFO : @{list} = [ 1 | yy ]
20161116 14:26:48.404 : INFO : ${Dictionary } = {u’a’: u’1’, u’b’: u’2’}
Ending test: Robot Demo.Demo.3-3
1.4 space和empty
执行结果:
[图片]