google搜索 51Testing站内搜索                    软件测试门户 | 软件测试培 训 | 文章资料精选 | 软件测试论坛 | 软件测试博客 | 测试招聘求职 
打印

[求助] 有关testmanager 中test case results的问题

本主题由 fishy 于 2008-4-28 09:27 提升

有关testmanager 中test case results的问题


请问在做计算器自动测试的实例时,回放完以后在testmanager中test case result中是空的,怎么才能让它得到相关数据?谢谢

TOP

你是需要输出测试结果日志吗?

TOP

是的,我想看到错误发生在哪:实际结果和期望结果的对比,输入这些详细的数据

TOP

哦哦,如果开启日志输出的话,本身在脚本运行完后会自动输出日志到TM的Result里去...基本可显示脚本运行成功与失败.和一些验证点的成功或失败状态..如果要输出特定的内容的话是要在脚本里写相关日志输出的代码的.给个例子看一下
Sub Main
Dim Result As Integer
Dim Value As Variant
SQALogMessage sqaNone, "Starting test of Acme Application...", ""
Window SetContext, "Caption=Acme Inc.", ""
Result = SQAGetProperty ("Type=PushButton;Text=OK", "Enabled", Value)
If Result = sqaSuccess Then
If Value = TRUE Then
Result = sqaPass
Else
Result = sqaFail
End If
SQALogMessage Result, "Test to see if OK button is enabled", ""
Else
SQALogMessage sqaWarning, "Unable to perform OK button test", "Error" + Str$(Result) + ": " + Error$(Result)
End If
End Sub

TOP

 
当前时区 GMT+8, 现在时间是 2008-7-26 10:14Copyright(C)上海博为峰软件技术有限公司 2001-2007 电话:021-64471599-8017
当您在访问网站、论坛及博客过程中遇到问题时可发送email:webmaster@51testing.com或发送论坛短信至管理员风在吹