table.insert(tRunNG,{CurrModule,{{CurrCase,{CurrStep}}}})
CurrNGModuleIndex = CurrNGModuleIndex + 1
CurrNGCaseIndex = 1 --复位1
end
end
end
--统计测试用例执行情况
function GetStatistic()
WriteMsg("\nTestcase run statistic:")
WriteMsg("**********************************************************************")
WriteMsg("【ModuleName】".." 【Run】".." 【OK】".." 【NG】")
WriteMsg("----------------------------------------------------------------------")
for i = 1,table.getn(tRunStatistic) do
--打印格式
s1 = ""
for j = 1,24 - string.len(tRunStatistic[i].Module) do
s1 = s1 .." "
end
s2 = ""
for j = 1,17 - string.len(tRunStatistic[i].iRunCaseNum) do
s2 = s2 .. " "
文章来源于领测软件测试网 https://www.ltesting.net/