SiRazoR
6 years agoNew Contributor
Cloning mock service
Hey, I have a question that I have searched for everywhere and didnt found answer. My task is to create script in groovy that will clone mockService to different project, set different ports etc ... ...
- 6 years ago
Finally, I found the sollution on smartBear api docs . There was something like CloneMockServiceAction.
cloneToAnotherProject(WsdlMockService mockService, String name, WsdlProject targetProject, String description)
which description seems deprecated because current parameters are different ->cloneToAnotherProject(WsdlMockService mockService, String targetProjectName, String name, String description)
To solve my problem I used same method that cloneToAnotherProject used inside and i did this on target Project object
importMockService(WsdlMockService mockService, String name, boolean createCopy, String description)