Beginner
6 years agoOccasional Contributor
How to integrate scripts in script library to git?
Hi Team,
I have some groovy classes defined in the 'Script Library' which are being used in several tests. I need some suggestion on how I can integrate all the '.groovy' files in script library to git so that everyone can access these and also easy to run the tests from Jenkins smoothly. Can someone please throw some light on this?
Thanks in advance!
- If there are classes, and maintainability is the issue, then you should read the below article where you can create a separate project with all the classes and put it under git/ other repository. And you can just call them from Groovy Script test steps. This will make "Script Library" obsolete, which I don't you need to bother about for your use case as long as you are achieving re-usability.
http://rupertanderson.com/blog/1-how-to-develop-add-and-use-a-custom-groovy-library-in-soapui/