如何测试Eclipse Juno RCP的UI(How to test the UI of an Eclipse Juno RCP)

编程入门 行业动态 更新时间:2024-10-19 04:22:54
如何测试Eclipse Juno RCP的UI(How to test the UI of an Eclipse Juno RCP)

我们正在开发基于Eclipse的RCP。 最近我们更新了Eclipse Juno,目前我们专注于质量,当然,自动化测试成为焦点,因为应用程序非常庞大,测试工作会延迟发布。

我们已经在编写JUnit测试,但我对UI测试更感兴趣。 对于较老的日食,这不会是一个问题。 有很多好的测试框架。 不幸的是,由于增加了通过Swing或JavaFX切换默认SWT UI的能力,Juno的一切都发生了变化(至少这是我对导致问题的变化的理解)

因此大多数测试工具不再正常工作。 从过去的经验来看,似乎:

SWTBot似乎最近没有太多的爱,并且非常不稳定(在某些版本中找不到元素) Window Tester看起来相当不错,但在测试过程中识别元素存在很多问题(尤其是弹出窗口,例如内容辅助或工具提示) 显然Froglogics Squish支持Juno,但由于许可证成本约为2.5万欧元,我必须通过 QF-Test似乎也是如此(太昂贵)。 这留下了我们过去尝试过的Jubula (或GUIDancer,它是商业Jubula),但它有类似Window Tester和SWTBot的问题(在Eclipse平台的变化方面不稳定,并且难以检测某些元素)

我需要知道,关注/信任哪个工具。是否有人有过使用其中一个工具的经验,或者甚至正在测试Juno RCP(或Juno本身)? 或者有人知道Eclipse如何测试他们自己的平台(如果他们甚至做它们的话)?

搜索与“test”,“Juno”和“UI / GUI”相关的信息仅显示商业产品。

对我而言,重要的是找到一个工具,即使在将来的版本中我也可以使用开发的测试,这意味着:一个框架项目,它有一些社区的支持,能够快速适应。 此外,重要的是还要找到工具提示,叠加或内容助手/建议等内容 - 类似于Selenium与基本HTMLUnit相比。

在这一点上,我甚至不太关心集成,报告或遵守标准。

We're developing an Eclipse-based RCP. Recently we've updated to Eclipse Juno and currently we focus on quality, which of course brought automated tests into focus, since the application is quite big and the testing effort delays releases.

We're already writing JUnit tests, but I'm more interested in UI tests. With older Eclipses this would not be a problem. There are plenty of good test frameworks around. Unfortunately with Juno everything changed due to the added ability to switch out the default SWT UI by Swing or JavaFX (at least this is what I've understood about the changes causing problems)

So most of the test tools don't work properly anymore. From past experiences it seems that:

SWTBot seems to get not much love lately and is very unstable (can't find elements in certain versions) Window Tester seems quite good, but has a lot of problems identifying an element during the test run (especially with pop-ups such as content assist or tool tips) Apparently Froglogics Squish supports Juno, but since a license costs about 2,5k Euro I have to pass The same seems to be the case for QF-Test (too expensive). This leaves Jubula (or GUIDancer, which is the commercial Jubula), which we've tried in the past, but which had similar problems as Window Tester and SWTBot (unstable in terms of changes to the Eclipse platform and difficulties to detect some elements)

I need to know, which tool to focus on / trust in. Does anybody have experience with one of the tools or is even currently testing a Juno RCP (or Juno itself for that matter)? Or does anybody know how Eclipse tests their own platform (if they even do it atm)?

Searching for information related to "test", "Juno" and "UI/GUI" only brings up the commercial products.

For me it is important, to find a tool, where I can use the developed test cased even in future releases, which means: A framework project, which has some support of the community to be able to adapt quickly. Also it is important to also find stuff like tool-tips, overlays or content assists/suggestions) - similar to a Selenium compared to basic HTMLUnit.

At this point I don't even care too much about integration, reporting or compliance to standards..

最满意答案

我建议你也看看Xored的Q7 ,它用于一些Eclipse项目的GUI测试,包括Eclipse DLTK,Eclipse LDT,Eclipse Tigerstripe,这个工具非常完美:它让你每个工程师每天开发几十个UI测试,并没有稳定性和错误记录问题。 它是专门设计的,仅用于测试基于Eclipse的应用程序,显然是利基市场中最好的。

然而它花钱,这可能是你的阻碍(如挤压),但他们有一个免费的社区版本,这足以满足大多数用例。 除了那些Xored的人刚刚推出了按次付费的定价模式 - 这些工具将是免费的,你只需要按照每月执行的测试付费(少于5000免费)。 有关新模型的更多信息,请访问eclipse-testing.com

I'd suggest you too look at Xored's Q7, which is used for GUI testing of some of Eclipse projects including Eclipse DLTK, Eclipse LDT, Eclipse Tigerstripe and the tool is just perfect : it let you develop dozens of UI tests per day per engineer, and do not have stability and incorrect-recording problems. It's designed specially and only to test Eclipse-based apps and obviously the best in the niche.

However it costs money, which can be a blocker for you (like squish), but they have a free Community version, which is enough for most of use-cases. As well as those Xored guys just introduced pay-per-testexecution pricing model -- the tools will be free and you have to pay as you go only per tests executed monthly (less than 5000 is free). More about new model is here eclipse-testing.com

更多推荐

本文发布于:2023-08-06 04:00:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1444529.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:测试   Eclipse   Juno   test   UI

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!