与 Fitnesse 一起驾驶 ATG?
目前在 ATG 商店担任教练,希望引入某种形式的客户验收测试。我选择的武器通常是 Fitnesse,但这里的人说用 Fitnesse 不可能驾驶 ATG。我想知道是否还有其他人尝试过这个,如果有的话,他们的经历是什么? 提前致谢 - 达夫
Currently working as a coach in an ATG shop and would like to introduce some form of customer acceptance testing. My weapon of choice is usually Fitnesse but the guys here say it's not possible to drive ATG with Fitnesse. I wonder if anyone else has tried this and, if so, what their experiences were?
Thanks in advance - davep
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我假设您正在谈论 UI 测试,而不是代码级测试;对我来说,“客户验收测试”意味着 UI。
我从事 ATG 工作,使用 HtmlUnit 和 WebDriver 进行 UI 测试,使用直接使用这些框架的 JUnit 编写的测试。我们的 QA 人员使用 Sahi。
我从来没有用过Fitnesse。然而,快速浏览后,我没有看到任何令人惊叹的内容。您想要编写使用 HtmlUnit 或 WebDriver(我推荐 WebDriver)的固定装置来访问站点并在固定装置方法中执行操作。这将涉及三个运行进程:Fitnesse 服务器、运行装置的进程,然后是 ATG 本身。我不会尝试在 ATG 内运行这些装置。不适用于 UI 测试。
你就是这么想的吗?
I'm going to assume you're talking about UI testing, rather than code-level testing; "customer acceptance testing" to me implies UI.
I work on ATG,and i use HtmlUnit and WebDriver to do UI testing, with tests written with JUnit that use those frameworks directly. Our QA guys use Sahi.
I've never used Fitnesse. However, following a quick look at it, i don't see any showstoppers. You'd want to write fixtures that used HtmlUnit or WebDriver (i'd recommend WebDriver) to hit the site and do things in the fixture methods. This would involve three running processes: the Fitnesse server, a process running the fixtures, and then ATG itself. I wouldn't try to run the fixtures inside ATG. Not for UI testing.
Is that the sort of thing you were thinking of?
推荐的方法是从 ATG 公开 API(例如 REST+JSON Web 服务),并使用 Fitnesse 来驱动它。
这样做的优点是,不仅更容易测试,而且支持响应式 HTML 5 和本机移动应用程序。
根据您的 ATG 版本,有多种机制可以将组件公开为 REST 服务。不过,更好的是,将 Mobile Cube (http://www.deliverycube.com) 作为一个框架可用于在 ATG 上构建 REST API。 (完全公开,我设计了框架)
The recommended way would be to expose an API (e.g. REST+JSON web services) from ATG, and use Fitnesse to drive that.
This has the advantage of, not only being easier to test, but also supporting responsive HTML 5 and native mobile applications.
Depending on your version of ATG, there are various mechanisms in place to expose a component as a REST service. Better yet, though, take a look at Mobile Cube (http://www.deliverycube.com) as a framework that can be used to build a REST API on ATG. (full disclosure, I designed the framework)
在我当前的项目中,我们使用 FitNesse 来测试使用 ATG 的应用程序。
我们使用 dyn admin 注入装置来准备测试数据(例如,创建 Web 用户)。
然后我们根据通常的测试场景使用步骤。
In my current project we are using FitNesse to test application, that use ATG.
We use dyn admin injection fixture for preparing test data (for example, to creates a web user).
And than we use steps according to a usual test scenario.