lua os库提供了简单的跟操作系统有关的功能 1.os.clock() 返回程序所运行使用的时间 local nowTime = os.clock() print("now time is ",nowTime) local s = 0 for i = 1,100000000 do s =s+i end spendTime = os.clock() - nowTime print(string.format("Spend time is : %.2f\n", spe
Collections库是RobotFramework用来处理列表和字典的库,官方文档是这样介绍的:A test library providing keywords for handling lists and dictionaries. 官方文档:http://robotframework.org/robotframework/latest/libraries/Collections.html Keywords Keyword Arguments Documentation Append T
官方文档:http://robotframework.org/robotframework/latest/libraries/String.html Introduction A test library for string manipulation and verification.String is Robot Framework's standard library for manipulating strings Following keywords from BuiltIn libr
1.创建文件 import os os.mkdir('d:/log') 2.重命名文件 import os os.rename('d:/log','d:/newlog') 3.删除文件 import os os.rmdir('d:/log') 4.对目录的处理 #获取当前文件的所在目录import osprint('当前文件的目录:',os.path.dirname(__file__)) #获取文件当前目录的上一级目录import os print('获取文件当前目录的上一级目录:',os.pa