QTP问题:为什么执行到第2次登录时就出错了

来源:百度知道 编辑:UC知道 时间:2024/06/01 07:06:23
我刚开始学习QTP,遇到了难题,请大家帮帮我.

我用的是QTP 8,按照Tutorial_oldsidney_cn.pdf手册上写的步骤,录制了脚本.其中第6节讲的是参数化,设置好参数后执行时,到第二次登录时出错,弹出框Run Error提示:

The test run cannot continue due to an unrecoverable error.

Cannot Identify the object"fromPort"(of class WebList).Verify that this ovject's properties match an object currently displayed in your application.

Deatils:Line(4)"Browser("Welcome:Mercury Tours").Page("Find a Flight:Mercury").WebList("fromPort").Select DataTable("depature",dtGlobalSheet)"

看Test Results时,只有两个Iteration,第1个是pass,第2个是fail.

我的msn是:fnnwzt@hotmail.com

邮件地址是:fnnwzt@sina.com

楼主后来怎样解决的

不知道楼主做参数化之前,做关联了没有
看您的错误提示,楼主做参数化的是否是选择起飞地呢?
如果是的话,那错误应该是参数化的问题了,类型不匹配或是在设置参数的时候,顺序和每次迭代时发生的选项没选正确呢?
多试几次就能找出原因的