51Testing软件测试论坛

标题: QTP回放“飞机订票系统”脚本时,出现Line(4)错误 [打印本页]

作者: libingyu135    时间: 2013-8-28 18:38
标题: QTP回放“飞机订票系统”脚本时,出现Line(4)错误
Cannot identify the oject "fromPort"(of class WebList). Verify that object's properties match an object currently displayed in your application.
Lin(4):"Browser("Welcome Mercury Tours").Page("Find a Flight: Mercury").Weblist ("fromPport").Select "New York"".
Tip:if the objects in your application have changed.the maintenance Run Mode can help you identify and update your steps and/or the objects in your repository.请问是怎么回事啊?新手,不懂
作者: 51studyqtp    时间: 2013-8-28 21:25
weblist没识别,看下对象库
作者: 黑羽祭    时间: 2013-8-29 09:32
更新一下对象库里的对象后再试试
作者: libingyu135    时间: 2013-8-30 15:57
回复 2# 51studyqtp


    怎么更新呢?我是新手,不太懂,求详解
作者: libingyu135    时间: 2013-8-30 15:58
回复 3# 黑羽祭


        怎么更新呢?我是新手,不太懂,求详解
作者: joykao    时间: 2013-9-3 13:07
fromPport看看这个weblist对象到底变成啥了。。。用于识别的属性可能变了,打开对象库,找到该对象。。然后把页面也打开到相应位置。。。重新添加下这个对象
作者: 黑羽祭    时间: 2013-9-4 09:12
回复 5# libingyu135


    Ctrl+R打开对象库,在对象库中找到fromPort这个控件,然后点击一下上面的Update,再去点击一下被测试程序上对应的位置,就好了。




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