generated from gherking/gpc-for-loop
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Add built-in, predefined keywords to use in the replacer, so they can be more easily used instead of setting them in the configuration file.
Use cases
There are two prominent use cases:
- Including UUID in certain places
- Including environment variables (handled in separate issue)
Example
Input:
Feature: Some feature
Scenario: Creating a new user
Given the registration page is opened
When the username is filled with "user_${UUID}"
Then the username should contain "user_${UUID}"
Output:
Feature: Some feature
Scenario: Creating a new user
Given the registration page is opened
When the username is filled with "user_9cef15df-d251-4bf4-bd7a-dd2afff2829c"
Then the username should contain "user_9cef15df-d251-4bf4-bd7a-dd2afff2829c"
Options/Variants
- Adding different versions: UUID (=UUID4), UUID1, UUID2, UUID3, UUID4, NANOID
- Adding scoped versions: SCENARIO_UUID, FEATURE_UUID, EXAMPLES_UUID, etc
Additional context
- The value of UUID* would be unique every time
- The value of the scoped UUID* would be a unique one per the scope
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request