您的位置:軟件測試 > 開源軟件測試 > 開源測試管理工具 > Testlink
TestLink增加在執(zhí)行用例界面的歷史相關(guān)bug功能
作者:網(wǎng)絡轉(zhuǎn)載 發(fā)布時間:[ 2015/7/1 14:43:31 ] 推薦標簽:測試管理工具

  在之前配置TestLink的過程中,考慮在執(zhí)行的過程中,顯示該用例關(guān)聯(lián)過的缺陷,作為測試執(zhí)行參考,需要在execSetResults.php里面增加部分代碼,代碼如下:
//blew function is added by hengleiwang 2013/3/21
/*
Add this function to list all of them bugs that have been related to this testcases
*/
function exec_get_testcase_related_bugs(&$db,&$bug_interface,$tcversionSet)
{
$bugs = null;
$bugs = get_bugs_for_testcase($db,$bug_interface,$tcversionSet);
return $bugs;
}
$gui->case_related_bug = exec_get_testcase_related_bugs($db,$g_bugInterface,$gui->tcversionSet);
if (count($gui->case_related_bug) == 0)
{
$gui->case_related_bug = null;
}
inc_exec_controls.tpl
{*input the code here for test cases related bugs;*---by henrywang}
{* Execution Bugs (if any) *}
{if isset($gui->case_related_bug)}
<div class="exec_history_title">
關(guān)聯(lián)到這個用例的缺陷
</div>
<table style="width:95%;">
<tr style="background-color: {$bg_color}" >
<td colspan="{$my_colspan}" style="align:center;">
{*BUGID 3587*}
{include file="inc_show_bug_table_without_del.tpl"
bugs_map=$gui->case_related_bug
}
</td>
</tr>
{/if}
</table>
{*end the input*------by henrywang}
inc_show_bug_table_without_del.tpl
{*
Testlink Open Source Project - http://testlink.sourceforge.net/
$Id: inc_show_bug_table.tpl,v 1.10 2010/07/09 11:41:15 mx-julian Exp $
rev :
20100709 - Julian - show greyed delete icon if delete is not allowed
20070304 - franciscom - added single quotes on bug_id on deleteBug_onClick() call

上一頁12下一頁
軟件測試工具 | 聯(lián)系我們 | 投訴建議 | 誠聘英才 | 申請使用列表 | 網(wǎng)站地圖
滬ICP備07036474 2003-2017 版權(quán)所有 上海澤眾軟件科技有限公司 Shanghai ZeZhong Software Co.,Ltd