Add new Endpoint variable in environment using groovy
Hi,
I'm using ReadyApi 3.51.0 and I'm trying to add a new Rest Endpoint in an existing environment.
I have an environment "A" without any properties and I have added a Rest service into the same ReadyApi project. How can I add an Endpoint variable into the environment using groovy.
I've found how to change an existing one (ReadyApi FAQ, see topic: To change an Endpoint value in an Environment, use this script)
But that only works when there is alreay an endpoint available.
Somebody else asked it before 9 years ago: https://community.smartbear.com/discussions/readyapi-questions/how-to-set-soap-and-rest-service-endpoint-into-environments-from-groovy/105077
but without a clear solution, and in my case I already have an Rest service added to the project.
Anyone an idea how to handle this in groovy?
regards.