Beispiel #1
0
def results(device_sno=None):
    # Presently only supports getting the latest result. A way to allow
    # any result to be retrieved would be nice.
    if device_sno is None:
        docs = dxtesting.get_all_test_reports()
        stage = {
            'docs':
            docs,
            'crumbroot':
            '/testing',
            'breadcrumbs': [
                Crumb(name="Testing", path=""),
                Crumb(name="Results", path="result/")
            ],
        }
        return render_template('test_results.html',
                               stage=stage,
                               pagetitle="All Test Results")
    else:
        docs = dxtesting.get_latest_test_report(device_sno)
        stage = {
            'docs':
            docs,
            'crumbroot':
            '/testing',
            'breadcrumbs': [
                Crumb(name="Testing", path=""),
                Crumb(name="Reports", path="result/"),
                Crumb(name=device_sno, path="result/" + device_sno)
            ],  # noqa
        }
        stage.update(get_test_report(serialno=device_sno))
        return render_template('test_result_detail.html',
                               stage=stage,
                               pagetitle=device_sno + " Test Result")
Beispiel #2
0
def main():
    latest = dxtesting.get_all_test_reports(limit=5)
    stage = {'latest': latest,
             'crumbroot': '/testing',
             'breadcrumbs': [Crumb(name="Testing", path="")],
             }
    return render_template('testing_main.html', stage=stage,
                           pagetitle='Testing')
Beispiel #3
0
def main():
    latest = dxtesting.get_all_test_reports(limit=5)
    stage = {
        'latest': latest,
        'crumbroot': '/testing',
        'breadcrumbs': [Crumb(name="Testing", path="")],
    }
    return render_template('testing_main.html',
                           stage=stage,
                           pagetitle='Testing')
Beispiel #4
0
def results(device_sno=None):
    # Presently only supports getting the latest result. A way to allow
    # any result to be retrieved would be nice.
    if device_sno is None:
        docs = dxtesting.get_all_test_reports()
        stage = {'docs': docs,
                 'crumbroot': '/testing',
                 'breadcrumbs': [Crumb(name="Testing", path=""),
                                 Crumb(name="Results", path="result/")],
                 }
        return render_template('test_results.html', stage=stage,
                               pagetitle="All Test Results")
    else:
        docs = dxtesting.get_latest_test_report(device_sno)
        stage = {'docs': docs,
                 'crumbroot': '/testing',
                 'breadcrumbs': [Crumb(name="Testing", path=""),
                                 Crumb(name="Reports", path="result/"),
                                 Crumb(name=device_sno, path="result/" + device_sno)],  # noqa
                 }
        stage.update(get_test_report(serialno=device_sno))
        return render_template('test_result_detail.html', stage=stage,
                               pagetitle=device_sno + " Test Result")