Orbeon 中有单元测试框架吗?
我想知道是否有任何单元测试框架用于测试 Orbeon Forms。
我们试图实现的单元测试包括事件检查、启用-禁用检查、导航检查、元素样式检查等...
我尝试了 selenium IDE(将其用作 Firefox 插件)作为 POC。创建测试用例很容易。 但是,当我在表单中遇到重复的部分时,每当我们刷新表单时,为每个字段生成的 id 有时会有所不同。所以不得不放弃使用selenium IDE的想法。
我碰巧看到这个 YDT-cleint 侧面单元测试Orbeon wiki 中的 链接。但不太了解这个 YDT 的用法,或者如何与 orbeon 集成。
I am wondering if there is any Unit testing framework for testing the Orbeon Forms.
The unit testing that we are trying to attain are event check, enable-disable check, navigation checking, elements style checking etc...
I tried selenium IDE(using it as a Firefox plugin) as a POC. It had a ease in creating the test case.
But when I encountered repeated sections in my form, the id generated for each field was differing at times whenever we refresh the form. So had to drop the idea using selenium IDE.
I happen to see this YDT-cleint side unit test link in orbeon wiki. But was not able to get much of idea about the usage of this YDT, or how to integrate with orbeon.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Orbeon Forms 本身的单元测试分为 3 类:
对于您在 Orbeon Forms 上编写的应用程序/表单,我建议您使用 Selenium。由于您需要 Selenium 的稳定 id,因此请确保在您想要在 Selenium 中测试的所有内容上显式地在 XForms 中放置一个 id 属性。 (如果您不这样做,正如您所注意到的,Orbeon Forms 会生成 id,当您更新表单时,这些 id 很容易更改。)
The unit tests for Orbeon Forms itself fall into 3 categories:
For applications/forms you write on Orbeon Forms, I would recommend you use Selenium. Since you need stable ids for Selenium, make sure to explicitly put an id attribute in your XForms on everything you'll want to test on in Selenium. (If you don't, as you've noticed, Orbeon Forms generates ids, which can easily change when you update your form.)