如何向利益相关者分享Allure报告?——WebdriverIO框架生成及Jenkins配置后的实操咨询
Got it, since you’ve already set up WebdriverIO to generate Allure reports and configured Jenkins to host them, here are the practical, team-tested ways to share these reports with your stakeholders:
1. Share the Direct Jenkins Report URL (Most Common)
This is the simplest approach if stakeholders have access to your Jenkins instance:
- First, confirm permissions: Head to
Manage Jenkins > Manage Usersto create accounts for stakeholders (if they don’t have one) and ensure they have Read permissions for your specific project. For internal teams, this is usually the go-to—no extra steps needed beyond setting up basic access. - Grab the report link: Navigate to your Jenkins project page, then find the Allure Report entry (it’s typically in the left sidebar or within a specific build’s details page). Copy this URL and send it to stakeholders—they’ll land directly on the latest version of the report.
2. Export Static HTML Report for Offline Sharing
If stakeholders can’t access Jenkins (e.g., external clients), export the report as a static package:
- Manual export: After a build finishes, open the Allure report in Jenkins. Look for a Download button (usually a download icon in the top-right corner) and select the HTML zip option. Send this zip file to stakeholders—they just need to unzip it and open the
index.htmlfile in any browser to view the full report offline. - Automated export in Pipeline: To streamline this, add steps to your Jenkinsfile to zip the report and send it via email automatically. Example snippet:
post { always { // Generate the Allure report allure includeProperties: false, results: [[path: 'allure-results']] // Zip the static report files sh 'zip -r allure-static-report.zip allure-report/' // Send email with the zipped report as attachment emailext attachmentsPattern: 'allure-static-report.zip', subject: 'Latest WebdriverIO Test Report', body: 'Attached is the full Allure test report for the latest build.', to: 'stakeholder1@yourcompany.com, stakeholder2@yourcompany.com' } }
3. Embed or Link to Internal Tools (Confluence, Internal Portal)
If your team uses internal documentation tools, integrate the report there for centralized access:
- Confluence: Use the official Allure Confluence plugin to embed report summaries or full views directly into pages. Alternatively, upload the zipped static report as an attachment and add a link, or insert the Jenkins report URL for live access.
- Internal Portal: Add the Jenkins report URL to your team’s internal testing dashboard or project portal—this lets stakeholders find the report alongside other project updates without navigating Jenkins directly.
4. Send Scheduled Report Summaries
For stakeholders who only need high-level metrics (not the full report), set up automated summary emails:
- Use Jenkins’ Editable Email Notification post-build action. In the email body, use Groovy scripts to pull key Allure metrics (like pass rate, failed test count) and include a link to the full report. This keeps stakeholders informed without overwhelming them with details.
Quick Notes
- Permissions First: Always double-check Jenkins access controls for internal projects—don’t share sensitive test data with unauthorized users.
- Clarify Report Version: If sharing a static exported report, make sure to note which build it corresponds to (e.g., "Build #123 - 2024-05-20") so stakeholders know they’re viewing the right data.
内容的提问来源于stack exchange,提问作者user3690888
相关产品推荐
相关产品推荐

