Ask a Question

How to set up ReadyAPI for external Groovy development?


How to set up ReadyAPI for external Groovy development?

I would really love to develop my Groovy scripts outside of ReadyAPI in a full-fledged IDE. No offense, I'm just used to have good refactoring capabilities and at least "go to definition" functionality, which is not available in the script editors at this time.


To get started, I was thinking about setting the Resource Root project property to ${projectDir} and have a scripts folder in my project folder. However, as I have a composite project, I'm not sure if this is a good idea. Is it okay to create sub-folders in a composite project folder?


Another thing are the objects log, context and testRunner available in script editors. I have no idea how to access them in my IDE. Any advice on this?


Is anybody here developing Groovy scripts for ReadyAPI in an IDE and would be interested in sharing some best practices? Thanks in advance.


Kind regards

Community Hero

It is possible to achieve it in IDE supported by groovy.

Our expert @rupert_anderson wrote the above blog with detailed steps long time ago and you can use the same approach to write library for your custom scripts.

Regarding your question on variables, you can always pass them to your library methods or classes so that those will be available.

Showing results for 
Search instead for 
Did you mean: