cancel
Showing results for 
Search instead for 
Did you mean: 

Create REST Project in groovy script

Highlighted
Occasional Contributor

Create REST Project in groovy script

Hello you all,


With the groovy script, I have this code which I use to create a soap project by importing a wsdl file.

 

import com.eviware.soapui.impl.wsdl.*
import com.eviware.soapui.impl.WsdlInterfaceFactory

String projectName = "muProject"
String wsdlFile = "path to wsdl" def currentProject = testRunner.testCase.testSuite.project WsdlProject project = currentProject.getWorkspace().createProject(projectName, new File("C:\\Temp\\" + projectName + ".xml")); def iface=WsdlInterfaceFactory.importWsdl(project, wsdlFile, true)[0]

This works fine.

What I need is doing the same thing with REST services by importing the swegger file.

Is there any library, import, function...etc to do that ?

 

Thank you.

Watch a Video Interview
Top Kudoed Authors
Are You In?

Meet the Community Leaders!

SmartBear Connect is an excellent opportunity for training, in-person support, and networking.

GET YOUR TICKET WITH $100 OFF