def getRequirement(self, name=None, **params): """Returns all Requirements specified by paramaters @param name: The title of the wanted Requirements @type name: str @returns: Matching Requirements @rtype: list """ return normalize_list([r for r in self.iterRequirement(name, **params)])
def getRequirementSpecification(self, name=None, recursive=False, **params): """Returns all Requirement Specifications specified by parameters @param name: The title of the wanted Requirement Specification @type name: str @returns: Matching Requirement Specifications @rtype: list """ return normalize_list([r for r in self.iterRequirementSpecification(name, recursive, **params)])
def getTestCase(self, **params): """Returns all TestCases specified by parameters @param id: The internal ID of the TestCase @type id: int @returns: Matching TestCases @rtype: mixed """ return normalize_list([c for c in self.iterTestCase(**params)])
def getRisk(self, name=None, **params): """Returns all Risks with the specified parameters @param name: The name of the Risk @type name: str @returns: Matching Risks @rtype: mixed """ return normalize_list([r for r in self.iterRisk(name, **params)])
def getTestPlan(self, name=None, **params): """Returns all TestPlans specified by parameters @param name: The name of the TestPlan @type name: str @param params: Other params for TestPlan @type params: dict @returns: Matching TestPlans @rtype: mixed """ return normalize_list([p for p in self.iterTestPlan(name, **params)])
def getBuild(self, name=None, **params): """Returns all Builds specified by parameters @param name: The name of the Build @type name: str @param params: Other params for Build @type params: dict @returns: Macthing Builds @rtype: mixed """ return normalize_list([b for b in self.iterBuild(name, **params)])
def getPlatform(self, name=None, **params): """Returns all Platforms specified by parameters @param name: The name of the Platform @type name: str @param params: Other params for Platform @type params: dict @returns: Matching Platforms @rtype: mixed """ return normalize_list([p for p in self.iterPlatform(name, **params)])
def getTestCase(self, name=None, **params): """Returns all TestCases specified by parameters @param name: The name of the wanted TestCase @type name: str @param params: Other params for TestCase @type params: dict @returns: Matching TestCases @rtype: mixed """ return normalize_list([c for c in self.iterTestCase(name, **params)])
def getRequirementSpecification(self, name=None, recursive=False, **params): """Returns all Requirement Specifications specified by parameters @param name: The name of the Requirement Specification @type name: str @param recursive: Search recursive to get all nested Requirement Specifications @type recursive: bool @returns: Matching Requirement Specifications @rtype: mixed """ return normalize_list([r for r in self.iterRequirementSpecification(name, recursive, **params)])
def getCoverage(self, testplan=None, platform=None): """Returns Requirement Coverage within the specified context @param testplan: <OPTIONAL> Regard coverage within this testplan @type testplan: TestPlan @param platform: <OPTIONAL> Regard coverage within this platform @type platform: Platform @returns: TestCases covering this Requirement within the given context @rtype: mixed """ return normalize_list( [c for c in self.iterCoverage(testplan, platform)])
def getTestSuite(self, name=None, recursive=True, **params): """Returns all TestSuites specified by parameters @param name: The name of the wanted TestSuite @type name: str @param recursive: Search recursive to get all nested TestSuites @type recursive: bool @param params: Other params for TestSuite @type params: dict @returns: Matching TestSuites @rtype: mixed """ return normalize_list([s for s in self.iterTestSuite(name, recursive, **params)])
def getTestCase( self,\ name=None,\ buildid=None,\ keywordid=None,\ keywords=None,\ executed=None,\ assigned_to=None,\ execution_type=None,\ **params ): """Returns all Testcases specified by parameters @param name: The name of the TestCase @type name: str @param id: The internal ID of the TestCase @type id: int @param buildid: The internal ID of the Build @type buildid: int @param keywordid: The internal ID of the used Keyword @type keywordid: int @param keywords: Keywords to filter for @type keywords: list @param executed: Checks if TestCase is executed @type executed: bool @param assigned_to: Filter by internal ID of assigned Tester @type assigned_to: int @param execution_type: Filter by execution type @type execution_type: ExecutionType @param params: Other params for TestCase @type params: dict @returns: Matching TestCases @rtype: mixed """ return normalize_list([ c for c in self.iterTestCase(name, buildid, keywordid, keywords, executed, assigned_to, execution_type, **params) ])
def getTestCase(self, **params): """Returns all TestCases specified by parameters @returns: Matching TestCases @rtype: mixed """ return normalize_list([c for c in self.iterTestCase(**params)])
def getAttachment(self, **params): """Return all TestlinkObject's attachments specified by parameters @returns: Matching Attachments @rtype: mixed """ return normalize_list([p for p in self.iterAttachment(**params)])