Cognos 上的自动化单元测试可能吗?

发布于 2024-08-30 17:51:15 字数 123 浏览 1 评论 0原文

有谁知道是否有任何工具或方法可以在报表工作室和/或框架管理器中应用自动化单元测试?

当需要进行一些回归测试并且我需要以传统方式逐个运行报告时,这真的让我很困扰。

最好的问候,

埃万德罗

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

迟月 2024-09-06 17:51:15

有这样一个工具 - 看看MotioCI。它的主要重点是 Cognos 环境的自动化测试、版本控制和发布管理。

在自动化测试方面,您可以为 Cognos 报告设置断言,这将确保:

  • 报告的执行时间在特定阈值内(例如,“使用这些参数运行此报告应始终在 20 秒或更短的时间内完成”
  • )正在生成预期的输出
  • 该报告遵循有关字体、配色方案、允许的图像等的既定组织标准

您可以将 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 :

  • The execution time of the report is within a certain threshold (e.g. "running this report, with these parameters should always complete in 20 seconds or less")
  • The report is producing the expected output
  • The report is adhering to established organizational standards with regards to fonts, color schemes, allowed images, etc.
  • Etc.

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

暮凉 2024-09-06 17:51:15

标准的“开箱即用”配置中没有工具可以在 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.

云雾 2024-09-06 17:51:15

一种可能性是使用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文