You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great If we have keyword that will be able to set test metadata to test report. This is not issue, when you are running tests using robot, but when you're running tests using pabot the suite metadata is not enough to cover all the information that should be visible at the end of the run.
Not mentioning that rebot merge will mess suite metadata when they are added dynamically.
I'm testing insurance systems and when i'm running tests I get a lot of different URLs where insurances are created. Each testcase have its own url and I'm looking for way how to expose that url in the report.
For now I have custom keyword that logs this url to report, but it is not sufficient as you need to open test steps, open keyword and look for url there. So it should be really cool, if there are any test metadata that I can use to extract information and show them at on place in report
Reacted by Daniel Biehl, René, Markus, gohierf, Michal Smrž, DetachHead, hongchan6, scott-au and SpacedOut64
I assume you mean name-value pairs like with suite metadata? Tests already have tags and documentation and I don't think them getting such metadata would add too much value. Could you clarify what benefits it would give over using tags and doc?
What we can consider is enhancing tags so that you could use them as name value pairs like name: value, name = value, or name-value. We could show such tags differently than normal tags in logs and reports and possibly add new functionality that operates only with tag names or values. We basically needed to decide what separator to use or should we make the separator configurable. I believe having a common separator would be best and like name: value the most. Anyway, this is something that should probably get a separate issue.
The main reason we added metadata, not tags, to suites was that we wanted to make it explicit that tags are always related to tests and metadata to suites. We have, however, already long time ago added keyword tags so nowadays it's not only tests that have tags. Another reason to add metadata for suites was that it's not clear that Force Tags and Default Tags settings are related to tests. We have recently made a decision to replace them with more explicit Test Tags so also that reason isn't so relevant anymore. I've been thinking we could thus change suites to also have tags, not metadata, in the future. That would require better support for using tags as name-value pairs as well as a very long deprecation period.
Hi, thanks for reply. Tags - for me, tags are something that groups test cases into some sort of 'folders' (regression, quick, en/pl/ro tests ... )
Something that I can use for separate or select subset of tests I need to run. So from my point of view storing information should not be part of this. (but i can be wrong). This also makes report much more difficult to read, because if I use this, I will have 200 tags per full suite run.
Documentation is something descriptive about what test is doing. For example we're using it to document which part of application is covered with this tests and little description of test, if the name is not descriptive enough.
E.g. PhotoScanner eforms contract professions onepagerForNa productRecommendation needAnalysisByRole can be Documentation.
We also using this to generate coverage map of testcases against the source code.
As I read your comment I realises that I could be able to use Set Test Documentation aaaaa append=${TRUE}
to append information that I want to show at the first place. This information can be something like : login: xy, password: ab, url_to_debug: https:.... and maybe any other information I need.
But again from my point of view tags are not something I want to bend to serve my purpose. From the documentation point of view, this makes bigger sense.
At the end I just want to point out some of the information, and key/value pairs looks like a good idea. For me it is much more readable to have (in log.html):
Full Name: my test xy
Documentation: sdfasfa
Tags: bg region quick regression
URL: https://...
USER: admin
PASSWORD: admin
Start / End / Elapsed: ....
Status: FAIL
Message: sffsdf
than
Full Name: my test xy
Documentation: sdfasfa
URL: https://...
USER: admin
PASSWORD: admin
Tags: bg region quick regression
Start / End / Elapsed: ....
Status: FAIL
Message: sffsdf
Extending either tags or documentation with information like URL, USER, PASSWORD etc is not so readable. But the beauty is in the eye of the beholder. To be honest I didn't realise that I can append information to Documentation :)
But this key/value pairs is something that suite metadata is doing and therefore the idea of test metadata comes into my head.
I stumbled across the need for test metadata recently, too. The background is that I need robot test cases to map to test requirements in a test management tool (HP ALM, for instance). Test management tools use all kind of metadata and all kind of styles that sometimes violate styles of robot tags. For instance, some metadata is case sensitive, but robotidy formats by default all tags to lowercase - which is good style, imho. I do not want to deactive that rule for tags only because i mix metadata in to the tags. Because when i execute all test cases with a certain tag, i don't want to remember casing.
I need test metadata that is not really processed by Robot itself, but that is availabe through robot api to tools like listeners and result visitors. Using tags, which are an vital part of Robot Framework specs, are for me not suitable, as the metadata add a lot of noise to tags.
In a later iteration, I may also consider inheriting of metadata, but that is for later. For now, it would help tremendously, if test cases would support metadata.
As discussed in the Roadmap-Workgroup here the conclusion of the new feature:
Test Metadata will not be implemented as actual test metadata.
A new feature Custom Test Settings will be implemented and can be used as test metadata
Feature description
It shall be possible to define Custom Test/Task Settings via CLI so that the parser can parse these custom settings properly and IDE-Plugins like RobotCode can offer code completion.
These custom settings will be transferred to the running model similar to the metadata as they are, while line continuations are line breaks and spaces in a line are preserved but stripped.
During execution the Variables in their values are resolved and in the result model existing variables are replaced with their value. (tbd if this happens on start_test or end_test) .
In output.xml/json the Custom Test/Task Settings are stored and they are visualised similar to Metadata or other Test settings at the Test/Task level.
In the next step, we could also introduce Custom Suite Settings which also could be configured via cli/parser so that also these custom settings could be proposed by code completion, which would be a clear advantage compared to Suite Metadata.
Also Custom Settings on suite and test level could be typed to allow different value types.
For example could a custom setting allow keyword calls which would allow to build features like "Test Failure Handler" which could get a keyword call defined and a listener that reads that setting, could then call that keyword in case of an error. Typing, also i.e. with enums, would allow the IDE-plugins to offer correct completions.
*** Test Cases ***Test [Documentation] Das ist doku[Tags] 1 2 3 4 jira:itbpm-89012 os:win[Timeout]100 sec
[Setup] Log Setup
[Teardown] Log Teardown
[Error Handler] Take Screenshot failure_${TEST_NAME}.png
[Issue] \#4409
Log test
In the first mvp this could just be logged in log.html like this:
By adding typed Custom Test/Task/Suite Settings to the parser and the running and result model, many new features become possible
Also a much better support for custom parser, so that they can store additional settings in the model and use them in libraries, modifier, listener and via prerebotmodifier also differently in the logs.
We (imbus) together with a customer are interested to contribute that feature and wish to discuss it further.
Thanks @pekkaklarck for reading and please contact me with a proposal for a meeting.
Just as a thought for a future extension and so I don't forget it,
Would it be possible to also provide a public API so that, for example, a PreRunModifier can also register "Custom Settings"? If such a PreRunModifier needs its own settings, you wouldn't have to specify them separately...
However, this would probably be more of a kind of plugin API 🤔
The overall functionality described above by @Snooz82 sounds good.
Failure handlers would be a good feature in the core and should be implemented separately.
Pre-run modifiers, listeners, etc. could be allowed to modify metada freely, including adding new entries. The CLI setting would be needed by the parser to recognize valid entries. Otherwise typos like [Setpu] would create metadata instead of an error being reported.
This functionality would be more convenient to use if Robot supported configuration files. That's a separate topic, though, amd requires a separate issue.
The plan has been to keep RF 7.1 pretty small and have it out in July. The scope and timeline have been agreed with the core team and the board, and adding a pretty big feature like this to the scope has risks and requires new discussion.
I personally believe we should continue with RF 7.1 as planned, but if RF 8 is too far, we can consider RF 7.2 where this would be the key feature.
I am back this week from holiday and can confirm, I will start working on those tasks in separate PRs now.
Will try my best to give an update this week and link the PRs for the open ToDos.
This is about to be ready! The only thing missing is metadata in the report. There's PR #5743 about that already. It looks good, but I questioned the need to hide the metadata column if no test has metadata. See my comment in the PR for details.
While reviewing the docs I realized that [Metadata] doesn't have a matching setting in the Settings section similarly as other settings have. We could introduce a separate Test Metadata (and Task Metadata) setting that would specify the default metadata and [Metadata] could then add new and modify values similarly as [Tags] can modify tags set with Test Tags. I don't thin it's needed in RF 7.5, but I wouldn't have anything against it being added for consistency reasons if someone provides a PR before the first release candidate. The only design decision I see is agreeing on syntax how to remove metadata. Probably using -Name like you can use -tag with tags would be best.
The above is certainly adequate, but I think the styles could be enhanced. For example, names could be in bold and perhaps the data could be presented in tabular format like in the example below:
| Metadata |
| ----------------------------------- |
| First Meta: Value |
| Second: This is longer value. |
| It has multiple lines. |
If all tests have a certain metadata, reserving a separate column for it would be good. That needs to be configurable somehow, though, because reserving separate columns for all metadata data values makes no sense. Doing anything like that is certainly out of the scope of RF 7.5, but simple style enhancements like proposed above could still be considered. Is @Snooz82 or someone else with an eye for styles interested to look at this?
What do you think about a small issue, that does slight optimizations to that report.html table?
With the following features:
Resizable column width
automatic size calculation, so that columns without or with short information, like status or message, might be smaller if they do not need the space.
metadata table as in the screenshot
tags in rows or in a grid/table. We always have two lines in a table, because the start/end and therefore, we could also always distribute the tags over two lines.
Metadata looks much better than earlier, it's pretty much what I had in mind as well, and other changes look good to me as well. I'll submit a separate issue about resizable columns, because that's an independent enhancement to metadata and deserves a mention in release notes.
Having tags in a table worries me a bit, because wrapping may behave strangely. Wouldn't it be enough to just make sure the column isn't too wide and let tags wrap? There's , between tags so there are plenty of places for wrapping. On the video wrapping seemed to work fine, though, and I don't really care how that's implemented.
Finally, let's not spend much time for this. Better to get RF 7.5 out and then start thinking about a larger log/report rewrite.
Resizable columns got issue #5768. I'm fine with PR implementing that making also the other report changes. If there's something more to discuss about this, let's do that in the new issue.
While reviewing the docs I realized that [Metadata] doesn't have a matching setting in the Settings section similarly as other settings have. We could introduce a separate Test Metadata (and Task Metadata) setting that would specify the default metadata and [Metadata] could then add new and modify values similarly as [Tags] can modify tags set with Test Tags. I don't thin it's needed in RF 7.5, but I wouldn't have anything against it being added for consistency reasons if someone provides a PR before the first release candidate. The only design decision I see is agreeing on syntax how to remove metadata. Probably using -Name like you can use -tag with tags would be
Regarding your feature request here @pekkaklarck, I have opened #5769 for this enhancement with ideas, questions and a proposal.
Let me know if you are fine with me working on this enhancement, I can start with that the upcoming week.
Activity
pekkaklarck commentedon Jul 29, 2022
I assume you mean name-value pairs like with suite metadata? Tests already have tags and documentation and I don't think them getting such metadata would add too much value. Could you clarify what benefits it would give over using tags and doc?
What we can consider is enhancing tags so that you could use them as name value pairs like
name: value,name = value, orname-value. We could show such tags differently than normal tags in logs and reports and possibly add new functionality that operates only with tag names or values. We basically needed to decide what separator to use or should we make the separator configurable. I believe having a common separator would be best and likename: valuethe most. Anyway, this is something that should probably get a separate issue.The main reason we added metadata, not tags, to suites was that we wanted to make it explicit that tags are always related to tests and metadata to suites. We have, however, already long time ago added keyword tags so nowadays it's not only tests that have tags. Another reason to add metadata for suites was that it's not clear that
Force TagsandDefault Tagssettings are related to tests. We have recently made a decision to replace them with more explicitTest Tagsso also that reason isn't so relevant anymore. I've been thinking we could thus change suites to also have tags, not metadata, in the future. That would require better support for using tags as name-value pairs as well as a very long deprecation period.tomaspekarovic commentedon Jul 29, 2022
Hi, thanks for reply.
Tags- for me, tags are something that groups test cases into some sort of 'folders' (regression, quick, en/pl/ro tests ... )Something that I can use for separate or select subset of tests I need to run. So from my point of view storing information should not be part of this. (but i can be wrong). This also makes report much more difficult to read, because if I use this, I will have 200 tags per full suite run.
Documentationis something descriptive about what test is doing. For example we're using it to document which part of application is covered with this tests and little description of test, if the name is not descriptive enough.E.g. PhotoScanner eforms contract professions onepagerForNa productRecommendation needAnalysisByRole can be Documentation.
We also using this to generate coverage map of testcases against the source code.
As I read your comment I realises that I could be able to use
Set Test Documentation aaaaa append=${TRUE}to append information that I want to show at the first place. This information can be something like :
login: xy, password: ab, url_to_debug: https:....and maybe any other information I need.But again from my point of view tags are not something I want to bend to serve my purpose. From the documentation point of view, this makes bigger sense.
At the end I just want to point out some of the information, and key/value pairs looks like a good idea. For me it is much more readable to have (in log.html):
than
Extending either tags or documentation with information like URL, USER, PASSWORD etc is not so readable. But the beauty is in the eye of the beholder. To be honest I didn't realise that I can append information to Documentation :)
But this key/value pairs is something that
suite metadatais doing and therefore the idea oftest metadatacomes into my head.Noordsestern commentedon Apr 17, 2024
Hello all together,
I stumbled across the need for test metadata recently, too. The background is that I need robot test cases to map to test requirements in a test management tool (HP ALM, for instance). Test management tools use all kind of metadata and all kind of styles that sometimes violate styles of robot tags. For instance, some metadata is case sensitive, but robotidy formats by default all tags to lowercase - which is good style, imho. I do not want to deactive that rule for tags only because i mix metadata in to the tags. Because when i execute all test cases with a certain tag, i don't want to remember casing.
I need test metadata that is not really processed by Robot itself, but that is availabe through robot api to tools like listeners and result visitors. Using tags, which are an vital part of Robot Framework specs, are for me not suitable, as the metadata add a lot of noise to tags.
In a later iteration, I may also consider inheriting of metadata, but that is for later. For now, it would help tremendously, if test cases would support metadata.
Snooz82 commentedon Jun 26, 2024
@pekkaklarck
As discussed in the Roadmap-Workgroup here the conclusion of the
newfeature:Custom Test Settingswill be implemented and can be used as test metadataFeature description
It shall be possible to define Custom Test/Task Settings via CLI so that the parser can parse these custom settings properly and IDE-Plugins like RobotCode can offer code completion.
These custom settings will be transferred to the running model similar to the metadata as they are, while line continuations are line breaks and spaces in a line are preserved but stripped.
During execution the Variables in their values are resolved and in the result model existing variables are replaced with their value. (tbd if this happens on start_test or end_test) .
In output.xml/json the Custom Test/Task Settings are stored and they are visualised similar to Metadata or other Test settings at the Test/Task level.
In the next step, we could also introduce Custom Suite Settings which also could be configured via cli/parser so that also these custom settings could be proposed by code completion, which would be a clear advantage compared to Suite Metadata.
Also Custom Settings on suite and test level could be typed to allow different value types.
For example could a custom setting allow keyword calls which would allow to build features like "Test Failure Handler" which could get a keyword call defined and a listener that reads that setting, could then call that keyword in case of an error. Typing, also i.e. with enums, would allow the IDE-plugins to offer correct completions.
In the first mvp this could just be logged in

log.htmllike this:By adding typed Custom Test/Task/Suite Settings to the parser and the running and result model, many new features become possible
Also a much better support for custom parser, so that they can store additional settings in the model and use them in libraries, modifier, listener and via prerebotmodifier also differently in the logs.
We (imbus) together with a customer are interested to contribute that feature and wish to discuss it further.
Thanks @pekkaklarck for reading and please contact me with a proposal for a meeting.
d-biehl commentedon Jun 27, 2024
Just as a thought for a future extension and so I don't forget it,
Would it be possible to also provide a public API so that, for example, a PreRunModifier can also register "Custom Settings"? If such a PreRunModifier needs its own settings, you wouldn't have to specify them separately...
However, this would probably be more of a kind of plugin API 🤔
pekkaklarck commentedon Jun 27, 2024
Very quick comments:
[Setpu]would create metadata instead of an error being reported.Snooz82 commentedon Jun 27, 2024
i do agree!
👍
lets see when it can be implemented and if it is after 7.1 we can do a 7.2.
sounds all good
30 remaining items
febb0e commentedon Aug 12, 2026
Hey @pekkaklarck
I am back this week from holiday and can confirm, I will start working on those tasks in separate PRs now.
Will try my best to give an update this week and link the PRs for the open ToDos.
feat: added &{TEST METADATA} variable and Set Test Metadata (#5745)
documentation for test case metadata (#5744)
Minor doc tuning related to #4409
pekkaklarck commentedon Aug 18, 2026
This is about to be ready! The only thing missing is metadata in the report. There's PR #5743 about that already. It looks good, but I questioned the need to hide the metadata column if no test has metadata. See my comment in the PR for details.
While reviewing the docs I realized that
[Metadata]doesn't have a matching setting in theSettingssection similarly as other settings have. We could introduce a separateTest Metadata(andTask Metadata) setting that would specify the default metadata and[Metadata]could then add new and modify values similarly as[Tags]can modify tags set withTest Tags. I don't thin it's needed in RF 7.5, but I wouldn't have anything against it being added for consistency reasons if someone provides a PR before the first release candidate. The only design decision I see is agreeing on syntax how to remove metadata. Probably using-Namelike you can use-tagwith tags would be best.pekkaklarck commentedon Aug 26, 2026
Test metadata is now in the report as well and below is a screenshot showing how it looks like. The suite in that example is atest/testdata/parsing/test_metadata.robot
The above is certainly adequate, but I think the styles could be enhanced. For example, names could be in bold and perhaps the data could be presented in tabular format like in the example below:
If all tests have a certain metadata, reserving a separate column for it would be good. That needs to be configurable somehow, though, because reserving separate columns for all metadata data values makes no sense. Doing anything like that is certainly out of the scope of RF 7.5, but simple style enhancements like proposed above could still be considered. Is @Snooz82 or someone else with an eye for styles interested to look at this?
feat: added testcase metadata to report (robotframework#5743)
Snooz82 commentedon Aug 26, 2026
@pekkaklarck
What do you think about a small issue, that does slight optimizations to that
report.htmltable?With the following features:
2026-08-26_18-11-14.mp4
pekkaklarck commentedon Aug 28, 2026
Metadata looks much better than earlier, it's pretty much what I had in mind as well, and other changes look good to me as well. I'll submit a separate issue about resizable columns, because that's an independent enhancement to metadata and deserves a mention in release notes.
Having tags in a table worries me a bit, because wrapping may behave strangely. Wouldn't it be enough to just make sure the column isn't too wide and let tags wrap? There's
,between tags so there are plenty of places for wrapping. On the video wrapping seemed to work fine, though, and I don't really care how that's implemented.Finally, let's not spend much time for this. Better to get RF 7.5 out and then start thinking about a larger log/report rewrite.
pekkaklarck commentedon Aug 28, 2026
Resizable columns got issue #5768. I'm fine with PR implementing that making also the other report changes. If there's something more to discuss about this, let's do that in the new issue.
febb0e commentedon Aug 28, 2026
Regarding your feature request here @pekkaklarck, I have opened #5769 for this enhancement with ideas, questions and a proposal.
Let me know if you are fine with me working on this enhancement, I can start with that the upcoming week.
Report: Render test metadata as a table (#5777)
Add Test Metadata setting for default test metadata