如何将诱人的报告直接生成仪表板而不是本地生成?

发布于 2025-02-08 01:53:23 字数 488 浏览 2 评论 0 原文

我正在与Appium合作,并且正在探索测试报告工具,以将其与我的项目集成在一起。

出于某些原因,Allure Report似乎很合适,但是我的问题是,在本地生成了魅力报告,并在每个新的测试执行中都消失。

我想拥有我的测试报告的日志,并能够随时随地访问旧报告,例如柏树仪表板。

我想知道是否有像这样的诱人仪表板。我的愿景是将我的Android测试用例与Bitbucket管道集成,并在成功执行后查看结果,测试用例失败和视频。

如果没有,是否还有其他可以与Appium集成并支持我上面谈论过的测试报告工具?

I am working with Appium, and I am exploring test reporting tools to integrate them with my project.

Allure report seems to be a good fit for some reasons, but my problem is that allure reports are being generated locally and disappear on every new test execution.

I want to have logs of my test reports and to be able to access old reports whenever I want, something like Cypress Dashboard.

I wonder if there's an allure dashboard like this https://presidenten.github.io/wdio-video-reporter-example-report/#. My vision is to integrate my android test cases with Bitbucket pipelines and have a look at the results, failed test cases, and videos after successful execution.

If not, is there any other test reporting tool that can be integrated with appium and supports what I have talked about above?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

意犹 2025-02-15 01:53:23

我们使用github操作来执行测试案例并产生魅力报告。然后将魅力报告汇总到托管在云中的服务器,我们的IT部门设置了一个文件托管平台,他们修改了以便使用Web服务器渲染报告。他们将Google帐户登录表格放在其前面,仅允许使用我们的Google Workspace域的用户登录和查看报告。

然后,我们将原始测试数据以及指向报告的链接写入Google表格。这向我们显示了多年的数据和报告。

如您在问题中所述,您可以使用github页面获得轻巧的版本。真正可以实现的原因是,您可以通过按照修改版的指令进行修改版本来轻松地通过GIT客户端添加报告Github页面。

为了避免在每次运行后覆盖报告,您需要使用某种形式的计数器或唯一形式作为报告文件夹名称。我们只需在文件夹名称中使用日期时间戳,该文件夹名称也成为URL的一部分。

而不是 https://presidenten.github.io/wdio-video-video-video-video-reporter -example-Report/我们将具有以下 (请参阅URL示例中的日期。请注意,URL是假的,仅作为示例)

  • < a href =“ https://example.com/wdio-video-reporter-reporter-example-report_31_oct_2024_0553/#”

您还可以生成一个index.html登录页面,每次生成报告并将其推入github页面时,您都会将URL添加到JSON文件或某些数据文件中可以从index.html页面上读取以列出所有报告。

它不会像我们的内部解决方案那样安全。它会像总统github.io一样向世界开放,但这将是实现您要实现的目标的绝佳开始。

We use GitHub Actions to execute test cases and produce an Allure report. The allure report is then rsynced to a server hosted in the cloud where our IT department setup a file hosting platform they modified to also render the reports using a web server. They put a Google Account login form in front of it that only allows users using our Google Workspace domains to login and view the reports.

We then take the raw test data and write it to a Google Sheet, along with a link to the report. This shows us years worth of data and reports.

You could achieve a lightweight version of this using GitHub Pages, as you've referenced in your question. What makes this really achievable is how you can easily add reports via the git client by following a modified version of the instructions to create a GitHub Page.

To avoid overwriting the report after every run, you'd need to use some form of counter or uniqueId as the report folder name. We simply use a date timestamp in the folder name, which also becomes part of the URL.

Instead of https://presidenten.github.io/wdio-video-reporter-example-report/ we would have the following (See the dates in the URL examples. Note that URLs are fake and as an example only):

You could also generate an index.html landing page where, each time a report is generated and pushed to GitHub pages, you add the URL to a JSON file or some data file that the index.html page can read from in order to list all of the reports.

It would not be as secure as our internal solution. It would be open to the world like presidenten.github.io, but it would be a great first start to achieve what you're trying to achieve.

本宫微胖 2025-02-15 01:53:23

要将魅力报告集成到仪表板中,您可以考虑以下选项:

  1. bamboo Integration
    将直接报告到竹子CI/CD管道中的吸引力集成。

    • pros :无缝集成到竹子中;每次构建的报告生成。
    • cons :限于竹子用户;需要CI访问查看报告。
  2. dockerized Allure Service

    主持诱人的报告作为灵活性和可伸缩性的容器服务。

    • PROS :自由,自主;跨环境可扩展。
    • cons :需要团队的维护;其他设置和基础架构管理。
  3. 自定义托管
    魅力报告是静态的HTML,因此可以在任何具有完整自定义的静态站点主机(例如S3,GitHub页面)上托管。

    • pros :完全控制自定义;易于与现有仪表板集成。
    • cons :需要开发工作;设置和更新是手动的。
  4. Allure testops
    从Allure Team支付了付出。提供改进的分析&amp;实时报告功能。

    • ProS :集中式访问;安全的;为企业使用设计;适用于非技术用户和管理。易于集成为现有的魅力报告用户。
    • cons :付费服务;可能包括可能增加复杂性的其他功能。

To integrate Allure reports into a dashboard, you can consider these options:

  1. Bamboo Integration
    Integrates Allure reporting directly into Bamboo CI/CD pipelines.

    • Pros: Seamlessly integrates into Bamboo; generates reports per build automatically.
    • Cons: Limited to Bamboo users; requires CI access to view reports.
  2. Dockerized Allure Service
    Hosts Allure reports as a containerized service for flexibility and scalability.

    • Pros: Free, self-hosted; scalable across environments.
    • Cons: Requires maintenance from your team; additional setup and infrastructure management.
  3. Custom Hosting
    Allure reports are static HTML, so they can be hosted on any static site host (e.g., S3, GitHub Pages) with full customization.

    • Pros: Full control over customization; easily integrated with existing dashboards.
    • Cons: Requires development effort; setup and updates are manual.
  4. Allure TestOps
    Paid offering from Allure Team. Provides improved analytics & real-time reporting features.

    • Pros: Centralized access; secure; designed for enterprise use; suitable for non-technical users and management. Easy to integrate for existing Allure Report users.
    • Cons: Paid service; may include additional features that could add complexity.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文