if TestEntironment == nil then --如果沒有定義TestEntironment
Win32 = 1
Symbian = 2
TestEntironment = Win32
--TestEntironment = Symbian
End
if TestEntironment == Win32 then
reportfile = "..\\TestCode\\TestReport.txt" --測試報告文件
else
reportfile = "c:\\TestCode\\TestReport.txt" --測試報告文件
end
2. 初始化測試框架
--初始化測試框架
function InitTestFrame()
--定義存儲各模塊測試執行情況的表
tRunStatistic = {}
tRunStatisticIndex = 0 --tRunStatistic的索引
CurrNGModuleIndex = 0
CurrNGCaseIndex = 0
--定義存儲執行失敗用例的表
tRunNG = {}
延伸閱讀
文章來源于領測軟件測試網 http://www.kjueaiud.com/