示例#1
0
def testcaseVariationExpectedCount(modelTestcaseVariation, *args, **kwargs):
    try:
        return int(
            descendantAttr(modelTestcaseVariation, None, "error", "count"))
    except (ValueError, TypeError):
        pass
    return None
示例#2
0
def testcaseVariationExpectedCount(modelTestcaseVariation):
    try:
        return int(descendantAttr(modelTestcaseVariation, None, "error", "count"))
    except (ValueError, TypeError):
        pass
    return None
示例#3
0
def testcaseVariationExpectedSeverity(modelTestcaseVariation, *args, **kwargs):
    _severity = descendantAttr(modelTestcaseVariation, None, "error",
                               "severity")
    if _severity is not None:
        return _severity.upper()
    return None
示例#4
0
def testcaseVariationExpectedSeverity(modelTestcaseVariation):
    _severity = descendantAttr(modelTestcaseVariation, None, "error", "severity")
    if _severity is not None:
        return _severity.upper()
    return None