コード例 #1
0
def generate(program_run_ids):
    __prepare(program_run_ids)

    program_runs = {}
    for program_run_id in program_run_ids:
        program_report.generate_for_completed(program_run_id) # recreate reports
        program_runs[program_run_id] = program_report.get_run_data(program_run_id)

    __create_page(program_runs)
コード例 #2
0
def generate(program_run_ids):
    __prepare(program_run_ids)

    program_runs = {}
    for program_run_id in program_run_ids:
        program_report.generate_for_completed(
            program_run_id)  # recreate reports
        program_runs[program_run_id] = program_report.get_run_data(
            program_run_id)

    __create_page(program_runs)
コード例 #3
0
ファイル: command.py プロジェクト: schibsted/overloadimpact
def program_reportcmd(action, program_run_id):
    if not paths.suite_defined(): return # cannot run without project env defined
    import program_report
    import combined_programs_report
    if action == "running":
        program_report.generate_for_running(program_run_id)
    elif action == "completed":
        program_report.generate_for_completed(program_run_id)
    elif action == "combine":
        combined_programs_report.generate(program_run_id.split(','))
    else:
        program_report.list_runs()
        print("Generate the report with: oimp report program [running/completed/combine] [program_run_name(s)]")
コード例 #4
0
def program_reportcmd(action, program_run_id):
    if not paths.suite_defined():
        return  # cannot run without project env defined
    import program_report
    import combined_programs_report
    if action == "running":
        program_report.generate_for_running(program_run_id)
    elif action == "completed":
        program_report.generate_for_completed(program_run_id)
    elif action == "combine":
        combined_programs_report.generate(program_run_id.split(','))
    else:
        program_report.list_runs()
        print(
            "Generate the report with: oimp report program [running/completed/combine] [program_run_name(s)]"
        )