How to run rest requests dynamically using groovy
My requirement is to run rest get and post methods requests dynamically using groovy.
I have some rest templates in one test case lets say A and have one template placed in other test case lets say B. All i want is want to copy the endpoint/resource and parameters of the rest templates one by one placed under A test case and paste it in to the B test case rest template and run it.
Can anyone help here with sample groovy?