Example #1
0
function record()
{
    $kissList = interXML(false);
    if (sizeof($kissList) > 0) {
        //针对kissList过滤,移除全部正确用例
        $html = geneHTML($kissList);
        //        echo $html;
        $report = ConfigTest::$testdir . 'report/report.html';
        $handle = fopen("{$report}", "w");
        fwrite($handle, $html);
        fclose($handle);
        //        require_once 'geneHistory.php';
        //        geneHistory($html);
    }
}
Example #2
0
function record()
{
    //    require_once 'geneXML.php';
    /*如果全部运行完毕,发送邮件*/
    $kissList = interXML(false);
    require_once 'geneHTML.php';
    if (sizeof($kissList) > 0) {
        //针对kissList过滤,移除全部正确用例
        $html = geneHTML($kissList);
        $report = 'report.html';
        $handle = fopen("{$report}", "w");
        fwrite($handle, $html);
        fclose($handle);
        //        require_once 'geneHistory.php';
        //        geneHistory($html);
    }
}
Example #3
0
<?php

require_once 'geneXML.php';
generateXML($_POST, $_SERVER);
/*如果全部运行完毕,发送邮件*/
$kissList = interXML(true);
require_once 'geneHTML.php';
if (sizeof($kissList) > 0) {
    //针对kissList过滤,移除全部正确用例
    $html = geneHTML($kissList);
    echo $html;
    require_once 'geneHistory.php';
    geneHistory($html);
    if (!Config::$DEBUG) {
        $_mails = explode('mail=', $_POST['config']);
        if (sizeof($_mails) == 2) {
            require_once 'smail.php';
            sendmail($html, true);
        }
        require_once 'config.php';
        Config::StopAll();
    }
}