本文整理汇总了PHP中testplan::setTestResult方法的典型用法代码示例。如果您正苦于以下问题:PHP testplan::setTestResult方法的具体用法?PHP testplan::setTestResult怎么用?PHP testplan::setTestResult使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类testplan
的用法示例。
在下文中一共展示了testplan::setTestResult方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init_args
$tplan_mgr = new testplan($db);
$build_mgr = new build_mgr($db);
$needsave = isset($_GET['save']) ? $_GET['save'] : 0;
$tplanid = isset($_GET['tplanid']) ? $_GET['tplanid'] : 1;
$buildid = isset($_GET['buildid']) ? $_GET['buildid'] : 1;
$deviceid = isset($_GET['deviceid']) ? $_GET['deviceid'] : 1;
$topotype = isset($_GET['topotype']) ? $_GET['topotype'] : 999;
$suite = isset($_GET['suite']) ? $_GET['suite'] : 1;
$gui->saveresult = 2;
if ($needsave == 1) {
$result = isset($_POST['result']) ? $_POST['result'] : 'none';
$result_summary = isset($_POST['result_summary']) ? $_POST['result_summary'] : '';
$reviewer = isset($_POST['reviewer']) ? $_POST['reviewer'] : '';
$review_summary = isset($_POST['review_summary']) ? $_POST['review_summary'] : '';
$result_report = isset($_POST['result_report']) ? $_POST['result_report'] : '';
$gui->saveresult = $tplan_mgr->setTestResult($tplanid, $deviceid, $buildid, $topotype, $suite, $result, $result_summary, $reviewer, $review_summary, $result_report);
}
$gui->reviewers = $tplan_mgr->get_review_users();
$dcnresult = $tplan_mgr->getTestResult($tplanid, $deviceid, $buildid, $topotype, $suite);
$smarty = new TLSmarty();
$smarty->assign('gui', $gui);
$smarty->assign('tplanid', $tplanid);
$smarty->assign('buildid', $buildid);
$smarty->assign('deviceid', $deviceid);
$smarty->assign('topotype', $topotype);
$smarty->assign('suite', $suite);
$smarty->assign('result', $dcnresult);
$smarty->display($templateCfg->template_dir . $templateCfg->default_template);
function init_args()
{
$args = new stdClass();