简体   繁体   English

QTP:如何将Java列表添加到我的对象存储库中

[英]QTP : How to add a Java list into my object repository

I am facing an issue when adding a JAVA list into my object repository. 将JAVA列表添加到对象存储库时遇到问题。 In fact while spying I click on the scrollable button (maintaining CTRL button) the JAVA list is displayed in the object tree as soon as I want to go back to my object repository to add the Java List the list is not displayed any more and therefore I am not able to add it. 实际上,在进行间谍监视时,我单击可滚动按钮(保持CTRL按钮),只要我想返回到对象存储库以添加Java列表,就会在对象树中显示JAVA列表,因此不再显示该列表,因此我无法添加。 Do you have any idea on how I can overcome this issue. 您对我如何克服这个问题有任何想法。

Thanks Zied 谢谢齐德

You can use Object Repository Manager´s "Navigate and Learn" feature for this. 您可以为此使用对象库管理器的“导航和学习”功能。 Hopefully. 希望。

From the main menu, select Resources/Object Repository Manager. 从主菜单中,选择“资源/对象库管理器”。 Then, select "Navigate and learn", select your app´s window, and click "Learn", then "close". 然后,选择“导航和学习”,选择您的应用程序窗口,然后单击“学习”,然后单击“关闭”。 The result is an object repo manager with all objects from the GUI. 结果是一个对象回购管理器,其中包含来自GUI的所有对象。

There are some applications (ie GUIs), that are not really 100% compatible with what QTP expects. 有些应用程序(即GUI)与QTP期望的并非真正100%兼容。 My rule of thumb is "If 'Navigate & learn' cannot catch this, it´s not worth to be considered". 我的经验法则是“如果“导航与学习”无法抓住这一点,就不值得考虑”。

It is highly inconsistent that Navigate & learn discovers GUI facts that are left unobserved by spy, btw. 导航和学习发现间谍发现的GUI事实是非常矛盾的,顺便说一句。 I consider this a bug. 我认为这是一个错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM