51Testing软件测试论坛

标题: 用wr测试pb的Datawindow,插入数据库检查点,回放时提示找不到pb程序的字段对象 [打印本页]

作者: 贝壳    时间: 2004-11-22 15:24
标题: 用wr测试pb的Datawindow,插入数据库检查点,回放时提示找不到pb程序的字段对象
用wr测试pb的Datawindow,插入数据库检查点,回放时提示找不到pb程序的字段对象:,(
作者: QA_BAY    时间: 2004-11-22 20:59
如果不加入呢?
有没有找到呢?
GUI里面有没有呢?
还有你不是说数据库检查点对PB的支持不是很好吗!
作者: 贝壳    时间: 2004-11-23 10:07
测试环境:

   操作系统:windowxp

   开发语言:pb

   数据库:  oracle,sql server



测试目的:

新增记录做保存操作,想用winrunner的数据库检查点检查数据库表中的记录与刚录入记录值是否一一对应。



操作步骤:

用winrunner录制新增记录并做了保存后,插入数据库检查点,在插入数据库检查点时按照步骤一步一步操作,并表中字段与窗口上的该字段对象一一做了对应。



问题描述:

    运行winrunner回放时,新增记录保存都成功,回放到数据库检查点时提示字段的窗口对象找不到,而我们系统中用的都是pb数据列,pb自带的datawindow。

为了检查问题的所在,特用pb的编辑框和vb程序同样操作,数据库检查点都可以通过,也都可以找到与表中字段对应的窗口对象。



举例说明:

Pb数据列:

比如:新增人员保存,插入数据库检查点(Database CheckPoint——>Runtime Record Check ) 按照步骤一步一步操作下去,在 Match Database Field窗口中的

Database fieldx显示的一个数据库字段如Name,在Logical Name中手工指向被测软件中选定的控件,也就是姓名一栏(dw1.name)。一步步完成后,回放脚本,运行到

数据库检查点这一步时提示dw1.name object  is not  found 。

  Pb编辑框:

  用Pb编辑框做同样录入保存及数据库检查点操作,操作步骤一模一样,脚本回放时运行通过,测试结果显示该字段表中实际值与预期值
作者: 贝壳    时间: 2004-11-25 17:12
没人知道吗? 顶
作者: QA_BAY    时间: 2004-11-25 22:01
In my experience, WR acts like it's "ticked" most of the time! (Sorry, a little liguistic whimsy - it's the day before the Thanksgiving holiday here in the USA, and we're not inclined to do much productive work)

If any of you in other parts of the globe need that explained, then ----- sorry! we only throw grenades in the room here - we don't tell you how to escape from the.
作者: QA_BAY    时间: 2004-11-25 22:03
I don't know if the GUI spy works with the powerbuilder stuff - I haven't tried that. By habit I usually turn record on (in a temporary blank script if you like) and then click on whatever PB field / cell / table / object I am interested in (or even do the data entry/navigation) - and then work from there. Eg once you have the table name you can code your own tbl_get_rows_count and other pb functions to interact with it...

If you record interaction with PB objects, and it doesn't record any tbl_ functions, then either your PB add-in isn't working (or it isn't a PB app)

以上就是别人对你的贴的回答,
由于我的理解有点问题!
请你自己翻译吧!:d:d:d:d:d:d:d:d
作者: 同是测试人    时间: 2005-1-24 09:18
标题: 同是关于WR支持PB的Datawindow问题
在WR中怎样才支持PB的DataWindows.因为我插入一Gui检查点,在Edit Gui窗口并没有找到DataWindows类。 请各位帮忙解释,谢谢!
作者: whkwzyc    时间: 2008-8-27 18:51
不知道问题解决了没有?如何解决的?可否贴出来看看?




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