Skip to content

[IMPR] Add built-in, predefined keywords to use #4

@szikszail

Description

@szikszail

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:

  1. Including UUID in certain places
  2. 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

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions