ReporterManager如何停止一个Engine?
步骤1:期望--创建一个.Excel Engine,文件放在No1.xls步骤2:期望--往No1.xls其中写入结果
步骤3:期望--停止上面的.excel Engine 实际--好像没停掉
步骤4:期望--创建另一个excel engine,,文件放在No2.xls
步骤5:期望--往No2.xls其中写入结果 实际--往No1.xls、No2.xls都写入了
Call oReporterManager.StartEngine("Excel", "No1", "File>C:\Logs\No1.xls")
Call oReporterManager.Report ("Pass", "Step 1" ,"Window Should Open" ,"All OK", "No Details")
Call oReporterManager.Report ("Warning", "Step 2" ,"Window Should Open" ,"It Didn't", "Some Details")
Call oReporterManager.Report ("Fail", "Step 3" ,"Window Should Open" ,"App. Crashed", "Bla Bla Bla")
CalloReporterManager.StopEngine("No1.xls") '该如何停止,我这语句好像没停止
Call oReporterManager.StartEngine("Excel", "No2", "File>C:\Logs\No2.xls")
Call oReporterManager.Report ("Pass", "Step 1" ,"Window Should Open" ,"All OK", "No Details")
Call oReporterManager.Report ("Warning", "Step 2" ,"Window Should Open" ,"It Didn't", "Some Details")
Call oReporterManager.Report ("Fail", "Step 3" ,"Window Should Open" ,"App. Crashed", "Bla Bla Bla")
[ 本帖最后由 kavensyw 于 2010-8-15 21:38 编辑 ] CalloReporterManager.StopEngine("No1.xls") '该如何停止,我这语句好像没停止
这句我看脚本,按我的理解好像是要oReporterManager.StopEngine(sName) 'sname="No1"的形式才对
但oReporterManager.StopEngine(sName)会出错,不知道为啥。
页:
[1]