public class CompositeProjects extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT_ORDER_FILENAME |
static String |
PROJECT_CONTENT_FILENAME |
static String |
REPORTS_FOLDER_NAME |
static String |
SETTINGS_XML_FILENAME |
Constructor and Description |
---|
CompositeProjects() |
Modifier and Type | Method and Description |
---|---|
static boolean |
deleteModelItemFile(com.eviware.soapui.model.support.AbstractModelItem modelItem) |
static String |
getFileNameForModelItem(com.eviware.soapui.model.ModelItem modelItem)
Creates a file name with which model item should be saved
|
static File |
getModelItemFile(com.eviware.soapui.model.ModelItem modelItem)
Creates path for the modelItem to be saved and returns a java.io.File with that path
|
static long |
getSize(File projectDirectory)
Calculates composite project size
|
static boolean |
isComposite(String path)
Figures out whether given path belongs to composite project or not
|
static InputStream |
loadCompositeProjectFile(File projectDirectory)
Creates input stream for the provided file
|
static com.eviware.soapui.config.MockOperationConfig |
loadMockOperation(String projectPath,
com.eviware.soapui.impl.wsdl.mock.WsdlMockService service,
com.eviware.soapui.impl.wsdl.mock.WsdlMockOperation mockOperation)
Loads Mock operation config from file for the provided mock operation
|
static com.eviware.soapui.config.OperationConfig |
loadOperation(String projectPath,
com.eviware.soapui.impl.wsdl.WsdlInterface serviceInterface,
com.eviware.soapui.impl.wsdl.WsdlOperation operation)
Load operation config from file
|
static com.eviware.soapui.config.TestCaseConfig |
loadTestCase(com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase testCase)
Loads test case config from file
|
static void |
saveMockOperation(com.eviware.soapui.impl.wsdl.mock.WsdlMockOperation mockOperation)
Saves the give operation to a file
|
static void |
saveOperation(com.eviware.soapui.model.iface.Operation operation)
Saves an operation to a file
|
static void |
saveTestCase(com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase testCase)
Saves a test case to a file
|
public static final String PROJECT_CONTENT_FILENAME
public static final String SETTINGS_XML_FILENAME
public static final String ELEMENT_ORDER_FILENAME
public static final String REPORTS_FOLDER_NAME
public static File getModelItemFile(com.eviware.soapui.model.ModelItem modelItem)
modelItem
- model item for which file should be identifiedpublic static String getFileNameForModelItem(com.eviware.soapui.model.ModelItem modelItem)
modelItem
- model item for which file should be identifiedpublic static boolean isComposite(String path)
path
- root directory or the file where project is savedpublic static InputStream loadCompositeProjectFile(File projectDirectory)
projectDirectory
- directory from where project should be loadedpublic static long getSize(File projectDirectory)
projectDirectory
- directory where project is savedpublic static com.eviware.soapui.config.TestCaseConfig loadTestCase(com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase testCase)
testCase
- test case for which config is to be loadedpublic static com.eviware.soapui.config.MockOperationConfig loadMockOperation(String projectPath, com.eviware.soapui.impl.wsdl.mock.WsdlMockService service, com.eviware.soapui.impl.wsdl.mock.WsdlMockOperation mockOperation)
projectPath
- root directory for composite projectservice
- mock service which contains the mock operationmockOperation
- mock operation for which config is to be loadedpublic static com.eviware.soapui.config.OperationConfig loadOperation(String projectPath, com.eviware.soapui.impl.wsdl.WsdlInterface serviceInterface, com.eviware.soapui.impl.wsdl.WsdlOperation operation)
projectPath
- root directory for composite projectserviceInterface
- service which contains the operationoperation
- operation for which config is to be loadedpublic static void saveMockOperation(com.eviware.soapui.impl.wsdl.mock.WsdlMockOperation mockOperation) throws IOException
mockOperation
- Mock operation to be savedIOException
public static void saveOperation(com.eviware.soapui.model.iface.Operation operation) throws IOException
operation
- operation to be savedIOException
public static void saveTestCase(com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase testCase) throws IOException
testCase
- test case to be savedIOException
public static boolean deleteModelItemFile(com.eviware.soapui.model.support.AbstractModelItem modelItem)
Copyright © 2019. All rights reserved.