jcomber
2 years agoOccasional Contributor
Trying to restart docker images from ReadyAPI Groovy script
Is it possible to have a Groovy script within a ReadyAPI test suite that will restart docker image(s)? I have an existing Groovy script that works but copying/pasting into a ReadyAPI Groovy script test step doesn't seem to work. Am I expecting functionality from ReadyAPI that isn't supported with Groovy? If it's possible to attain this, how is it done - not finding much information online.
don't give it up; running docker from a Groovy script works; I just tried it in my ReadyAPI (see screenshot below).
There has to be some issue in your environment; try executing other commands, logging your PATH variable, etc., to debug the issue. Let us know then what the issue was.