您的位置:软件测试 > 开源软件测试 > 开源测试管理工具 > Testlink
TestLink增加在执行用例界面的历史相关bug功能
作者:网络转载 发布时间:[ 2015/7/1 14:43:31 ] 推荐标签:测试管理工具

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下一页
软件测试工具 | 联系我们 | 投诉建议 | 诚聘英才 | 申请使用列表 | 网站地图
沪ICP备07036474 2003-2017 版权所有 上海泽众软件科技有限公司 Shanghai ZeZhong Software Co.,Ltd