Stamp target URL and timestamp into HTML report header#2
Open
noVaSon wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Summary
Stamps the target base URL (
CAT_FC_HOST) and a UTC timestamp into the HTML reporttitle at the start of each test run. This makes the report self-evidently prove which
deployment instance was under test, without requiring a separate sidecar file.
The injection uses
behave-html-formatter'sset_title(append=True)API and runsonce globally via
before_all.This change is part of the Enhancement of XFSC Federated Catalogue. Details can be found here (permalink):
https://github.com/eclipse-xfsc/docs/blob/f3c6e6b6fbcc87732a1dfe83f060fa58a9a97873/federated-catalogue/src/docs/CAT%20Enhancement/CAT_Enhancement_Specifications%20v1.0.pdf
✅ What's Changed
🧪 How to Test
CAT_FC_HOSTis set (e.g.export CAT_FC_HOST=https://qa.example.com).make run_cat_bdd_dev_html.tmp/behave/behave-report.htmlin a browser.Behave Test Report — https://qa.example.com @ <UTC timestamp>🔍 Related Issues
Closes #
Related to #
📸 Screenshots (if applicable)
📋 Checklist