In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
The custom requirements are:
1. Add custom fields to the test case
two。 Test case template Custom css style
3. Add test result fields to test execution
Solution method
1. Test case custom fields are added.
Select the custom fields tab in the project page; add custom fields; assign custom fields.
The resulting figure is as follows:
two。 Customization of test execution results:
Take a look at the effect picture first.
The steps are as follows:
First, modify the cfg/const.inc.php
$tlCfg- > results ['status_code'] = array (' failed' = > favored, 'blocked' = >' baked, 'passed' = >' paired, 'not_run' = >' nasty, 'not_available' = >' x', 'unknown' = >' upright, 'all' = >' ajar, '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' = >' 000000009, 'passed' = >' 006400mm, 'failed' = >' B22222Qing, 'blocked' = >' 00008BZ', 'auto_passed' = >' 006400', 'auto_failed' = >' B222222')
Second, add to the custom_config.inc.php
$tlCfg- > results ['status_code'] = array ("failed" = >' fallow, "blocked" = > 'baked "," passed "= >' paired", "not_run" = > 'nasty, "not_available" = >' xtriple, "unknown" = > 'upland, "all" = >' a') "auto_passed" = > 'yearly, "" auto_failed "= >' z') $tlCfg- > results ['status_label'] = array ("passed" = > "test_status_passed", "failed" = > "test_status_failed", "blocked" = > "test_status_blocked", "not_run" = > "test_status_not_run" / / "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 ("passed" = > "test_status_passed", "failed" = > "test_status_failed", "blocked" = > "test_status_blocked", "not_run" = > "test_status_not_run", / / "not_available" = > "test_status_not_available" "auto_passed" = > "test_status_auto_passed", "auto_failed" = > "test_status_auto_failed") $tlCfg- > results ['default_status'] = "not_run"
Once again, modify\ locale\ en_GB\ strings.txt
/ / Status (used wide) $TLS_test_status_all = "All"; $TLS_test_status_any = "Any"; $TLS_test_status_not_run = "Not Run"; $TLS_test_status_blocked = "Blocked"; $TLS_test_status_failed = "Failed"; $TLS_test_status_passed = "Passed"; $TLS_test_status_not_available = "Not Available"; $TLS_test_status_unknown = "Unknown"; $TLS_test_status_auto_failed = "Auto_Failed" $TLS_test_status_auto_passed = "Auto_Passed"
Finally, write your own testlink.css
1.1 copy all directories in default to myTheme
1.2 modify the theme path in config.inc.php
/ * [GUI LAYOUT] * / * * GUI themes (base for CSS and p_w_picpaths)-modify if you create own one * / $tlCfg- > theme_dir = 'gui/themes/myTheme/'
1.3Modification of testlink.css
/ * * Execution & Results * / div.passed, div.failed, div.blocked, div.not_run, div.auto_passed, div.auto_failed {color: white; margin: 8px Padding: 6px; text-align: center;} div.passed {background: # 006400; / * darkgreen * /} div.failed {background: # B222222; / * firebrick (red) * /} div.blocked {background: # 00008B; / * darkblue * /} div.not_run {background: black;} .auto _ passed, div.auto_passed {color: white Background: # 006400; / * darkgreen * /} .auto _ failed, div.auto_failed {color: white; background: # B222222; / * firebrick (red) * /}
3. How to modify the style of a custom test case template
For the time being, there is no way to modify the inherent template and custom field order, or to delete the inherent plate such as summary,keywords.
Currently, you can only remove bold and change padding to 0px by modifying the. custom_fieldxx in testlink.css. It will become a little bit more visible.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.