Skip to content
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

Enable wiring in of DSL customisations #1911

Closed
wants to merge 1 commit into from
Closed

Enable wiring in of DSL customisations #1911

wants to merge 1 commit into from

Conversation

krmahadevan
Copy link

Description

Thanks for contributing this Pull Request. Make sure that you submit this Pull Request against the develop branch of this repository, add a brief description, and tag the relevant issue(s) and PR(s) below.

  • Relevant Issues : (compulsory)
  • Relevant PRs : (optional)
  • Type of change :
    • New feature
    • Bug fix for existing feature
    • Code quality improvement
    • Addition or Improvement of tests
    • Addition or Improvement of documentation

Closes #1909

This PR would enable a Karate user to be able to 
Do the following:

1. Define their own keywords which would make sense
For their project needs
2. Define the corresponding glue code for those keywords
3. Wire in their customisations/extensions into Karate
So that they can take full advantage of Karate’s capabilities
And at the same time have the luxury of having their
Own customisations.

Following needs to be done in order to consume this capability

1. Implement the interface `com.intuit.karate.ExtensibleActions`
2. Under your project’s src/main/resources (or) src/test/resources
Create a folder called “META-INF/services”
3. Now in the folder created in (2) create a text file without 
Any extension and its name should be “com.intuit.karate.ExtensibleActions”
4. Now open up this text file, and add the fully qualified
Class names of all the implementations that were created from (1)
@ptrthomas
Copy link
Member

@krmahadevan yes I've gone through the approach. I do think you need to read the thread I linked to in the discussion ref #1909

@ptrthomas ptrthomas closed this Feb 4, 2022
@krmahadevan
Copy link
Author

@ptrthomas - Yes I have skimmed through it. My intent was to only let me define my customisations and not have to deal with Java/JavaScript code snippets in my feature file and affect its readability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants