public interface TestCaseLibraryFinderService
| Modifier and Type | Method and Description |
|---|---|
int |
countSiblingsOfNode(long nodeId)
returns how many nodes belongs to the same collection of the node being referenced by this id (this node is included in the count).
|
List<org.squashtest.tm.domain.testcase.TestCaseLibrary> |
findLinkableTestCaseLibraries()
Returns the collection of
TestCaseLibrarys which TestCases can be linked by a TestCase via a
CallTestStep |
org.squashtest.tm.domain.testcase.TestCaseLibraryNode |
findNodeByPath(String path)
Same than above, but for one path only.
|
Long |
findNodeIdByPath(String path)
Same as
findNodeIdsByPath(List), for one test case only. |
List<Long> |
findNodeIdsByPath(List<String> path)
Given a list of paths of library NODE, return the ids of those nodes.
|
List<org.squashtest.tm.domain.testcase.TestCaseLibraryNode> |
findNodesByPath(List<String> path)
Same than above, but returns the entities instead.
|
Collection<Long> |
findTestCaseIdsFromSelection(Collection<Long> libraryIds,
Collection<Long> nodeIds)
same as
findTestCaseIdsFromSelection(Collection, Collection), with includedCalledTests = false |
Collection<Long> |
findTestCaseIdsFromSelection(Collection<Long> libraryIds,
Collection<Long> nodeIds,
boolean includeCalledTests)
Passing the ids of some selected TestCaseLibrary and TestCaseLibraryNodes (in separate collections), will return
the ids of the TestCases encompassed by this selection.
|
String |
getPathAsString(long entityId)
Returns the path of a TestCaseLibraryNode given its id.
|
List<String> |
getPathsAsString(List<Long> ids)
Given a list of ids of library NODE, return the path of those nodes.
|
TestCaseStatisticsBundle |
getStatisticsForSelection(Collection<Long> libraryIds,
Collection<Long> nodeIds)
Passing the ids of some selected TestCaseLibrary and TestCaseLibraryNodes (in separate collections), will return
the statistics covering all the TestCases encompassed by this selection.
|
List<org.squashtest.tm.domain.testcase.TestCaseLibrary> findLinkableTestCaseLibraries()
TestCaseLibrarys which TestCases can be linked by a TestCase via a
CallTestStepString getPathAsString(long entityId)
entityId - the id of the node.List<String> getPathsAsString(List<Long> ids)
Given a list of ids of library NODE, return the path of those nodes. The path starts with /<projectname>. The path is slash-separated '/'. If one of the elements in the path uses a '/', it will be escaped as '\/'.
The order of the result is consistent with the order of the input. If an element could not be found (an invalid id for instance), the corresponding path in the result is NULL.
ids - List<Long> findNodeIdsByPath(List<String> path)
Given a list of paths of library NODE, return the ids of those nodes. The path starts with /<projectname>.
Like in getPathsAsString(List) a path is slash-separated '/', but this time names containing a '/' don't
need escaping (you may use escaped or unescaped names as will).
The order of the result is consistent with the order of the input. If an element could not be found (an invalid path for instance), the corresponding id in the result is NULL.
path - Long findNodeIdByPath(String path)
findNodeIdsByPath(List), for one test case only.path - nullList<org.squashtest.tm.domain.testcase.TestCaseLibraryNode> findNodesByPath(List<String> path)
path - org.squashtest.tm.domain.testcase.TestCaseLibraryNode findNodeByPath(String path)
path - nullTestCaseStatisticsBundle getStatisticsForSelection(Collection<Long> libraryIds, Collection<Long> nodeIds)
libraryIds - nodeIds - Collection<Long> findTestCaseIdsFromSelection(Collection<Long> libraryIds, Collection<Long> nodeIds, boolean includeCalledTests)
libraryIds - nodeIds - includeCalledTests - Collection<Long> findTestCaseIdsFromSelection(Collection<Long> libraryIds, Collection<Long> nodeIds)
findTestCaseIdsFromSelection(Collection, Collection), with includedCalledTests = falselibraryIds - nodeIds - int countSiblingsOfNode(long nodeId)
testCaseId - Copyright © 2010–2017 Henix, henix.fr. All rights reserved.