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

message improvement
added title on delete image.
*}
{* -------------------------------------------------------------------------------------- *}
{* Manage missing arguments                                                               *}
{if !isset($tableClassName) }
{assign var="tableClassName"  value="simple"}
{/if}
{if !isset($tableStyles) }
{assign var="tableStyles"  value="font-size:12px"}
{/if}
{* -------------------------------------------------------------------------------------- *}
<table class="simple">
<tr>
<th style="text-align:left">{lang_get s='build'}</th>
<th style="text-align:left">{lang_get s='caption_bugtable'}</th>
<th style="text-align:left">&nbsp;</th>
</tr>
{foreach from=$bugs_map key=bug_id item=bug_elem}
<tr>
<td>{$bug_elem.build_name|escape}</td>
<td>{$bug_elem.link_to_bts}</td>
</tr>
{/foreach}
</table>
exec.inc.php
/*
* get bugs for the testcase
* added by hengleiwang 2013/3/21
*/
function get_bugs_for_testcase($db,&$bug_interface,$tcversionSet)
{
$tables['execution_bugs'] = DB_TABLE_PREFIX . 'execution_bugs';
$tables['executions'] = DB_TABLE_PREFIX . 'executions';
$tables['builds'] = DB_TABLE_PREFIX . 'builds';
$bug_list=array();
$sql = "SELECT bug_id,builds.name AS build_name " .
"FROM {$tables['execution_bugs']}, {$tables['executions']} executions, " .
" {$tables['builds']} builds ".
"WHERE executions.tcversion_id ={$tcversionSet} " .
"AND   execution_id=executions.id " .
"AND   executions.build_id=builds.id " .
"ORDER BY builds.name,bug_id";
$map = $db->get_recordset($sql);
// BUGID 3440 - added is_object() check
if( !is_null($map) && is_object($bug_interface))
{
foreach($map as $elem)
{
$bug_list[$elem['bug_id']]['link_to_bts'] = $bug_interface->buildViewBugLink($elem['bug_id'],GET_BUG_SUMMARY);
$bug_list[$elem['bug_id']]['build_name'] = $elem['build_name'];
}
}
return($bug_list);
}

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