RobotFramework之数据类型及变量运算⼀、数字变量
数字变量 Demo
执⾏结果:
ngp是什么意思Starting test: Test.Testsuit.baidutest
20171207 08:56:18.259 : INFO : ${var} = 3
practi
葛底斯堡战役20171207 08:56:18.259 : INFO : ${float} = 3.14
20171207 08:56:18.259 : INFO : ${float} = -0.0001
Ending test: Test.Testsuit.baidutest
⼆、布尔变量和None/null
布尔变量和None/null Demo
执⾏结果:
Starting test: Test.Testsuit.baidutest
20171207 09:02:29.583 : INFO : ${test_true} = True
20171207 09:02:29.584 : INFO : ${test_fal} = Fal绯闻少女下载
20171207 09:02:29.585 : INFO : ${test_None} = None
20171207 09:02:29.586 : INFO : ${test_null} = None
三、字符串、元组、list和字典
字符串、元组、list和字典 Demo
执⾏结果:
Starting test: Test.Testsuit.baidutest
20171207 09:07:35.673 : INFO : ${string} = test
生态环境 英语>peluso20171207 09:07:35.673 : INFO : ${tuple} = (1, 3)
20171207 09:07:35.673 : INFO : ${list} = [u'1', u'yy']
20171207 09:07:35.673 : INFO : ${Dictionary} = {u'b': u'3', u'a': u'5'}
调试英语四、space和empty
space和empty Demo
执⾏结果:
struggle onStarting test: Test.Testsuit.baidutest瓶颈英文
20171207 09:15:07.090 : INFO : ${test_space} = 20171207 09:15:07.090 : INFO : ${test_引号空格} = ' ' 20171207 09:15:07.090 : INFO : ${test_4个space} = 20171207 09:15:07.090 : INFO : ${test_space} = " " 20171207 09:15:07.090 : INFO : ${Dictionary} =
五、特殊变量运算
特殊变量运算 Demo
执⾏结果:
Starting test: Test.Testsuit.baidutest
20171207 09:19:59.715 : INFO : ${数字变量运算} = 32 20171207 09:19:59.725 : INFO : ${布尔类型true运算} = 4 20171207 09:19:59.725 : INFO : ${布尔类型fal运算} = 0 20171207 09:19:59.725 : INFO : ${space运算} =
六、Evaluate使⽤
函数释义:Evaluate是执⾏python表达式,并返回执⾏结果
Evaluate和python表达式运算 Demo
执⾏结果:
zalman