Cognos 上的自动化单元测试可能吗?
有谁知道是否有任何工具或方法可以在报表工作室和/或框架管理器中应用自动化单元测试?
当需要进行一些回归测试并且我需要以传统方式逐个运行报告时,这真的让我很困扰。
最好的问候,
埃万德罗
Does anyone know if there is any tool or a way to apply automated unit testing in report studio and/or framework manager ?
When some regression tests are required and I need to run report by report, on the traditional way, it really bothers me.
Best regards,
Evandro
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有这样一个工具 - 看看MotioCI。它的主要重点是 Cognos 环境的自动化测试、版本控制和发布管理。
在自动化测试方面,您可以为 Cognos 报告设置断言,这将确保:
您可以将 MotioCI 测试设置为在您的开发环境中定期运行(例如每 4 小时),并将其配置为在出现故障时通知您。当报告开始偏离其预期输出或性能水平时,这可以为您提供早期警告。
这实际上只是为 Cognos BI 环境实施持续集成的冰山一角(CI 是几乎所有敏捷方法论的中心主题)。
有关 MotioCI 和 Cognos 中的自动化测试的更多信息,请参阅:
自动化 Cognos 测试< /a>
要了解有关商业智能持续集成的更多信息,请查看以下白皮书:
商业智能的持续集成
干杯,
兰斯
There is such a tool - take a look at MotioCI. Its primary focus is on automated testing, version control, and release management for Cognos environments.
On the automated testing side, you can setup assertions for Cognos reports which will ensure :
You can setup MotioCI tests to be run at periodic intervals (e.g. every 4 hours) in your development environment, and configure it to notify you if something starts to fail. This gives you early warning when a report starts to diverge from its expected output or performance levels.
This is really just the tip of the iceberg for implementing Continuous Integration for Cognos BI environments (CI is a central theme in pretty much every Agile Methodology).
For more information on MotioCI and automated testing in Cognos, see :
Automated Cognos Testing
To read more about Continuous Integration for Business Intelligence, take a look at the following whitepaper :
Continuous Integration for Business Intelligence
Cheers,
Lance
标准的“开箱即用”配置中没有工具可以在 Cognos 8 中自动执行任何操作(看起来)。然而,理论上,可以利用 Cognos 8 SDK 使用 JUnit 之类的工具来编写和运行报告的自动化单元测试。此外,如果您主要测试数据库更改如何影响报告/查询的结果集,您可以从每个报告中提取 SQL 并独立于 Cognos 环境运行自动化测试。
There are no tools in the standard "out-of-the-box" configuration to do anything automated in Cognos 8 (it seems). However, in theory the Cognos 8 SDK could be leveraged to write and run automated unit tests for reports, using something like JUnit. Also, if you are mainly testing how changes to your database affect the result sets of the reports/queries, you could extract the SQL from each report and run automated tests separate from the Cognos environment.
一种可能性是使用 Selenium 来测试报告的 HTML 输出。 Selenium 的设置并不简单,但它已被广泛了解/使用/支持。
有关 Selenium 的维基百科文章
One possibility is to use Selenium to test the HTML output of your reports. Selenium is non-trivial to set up but it is fairly widely known/used/supported.
wikipedia article on Selenium