-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[Enhancement] custom metadata support for testcases and keywords #5495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
febb0e
wants to merge
20
commits into
robotframework:master
Choose a base branch
from
imbus:feature/custom-metadata-enhancements
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[Enhancement] custom metadata support for testcases and keywords #5495
febb0e
wants to merge
20
commits into
robotframework:master
from
imbus:feature/custom-metadata-enhancements
+4,108
−58
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
- Add support for custom metadata tags in test cases and keywords - Include test file with examples of custom metadata usage - Enhance parsing and model handling for custom metadata - Update XML schema and output generation for metadata support
…us/robotframework into feature/custom-metadata-enhancements
- Introduced `CustomMetadata` setting in RobotSettings. - Updated parsing and lexing logic to validate custom metadata. - Enhanced command-line options to specify allowed custom metadata names. - Modified relevant classes and methods to accommodate custom metadata.
…ting documentation
…ve initialization in transformers and model classes; update tests to accommodate changes in metadata structure.
…ing names and updating documentation for command line options
…mprove validation checks, and ensure consistent initialization across settings and builders.
- Implement tests for custom metadata in the TestSuiteBuilder, covering basic filtering, keywords, special values, case sensitivity, and integration with FileSettings. - Create tests for custom metadata modifiers, including access and modification during pre-run and execution phases, complex filtering, and error handling. - Develop tests for UserKeyword custom metadata, ensuring handling of various data types, normalization, and integration. - Validate custom metadata behavior with embedded arguments, setup/teardown, and keyword binding.
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.
Custom Metadata Feature
Closes #4409
Overview
Introduces custom metadata feature for test cases and user keywords. The implementation allows users to define metadata for both test cases and keywords using the
[CustomName]
syntax.Implementation Details
[Owner]
,[Requirement]
,[My Custom Metadata]
) is now treated as custom metadata.[UndefinedSetting]
) will now treat these as valid custom metadata.CLI Functionality:
--custommetadata
Flag--custommetadata
flag allows users to filter which custom metadata keys are considered "valid" for display and parsing in output files.Test Coverage
--custommetadata
Notable Changes
Summary
This feature allows users to create tests and keywords with metadata they need. Custom metadata values support the same formatting as settings metadata (
*bold*
,_italic_
,`code`
), variable resolution, multi-line content, etc. The--custommetadata
flag provides control over output, without affecting test execution.Usage Examples
Basic Custom Metadata
Variable Resolution
Text Formatting
Inline Python Evaluation
Keyword Metadata
CLI Filtering Examples