public interface TestCaseLibraryNavigationService extends LibraryNavigationService<org.squashtest.tm.domain.testcase.TestCaseLibrary,org.squashtest.tm.domain.testcase.TestCaseFolder,org.squashtest.tm.domain.testcase.TestCaseLibraryNode>, TestCaseLibraryFinderService
| Modifier and Type | Method and Description |
|---|---|
void |
addTestCaseToFolder(long folderId,
org.squashtest.tm.domain.testcase.TestCase testCase,
Integer position)
Adds a TestCase to a folder.
|
void |
addTestCaseToFolder(long folderId,
org.squashtest.tm.domain.testcase.TestCase testCase,
Map<Long,org.squashtest.tm.domain.customfield.RawValue> customFieldValues,
Integer position,
List<Long> milestoneIds)
Adds a TestCase to a folder, and its initial custom field values.
|
void |
addTestCaseToLibrary(long libraryId,
org.squashtest.tm.domain.testcase.TestCase testCase,
Integer position)
Adds a TestCase to the root of the library.
|
void |
addTestCaseToLibrary(long libraryId,
org.squashtest.tm.domain.testcase.TestCase testCase,
Map<Long,org.squashtest.tm.domain.customfield.RawValue> customFieldValues,
Integer position,
List<Long> milestoneIds)
Adds a TestCase to the root of the Library, and its initial custom field values.
|
List<org.squashtest.tm.domain.testcase.TestCaseLibraryNode> |
copyNodesToFolder(long destinationId,
Long[] sourceNodesIds)
will create a deep copy of the given LibraryNodes, paste them in the destination folder, and return the copies.
|
List<org.squashtest.tm.domain.testcase.TestCaseLibraryNode> |
copyNodesToLibrary(long destinationId,
Long[] targetId)
same, when the destination is a Library.
|
OperationReport |
deleteNodes(List<Long> targetIds)
that method should delete the nodes.
|
File |
exportTestCaseAsExcel(List<Long> libraryIds,
List<Long> nodeIds,
boolean includeCalledTests,
boolean keepRteFormat,
org.springframework.context.MessageSource messageSource)
Will export a selection of test cases as an Excel 2003 (.xls) spreadsheet.
|
List<Long> |
findAllTestCasesLibraryForMilestone(org.squashtest.tm.domain.milestone.Milestone activeMilestone) |
List<Long> |
findAllTestCasesLibraryNodeForMilestone(org.squashtest.tm.domain.milestone.Milestone activeMilestone) |
List<String> |
findNamesInFolderStartingWith(long folderId,
String nameStart) |
List<String> |
findNamesInLibraryStartingWith(long libraryId,
String nameStart) |
List<org.squashtest.tm.domain.testcase.ExportTestCaseData> |
findTestCasesToExport(List<Long> libraryIds,
List<Long> nodeIds,
boolean includeCalledTests)
Will find all test cases in the library and node ids supplied in arguments, and return their
information as a list of ExportTestCaseData
|
List<String> |
getParentNodesAsStringList(Long nodeId) |
ImportSummary |
importZipTestCase(InputStream archiveStream,
long libraryId,
String encoding)
Accepts a stream to a .zip file containing regular folders or excel files and nothing else.
|
Long |
mkdirs(String folderpath)
given a well formed path (starting with /project), creates a folder at this position if the user is allowed to.
|
void |
moveNodesToFolder(long destinationId,
Long[] targetId) |
void |
moveNodesToFolder(long destinationId,
Long[] targetId,
int position) |
void |
moveNodesToLibrary(long destinationId,
Long[] targetId) |
void |
moveNodesToLibrary(long destinationId,
Long[] targetId,
int position) |
ImportLog |
performImportExcelTestCase(File excelFile)
Proceed to an import returns a complete log
for any invalid informations it contains.
|
File |
searchExportTestCaseAsExcel(List<Long> nodeIds,
boolean includeCalledTests,
boolean keepRteFormat,
org.springframework.context.MessageSource messageSource)
Will export a selection of test cases as an Excel 2003 (.xls) spreadsheet.
|
ImportLog |
simulateImportExcelTestCase(File excelFile)
Simulates an import and returns a complete log
for any invalid informations it contains.
|
addFolderToFolder, addFolderToLibrary, findCreatableLibrary, findFolder, findFolderContent, findLibrary, findLibraryOfRootNodeIfExist, findLibraryRootContent, findParentIfExists, simulateDeletioncountSiblingsOfNode, findLinkableTestCaseLibraries, findNodeByPath, findNodeIdByPath, findNodeIdsByPath, findNodesByPath, findTestCaseIdsFromSelection, findTestCaseIdsFromSelection, getPathAsString, getPathsAsString, getStatisticsForSelectionvoid addTestCaseToLibrary(long libraryId,
org.squashtest.tm.domain.testcase.TestCase testCase,
Integer position)
libraryId - testCase - position - if non-null and non-negative, the test case will be inserted at that index.void addTestCaseToLibrary(long libraryId,
org.squashtest.tm.domain.testcase.TestCase testCase,
Map<Long,org.squashtest.tm.domain.customfield.RawValue> customFieldValues,
Integer position,
List<Long> milestoneIds)
CustomField to the values of the corresponding CustomFieldValue.
Read that last sentence again.libraryId - testCase - customFieldValues - position - if non-null and non-negative, the test case will be inserted at that index.milestoneIds - the list of the ids of the milestones the test case must be bound tovoid addTestCaseToFolder(long folderId,
org.squashtest.tm.domain.testcase.TestCase testCase,
Integer position)
libraryId - testCase - position - if non-null and non-negative, the test case will be inserted at that index.void addTestCaseToFolder(long folderId,
org.squashtest.tm.domain.testcase.TestCase testCase,
Map<Long,org.squashtest.tm.domain.customfield.RawValue> customFieldValues,
Integer position,
List<Long> milestoneIds)
CustomField to the values of the corresponding CustomFieldValue.
Read that last sentence again.libraryId - testCase - customFieldValues - Map<String, String||String[]>position - if non-null and non-negative, the test case will be inserted at that index.milestoneIds - the ids of the milestones the test case will be bound toLong mkdirs(String folderpath)
folderpath - ImportSummary importZipTestCase(InputStream archiveStream, long libraryId, String encoding)
archiveStream - libraryId - the identifier of the library we are importing test cases into.encoding - the encodingImportLog simulateImportExcelTestCase(File excelFile)
importZipTestCase(InputStream, long, String)excelFile - ImportLog performImportExcelTestCase(File excelFile)
simulateImportExcelTestCase(File) data are actually processed.
Note that the structure of that
excel file is totally different that the one contained in the zip archive consumed by
importZipTestCase(InputStream, long, String)excelFile - List<org.squashtest.tm.domain.testcase.ExportTestCaseData> findTestCasesToExport(List<Long> libraryIds, List<Long> nodeIds, boolean includeCalledTests)
nodesIds - ids of TestCaseLibraryNodeFile exportTestCaseAsExcel(List<Long> libraryIds, List<Long> nodeIds, boolean includeCalledTests, boolean keepRteFormat, org.springframework.context.MessageSource messageSource)
Will export a selection of test cases as an Excel 2003 (.xls) spreadsheet. The selection consists of :
Last, if the selection have some call steps, the called test case can be included in the export if the parameter includeCalledTests is set to true.
libraryIds - nodeIds - includeCalledTests - File searchExportTestCaseAsExcel(List<Long> nodeIds, boolean includeCalledTests, boolean keepRteFormat, org.springframework.context.MessageSource messageSource)
Will export a selection of test cases as an Excel 2003 (.xls) spreadsheet. The selection consists of :
Last, if the selection have some call steps, the called test case can be included in the export if the parameter includeCalledTests is set to true.
nodeIds - includeCalledTests - List<String> findNamesInFolderStartingWith(long folderId, String nameStart)
List<String> findNamesInLibraryStartingWith(long libraryId, String nameStart)
List<Long> findAllTestCasesLibraryForMilestone(org.squashtest.tm.domain.milestone.Milestone activeMilestone)
List<Long> findAllTestCasesLibraryNodeForMilestone(org.squashtest.tm.domain.milestone.Milestone activeMilestone)
List<org.squashtest.tm.domain.testcase.TestCaseLibraryNode> copyNodesToFolder(long destinationId, Long[] sourceNodesIds)
LibraryNavigationServicecopyNodesToFolder in interface LibraryNavigationService<org.squashtest.tm.domain.testcase.TestCaseLibrary,org.squashtest.tm.domain.testcase.TestCaseFolder,org.squashtest.tm.domain.testcase.TestCaseLibraryNode>destinationId - the id of the folder where you need to copy to.sourceNodesIds - the list of the librarynodes we want copies of.List<org.squashtest.tm.domain.testcase.TestCaseLibraryNode> copyNodesToLibrary(long destinationId, Long[] targetId)
LibraryNavigationServicecopyNodesToLibrary in interface LibraryNavigationService<org.squashtest.tm.domain.testcase.TestCaseLibrary,org.squashtest.tm.domain.testcase.TestCaseFolder,org.squashtest.tm.domain.testcase.TestCaseLibraryNode>destinationId - the id of the library where you need to copy to.targetId - the list of the librarynodes we want copies of.void moveNodesToFolder(long destinationId,
Long[] targetId)
moveNodesToFolder in interface LibraryNavigationService<org.squashtest.tm.domain.testcase.TestCaseLibrary,org.squashtest.tm.domain.testcase.TestCaseFolder,org.squashtest.tm.domain.testcase.TestCaseLibraryNode>void moveNodesToLibrary(long destinationId,
Long[] targetId)
moveNodesToLibrary in interface LibraryNavigationService<org.squashtest.tm.domain.testcase.TestCaseLibrary,org.squashtest.tm.domain.testcase.TestCaseFolder,org.squashtest.tm.domain.testcase.TestCaseLibraryNode>void moveNodesToFolder(long destinationId,
Long[] targetId,
int position)
moveNodesToFolder in interface LibraryNavigationService<org.squashtest.tm.domain.testcase.TestCaseLibrary,org.squashtest.tm.domain.testcase.TestCaseFolder,org.squashtest.tm.domain.testcase.TestCaseLibraryNode>void moveNodesToLibrary(long destinationId,
Long[] targetId,
int position)
moveNodesToLibrary in interface LibraryNavigationService<org.squashtest.tm.domain.testcase.TestCaseLibrary,org.squashtest.tm.domain.testcase.TestCaseFolder,org.squashtest.tm.domain.testcase.TestCaseLibraryNode>OperationReport deleteNodes(List<Long> targetIds)
LibraryNavigationServicedeleteNodes in interface LibraryNavigationService<org.squashtest.tm.domain.testcase.TestCaseLibrary,org.squashtest.tm.domain.testcase.TestCaseFolder,org.squashtest.tm.domain.testcase.TestCaseLibraryNode>Copyright © 2010–2017 Henix, henix.fr. All rights reserved.