1. Testlink提交BUG到mantis方式簡化
1.1. Testlink提交BUG鏈接修改
1.1.1. 執(zhí)行用例時,提交BUG的窗口鏈接修改為鏈接到mantis提交問題的頁面
修改testlinkgui emplatesexecuteinc_exec_show_tc_exec.tpl
如下:
{if $tc_old_exec.build_is_open}
<a href="javascript.:open_bug_add_window({$gui->tproject_id},{$tc_old_exec.id},{$tc_old_exec.execution_id},'link')">
=》
{if $tc_old_exec.build_is_open}
{* 2013-01-06 luly 增加BUG時,進行testlink關(guān)聯(lián) *}
{* <a href="javascript.:open_bug_add_window({$gui->tproject_id},{$tc_old_exec.id},{$tc_old_exec.execution_id},'link')"> *}
<a href="http://192.168.134.120/mantis/bug_report_page.php?exec_id={$tc_old_exec.execution_id}" target='_blank'>
{* *********************************************************** *}
1.1.2. mantis 提交bug的時候判斷是否有exec_id參數(shù)傳入
修改mantisug_report_page.php
<input type="hidden" name="project_id" value="<?php echo $t_project_id ?>" />后增加一行:
<input type="hidden" name="exec_id" value="<?php echo $_GET["exec_id"]; ?>" />
如下:
<tr>
<td class="form-title" colspan="2">
<input type="hidden" name="m_id" value="<?php echo $f_master_bug_id ?>" />
<input type="hidden" name="project_id" value="<?php echo $t_project_id ?>" />
<?php echo lang_get( 'enter_report_details_title' ) ?>
</td>
</tr>
=》
<tr>
<td class="form-title" colspan="2">
<input type="hidden" name="m_id" value="<?php echo $f_master_bug_id ?>" />
<input type="hidden" name="project_id" value="<?php echo $t_project_id ?>" />
<!--2013-01-06 luly 增加BUG時,進行testlink關(guān)聯(lián)-->
<input type="hidden" name="exec_id" value="<?php echo $_GET["exec_id"]; ?>" />
<!--***********************************************************--><?php echo lang_get( 'enter_report_details_title' ) ?>
</td>
</tr>