end
3. 測試套封裝
function WriteCaseName(sCaseName) --標記測試用例名,寫入測試報告文件
CurrCase = sCaseName
local h = io.open(reportfile,"a")
io.output(h)
local sWriteStr = "\n【" .. sCaseName .."】" .. "\n"
if TestEntironment == Win32 then
print(sWriteStr)
end
io.write(sWriteStr)
io.close(h)
end
function WriteCaseStep(sStep) --標記測試步驟,寫入測試報告文件
CurrStep = sStep
local h = io.open(reportfile,"a")
io.output(h)
local sWriteStr = " |--" .. sStep .. "\n"
if TestEntironment == Win32 then
print(sWriteStr)
end
文章來源于領測軟件測試網 http://www.kjueaiud.com/