1. Testlink提交BUG到mantis方式简化
1.1. Testlink提交BUG链接修改
1.1.1. 执行用例时,提交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关联 *}
{* <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参数传入
修改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关联-->
<input type="hidden" name="exec_id" value="<?php echo $_GET["exec_id"]; ?>" />
<!--***********************************************************--><?php echo lang_get( 'enter_report_details_title' ) ?>
</td>
</tr>