Exemple #1
0
$start_time = time();
show_start($start_time);
$test_cnt = count($test_files);
$test_idx = 0;
run_all_tests($test_files, $environment);
$end_time = time();
if ($failed_tests_file) {
    fclose($failed_tests_file);
}
// Summarize results
if (0 == count($test_results)) {
    echo "No tests were run.\n";
    return;
}
compute_summary();
show_end($end_time);
show_summary();
if ($html_output) {
    fclose($html_file);
}
save_or_mail_results();
if (getenv('REPORT_EXIT_STATUS') == 1 and $sum_results['FAILED']) {
    exit(1);
}
exit(0);
//
// Send Email to QA Team
//
function mail_qa_team($data, $compression, $status = false)
{
    $url_bits = parse_url(QA_SUBMISSION_PAGE);
Exemple #2
0
            $date = explode("-", $data[1]);
            $result = $db->query("select 1 from Notes");
            //create notes table
            if ($result == false) {
                $db->query("create table Notes (psid int not null, year int not null, month int not null, day int not null, hour int not null, min int not null , second int not null)");
            }
            $db->query("insert into Notes values( '{$data['0']}', '{$date['0']}', '{$date['1']}', '{$date['2']}', '{$date['3']}', '{$date['4']}', '{$date['5']}')");
            $fp = fopen("notes/{$fileName}", "a");
            // Open file for writing
            fwrite($fp, "{$stringVal}\n");
            fclose($fp);
            echo "Note has been logged.<br/>";
        } else {
            echo "No message received.<br/>";
        }
        $_SESSION['option'] = "studentinfo";
        ?>
			<form name = "infoform"
					action = "Assignment2.php"
					method = "POST">
				<input type="hidden" name="psid" value="$studentPsid">
				<input type="submit" value ="Back to Student Info">
			</form>
		<?php 
    }
} else {
    $_SESSION['option'] = 'logging_in';
    show_header();
    get_info();
    show_end();
}