Solved
Forum Discussion
nmrao
Champion Level 3
Appreciate to mark as solved if the provided solution works.
1. Refer:
https://stackoverflow.com/questions/21905550/groovy-closures-vs-methods-the-difference
2. Use Script Library for reusing. Refer:
https://www.soapui.org/docs/scripting-and-properties/scripting-and-the-script-library/
1. Refer:
https://stackoverflow.com/questions/21905550/groovy-closures-vs-methods-the-difference
2. Use Script Library for reusing. Refer:
https://www.soapui.org/docs/scripting-and-properties/scripting-and-the-script-library/
rajs2020
4 years agoFrequent Contributor
nmrao - Thanks. I was not asking about closures vs functions in general. I was asking why you used closures in your code. If there are reasons for it, then I can do the same in my code.
PS -
As an aside, here is the ReadyAPI docs for Groovy Script Library https://support.smartbear.com/readyapi/docs/testing/scripts/libs/groovy-lib.html
Related Content
- 4 years agokasunrama