WriteMsg(" |--"..tRunNG[i][2][j][1]) --Case Name
for k = 1,table.getn(tRunNG[i][2][j][2]) do
WriteMsg(" |--"..tRunNG[i][2][j][2][k]) -- Step Name
end
end
end
end
五、使用方法
1. 测试用例
function db_read_case()
WC("db_read_case");
WS("Step1")
h = db.open(U(Sdir .. "dbComm"))
--WM(h)
--读数据 读取全部
for i = 1,TEST_RECORD do
writeField = string.char(0x15)
for j = 1,20 do
writeField = writeField .. string.char(i+j)
end
readField = db.read(h,i,0,512) --被测接口
文章来源于领测软件测试网 https://www.ltesting.net/