Forum Discussion
aaronpliu
7 years agoFrequent Contributor
not sure if you would like to encapsulated your groovy script into a class or method.
why not you put your groovy code into a .groovy file? ReadyAPI points to script library(./script) by default, you're able to put your code there. also you can specify a folder to save scripts and then change your script library path setting.
Surely, defined a class for reference or defined a method to call.
(example)
Login.groovy (you may new a object like: def login = new Login())
/myTest/Login.groovy (you may new a object like: def login = myTest.Login())
Related Content
- 8 years ago
- 3 years ago
- 8 years ago
- 5 years ago
Recent Discussions
- 22 days ago