定制需求为:
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' ); |