robotcode
robotcode copied to clipboard
[ENHANCEMENT] Set a Robot Framework Variable to Indicate Selected Profiles at Runtime
Enhancement Request: Set a Robot Framework Variable to Indicate Selected Profiles at Runtime
Description
I propose that RobotCode automatically sets a Robot Framework variable at runtime to indicate which profiles have been selected. This variable should be globally available throughout the test execution, allowing tests to dynamically adapt their behavior based on the selected profiles.
Example:
${SELECTED_PROFILES} = ["dev", "staging"]
Motivation / Benefits
This feature would offer several advantages:
- Dynamic test adaptation: Tests could dynamically change behavior based on the selected profiles and perform environment-specific actions.
- Increased transparency: The test execution context becomes clearer since the selected profiles are explicitly visible.
- Flexible test configuration: Users can combine multiple profiles without the need for manual CLI options or separate configuration files.