Example #1
0
def caseDep(project):
    project = project.upper()
    handle = apicase.Case(project)
    if request.method == "POST":
        handle.postCaseDep(**request.form)
    caseList = handle.getCaseDep(**request.args)
    return render_template("caseDep.html", project=project, transList=caseList)
Example #2
0
def caseResultDetail(project):
    project = project.upper()
    handle = apicase.Case(project)
    caseList = handle.getCaseLoopResult(**request.args)
    return render_template("caseResultDetail.html",
                           project=project,
                           transList=caseList)
Example #3
0
def caseResultRemove(project):
    project = project.upper()
    handle = apicase.Case(project)
    handle.delCaseResult(**request.form)
    caseList = handle.getCaseResult()
    return render_template("caseResult.html",
                           project=project,
                           transList=caseList)
Example #4
0
def testReport(project):
    project = project.upper()
    handle = apicase.Case(project)
    caseList = handle.getTestReport(**request.args)
    countDict = handle.getCountData(*caseList)
    return render_template("testReport.html",
                           project=project,
                           transList=caseList,
                           infoDict=countDict)