51Testing软件测试论坛

标题: LoadRunner中的验证函数web_report_data_point与lr_checkpoint有用不? [打印本页]

作者: higkoo    时间: 2010-12-15 19:43
标题: LoadRunner中的验证函数web_report_data_point与lr_checkpoint有用不?
本帖最后由 higkoo 于 2010-12-15 19:44 编辑

lr_checkpoint 原型:
Validates the value of a parameter against an expected value (checkpoint).

int lr_checkpoint("StepName=<step_name>", "ActualValue={<input_param>}", "Compare=<operator>", "ExpectedValue={<checkpoint>}", "StopOnValidationError=<error_code>", LAST );

示例:
  1. lr_checkpoint("StepName=VerifyCheckpoint",
  2.     "ExpectedValue=Joe",
  3.      "ActualValue={MyOutputParam}",
  4.     "Compare=Equals",
  5.     "StopOnValidationError=false",
  6.     LAST );
复制代码



结果在LoadRunner(11.00)中并没有这个函数,无法使用!

而web_report_data_point原型:
Specifies a data point and adds it to the test results.

int web_report_data_point( const char *EventType, const char *EventName , const char *DataPointName , LAST );


示例:

  1. web_report_data_point( "EventType=Error" , "EventName=StepTimeOut" , "DataPointName=timeout" , LAST );
复制代码



在脚本生成器的“查看”菜单下查看其报告,没有任何体现。在Controller和analysis里也无任何体现。这函数有何用?
作者: 云层    时间: 2010-12-16 11:48
感觉是一种检查点函数的变化,没觉得有啥用,不过这个函数确实奇怪
作者: higkoo    时间: 2010-12-16 21:46
嗯,从名字上看就是检查点。
在“view”菜单有个报告,默认会记录WEB测试的结果和结果。

以为这两个函数可以在报告中发挥作用,可惜……




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2