" has offer with offerId "" Examples: | user | offerId | | ccccc |ccccccccc| li" /> " has offer with offerId "" Examples: | user | offerId | | ccccc |ccccccccc| li" /> " has offer with offerId "" Examples: | user | offerId | | ccccc |ccccccccc| li"/>

I want to replace word in cucumber feature file and be reflected in step definition immediately

620 Views Asked by At
 Scenario Outline: check  offer exist
    Then    validate user "<user>" has offer with offerId "<offerId>"
    Examples:
      |  user     | offerId |
      |  ccccc    |ccccccccc|  

like in this scenario i want to change the wording of step without creating new one

change reflected immediately in the step definition file

1

There are 1 best solutions below

0
Tim On BEST ANSWER

Check out the documentation:

https://cucumber.io/docs/cucumber/step-definitions/?lang=java

Step definitions can have regex.