Testlink根据需求定制

发表于:2015-9-25 13:22

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:baigungun    来源:51Testing软件测试网采编

#
JIRA
#
Jira
分享:
  定制需求为:
  1.在测试用例中添加自定义字段
  2.测试用例模板自定义css样式
  3.在测试执行中增加测试结果字段
  解决方式
  1.测试用例自定义字段添加。
  在project页面中选定custom fields选项卡;增加自定义字段;指派自定义字段。
  结果图如下所示:
  2.测试执行结果定制:
  先看看效果图
  操作步骤如下:
  首先,修改cfg/const.inc.php
$tlCfg->results['status_code'] = array (
'failed'        => 'f',
'blocked'       => 'b',
'passed'        => 'p',
'not_run'       => 'n',
'not_available' => 'x',
'unknown'       => 'u',
'all'           => 'a',
'auto_passed'   => 'y',
'auto_failed'   => 'z'
);
$tlCfg->results['status_label'] = array(
'not_run'          => 'test_status_not_run',
'passed'           => 'test_status_passed',
'failed'           => 'test_status_failed',
'blocked'          => 'test_status_blocked',
//    'all'              => 'test_status_all_status',
//    'not_available' => 'test_status_not_available',
//    'unknown'       => 'test_status_unknown'
'auto_passed'      => 'test_status_auto_passed',
'auto_failed'      => 'test_status_auto_failed'
);
$tlCfg->results['status_label_for_exec_ui'] = array(
'not_run'          => 'test_status_not_run',
'passed'          => 'test_status_passed',
'failed'          => 'test_status_failed',
'blocked'         => 'test_status_blocked',
'auto_passed'      => 'test_status_auto_passed',
'auto_failed'      => 'test_status_auto_failed'
);
$tlCfg->results['charts']['status_colour'] = array(
'not_run'          => '000000',
'passed'           => '006400',
'failed'           => 'B22222',
'blocked'          => '00008B',
'auto_passed'   => '006400',
'auto_failed'   => 'B22222'
);
21/212>
《2023软件测试行业现状调查报告》独家发布~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号