behave icon indicating copy to clipboard operation
behave copied to clipboard

step-registration: Reorder step definitions according to common prefix

Open jenisys opened this issue 4 years ago • 1 comments

Currently, a new step is appended to the step registry (step category) when it is registered. This may lead to ambiguous steps during step registration, if the longest step text/pattern is not defined first.

DESIRED CHANGE:

Find best insertion position for a step during step registration

  • to avoid unnecessary ambiguous step errors
  • instead of appending the new step

NOTES:

  • Makes step registration more costly
  • Currently, the user is in control by ordering the steps
  • Insertion algorithm must be "failsafe"

RELATED TO: #924 (and others)

jenisys avatar Jun 28 '21 11:06 jenisys

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 08 '22 23:01 stale[bot]