-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] - Enable downstream consumers to plugin in DSL customizations #1909
Comments
@krmahadevan this has been discussed in detail in #398 you can choose to submit a PR after reading the whole thread to propose an implementation, but as of now I consider it unlikely that we support what you ask for |
@ptrthomas - Would you be willing to atleast take a look at the PR because its not aimed at taking any of the cucumber route etc., but all its doing is just to facilitate a user to be able to plugin their own constructs, and Karate merely honours them. If after looking at the PR, you still feel its not going to be taken, I am fine with it. I can always override the CLASSPATH locally (lock down on a Karate version in my test project) and still wire in this capability in my project and solve my problem statement. Here's the PR: #1911 |
@krmahadevan I looked at the PR. it is clearly not the approach I want to take especially with the dependency on thanks for the suggestions and feedback, right now I'm just extremely careful about extra keywords and it will open up questions and edge cases on life-cycle, reporting and debugging - and I personally think scripting via JS is the priority. |
@ptrthomas - Sure. I just piggy backed on what was already there in |
Currently Karate lets users plugin in customisations by letting users to add in their custom implementations (such as make a gRPC call or a DB call or a Unix ssh etc.,) via the
Java.type()
syntax.For e.g., assuming that one has a need to do ssh operations for which one would like to use karate, then one needs to make use of
This kind of takes away the readability of a feature file and requires that a person knows a bit more about programming to be able to understand what happens here and how to go about tracing the call.
If a user forgets to add comments for reach of these
def
statements, then the report gets polluted with all these code lines being shown up in the Karate reports instead of some english statements.This issue tracks the following asks (I will be raising a PR for this as well shortly)
com.intuit.karate.ScenarioActions
)Here's an example of what I am looking for
The text was updated successfully, but these errors were encountered: