TA的每日心情 | 开心 2015-10-19 13:26 |
---|
签到天数: 2 天 连续签到: 2 天 [LV.1]测试小兵
|
步骤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")
Call oReporterManager.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 编辑 ] |
|