You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current Karate Way avoids the creation of new steps, but allows for calling scenarios by using a tag reference (example like @name=login).
My suggestion is to allow the use of reserved tags (like the @ignore tag) that allows the call of feature scenarios as part of the steps (as sugar coating for the internal call step).
Use format:
Feature: My Feature file with steps@Given(I log into the application as "<username>")
Scenario: Some scenario name here* request { user: <username> }
...
@smoke-testScenario: My actual smoke testGiven I log into the application as "my_user"
...
This could both make some (mostly UI) test cases more readable and more maintainable (in case of interface variation).
The text was updated successfully, but these errors were encountered:
Thanks @stevenspears, as mentioned in the proposal, the idea is for it to be more of a sugar coating from the call step definition for better test readability.
My belief is that Karate is very good and going to the right places where it comes to making use of the Gherkin language, and I understand that adding new implementations to the mix through coding is not part of the Karate way, my suggestion is a sugar coating method (by the use of reserved tags) to do the call read method.
Gokuroro
changed the title
Suggestion: allow direct scenario calls by using reserved tags
Suggestion: allow direct scenario calls by using reserved tags for sugar coating call read
Oct 4, 2021
@Gokuroro nope :) we are not going to go down the direction of Given I log into the blah ever. Karate is designed as a programming language (very close to JS). you can read a very detailed discussion on this here: #398
The current Karate Way avoids the creation of new steps, but allows for calling scenarios by using a tag reference (example like
@name=login
).My suggestion is to allow the use of reserved tags (like the
@ignore
tag) that allows the call of feature scenarios as part of the steps (as sugar coating for the internalcall
step).Use format:
This could both make some (mostly UI) test cases more readable and more maintainable (in case of interface variation).
The text was updated successfully, but these errors were encountered: