Karate NPM packages - NextensArelB/SwaggerGenerationTool GitHub Wiki
What is NPM?
NPM (Node Package Manager) is the default packaging manager for Javascript/Node.js. What this means is that using NPM it is possible to create and package js based projects to be used within a node.js server. This grants the ability to share packages across the internet, with easy access to anyone interested.
How does it work?
NPM consists of two parts. The CLI (Command Line Interface) and the NPM registry. Using the CLI you can create a package and publish it to the NPM registry (Think of it as an online repository) to be saved. Then anyone else using the CLI can access the package and use it in their own setup. Making it much easier to share components across teams and organizations.
How do we use it?
The current plan for Nextens, is for every tester to be able to download an NPM package, containing a collection of feature file. For example, you are creating a UI test, one of the first steps is logging into the portal. If you look in the NPM registry then you will be able to find a package that contains a UI-Login feature. Then all you need to do is install that package into your local visual studio code and you can log in using Karate UI.
Another example is you create a feature that you think could be beneficial for other people to use instead of needing to find their own solution. All you need to do is create an NPM package containing your features and publish it to the internal Nextens NPM registry and that's it.
How do I setup and use NPM?
In the wiki, in the pages underneath this page. You will find step by step tutorials on how to install NPM, how to download/install an NPM package and how to create/publish an NPM package.