如何测试eclipse产品使用TestComplete ..? [英] How Test eclipse product using TestComplete..?

查看:193
本文介绍了如何测试eclipse产品使用TestComplete ..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是TestComplete的新功能

i为eclipse ..创建一个插件,现在我想使用 TestComplete ...
测试它是否有任何例子的东西..
因为在eclipse的情况下,进程的索引号也是动态的..
所以有总和插件或东西,使它很容易...

谢谢

解决方案

与SWT应用程序相比较难以使用,因为它们包含太多的对象,而没有可靠的标识属性。例如,所有 复合 对象之间没有任何区别,唯一的区别是他们的 索引 属性。但是,这个属性取决于对象的创建顺序取值,显然可以从运行到运行。



使用这样的应用程序的好方法是使用名称映射功能。当使用 Eclipse 应用程序时,映射对象的最可靠的方法是避免使用索引并使用 必需子项 功能。在这种情况下,要映射没有强大标识属性的对象,您需要找到可以可靠识别的子对象或子对象(例如具有唯一标题的按钮),并将其指定为必需的子对象。您可以在指定映射对象标识所需的子对象帮助主题中找到有关此功能的更多信息:
http://smartbear.com/support/viewarticle/12481/



您还可以使用扩展查找 名称映射功能的功能。此功能类似于您可以在脚本中使用的 FindChild 方法。请在使用扩展搜索标准进行映射对象识别帮助主题中找到有关此功能的更多信息:
http://smartbear.com/support/viewarticle/12466/



BTW,我建议您观看'为使用名称映射的动态对象创建可靠的测试'screencast可以帮助您更好地了解名称映射功能:
的screencasts / testcomplete / reliable-tests- / p>

另外,您可以在官方论坛上询问有关 TestComplete 的问题:
http://smartbear.com/forums/


I am new for TestComplete
i create a plugin for eclipse .. and now i want to test it using TestComplete... So is there is any example of something.. Because in case of eclipse the index number of process is also dynamic .. so is there is sum plugin or something which make it easy..
Thank's

解决方案

It is comparably hard to work with SWT applications since they contain too many objects without reliable identification properties. For example, all Composite objects do not differ one from another and the only way to distinguish them is their Index property. However, this property gets value depending on the creation order of an object and, obviously, can change from run to run.

A good way to work with such applications is using the Name Mapping feature. When working with an Eclipse application, the most reliable way to map objects is to avoid using indexes and using the Required Children feature. In this case, to map an object without strong identification properties, you need to find its child or grandchild object that can be identified reliably (e.g. a button with unique caption) and specify it as a required child object. You can find more information on this functionality in the 'Specifying Child Objects Required for Mapped Object Identification' help topic: http://smartbear.com/support/viewarticle/12481/

You can also use the Extended Find feature of the Name Mapping functionality. This feature is similar to the FindChild method that you can use in scripts. Please find more information on this feature in the 'Using Extended Search Criteria for Mapped Object Identification' help topic: http://smartbear.com/support/viewarticle/12466/

BTW, I recommend that you watched the 'Creating Reliable Tests For Dynamic Objects with Name Mapping' screencast that will help you to understand the Name Mapping functionality better: http://smartbear.com/support/screencasts/testcomplete/reliable-tests-for-dynamic-objects/

Also, you can ask your questions about TestComplete in the official forum: http://smartbear.com/forums/

这篇关于如何测试eclipse产品使用TestComplete ..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆