????λ?????????? >> ??????????
???????TestLink???????
???????????? ???????[ 2014/8/4 11:53:23 ] ????????bug TestLink ???????
??????????
????var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py
????var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | php
??????FCKeditor/editor/filemanager/browser/default/connectors/php/config.php
?????????????????‘connector’?????true??
????$Config['Enabled'] = true ;
??????????testlink?????????????????TestLink_upload?????????????????б???????д?????????????????
????1.??? hird_partyfckeditorfckconfig.js????????php??
???????// FCKConfig.ProtectedSource.Add( /< [sS]* >/g ) ; // PHP style. server side code?????
??????var _FileBrowserLanguage = ‘asp’ ; // asp | aspx | cfm | lasso | perl | php | py
????var _QuickUploadLanguage = ‘asp’ ; // asp | aspx | cfm | lasso | php
?????????asp?????php
????2.??? hird_partyfckeditoreditorfilemanagerrowserdefaultconnectorsphpconfig.php
????$Config['Enabled'] = false ;
???????$Config['Enabled'] = true ;
????$Config['UserFilesPath'] = '/userfiles/' ;
???????$Config['UserFilesPath'] = 'TestLink_upload/' ;
????$Config['UserFilesAbsolutePath'] = '' ;
???????$Config['UserFilesAbsolutePath'] = 'C:\www\testlink\TestLink_upload\' ;
????3.??? hird_partyfckeditoreditorfilemanageruploadphpconfig.php
????$Config['Enabled'] = false ;
???????$Config['Enabled'] = true ;
????$Config['UserFilesPath'] = '/userfiles/' ;
???????$Config['UserFilesPath'] = 'TestLink_upload/' ;
????$Config['UserFilesAbsolutePath'] = '' ;
???????$Config['UserFilesAbsolutePath'] = 'C:\www\testlink\TestLink_upload\' ;
????4. ?????????1-2С????????Ч??(??????????????apache??????????????Ч?????????2?ζ??????)????????鷢???????????
????7.4??Javascript
????$g_use_ext_js_library = ENABLED;
???????????????????’kryogenix.org’????‘’?????????Ч??
????$g_sort_table_engine='kryogenix.org';
????7.5?????????????????
??????????????????????壬????????Щ???????飬
????$g_tpl
??????????
????$g_tpl['tcView']
????$g_tpl['tcSearchView']
????$g_tpl['tcEdit']
????$g_tpl['tcNew']
????$g_tpl['execSetResults']
???????????????testlink??????????????????????????′????????????и?????????Σ???
??????????????е?testlink??涼???????????????????á?
???????????:
????$g_tpl['tcView'] = "tcView.tpl";
????$g_tpl['tcSearchView'] = "tcSearchView.tpl";
????$g_tpl['tcEdit'] = "tcEdit.tpl";
????$g_tpl['tcNew'] = "tcNew.tpl";
????$g_tpl['execSetResults'] = "execSetResults.tpl";
????8?????????????
????????XML-RPC????????????????????????????????????????????檔
????ENABLED -> enable XML-RPC calls
????DISABLED -> disable
????$tlCfg->exec_cfg->enable_test_automation = DISABLED;
??????????????????????????????Щ???????????const.inc.php?У?
????$att_model_m1 -> shows upload button and title
????$att_model_m2 -> hides upload button and title [DEFAULT VALUE]
????$tlCfg->exec_cfg->att_model = $att_model_m2;
????????????????н????
????ENABLED -> User can delete an execution result
????DISABLED -> User can not. [DEFAULT VALUE]
????$tlCfg->exec_cfg->can_delete_execution = DISABLED;
????8.1????????
?????????????????
????ASC -> ???????????????
????DESC ->??????????????????????
????$tlCfg->exec_cfg->history_order = ‘DESC’;
????????д??????????????build???????????????????
????TRUE -> the whole execution history for the build will be shown
????FALSE -> just last execution will be shown [DEFAULT VALUE]
????$tlCfg->exec_cfg->history_on = FALSE;
??????????????build????н????
????TRUE -> test case VERY LAST (i.e. in any build) execution status will be displayed
????FALSE -> only last result on current build. [DEFAULT VALUE]
????$tlCfg->exec_cfg->show_last_exec_any_build = FALSE;
???????????????build????н???????
????TRUE -> History for all builds will be shown
????FALSE -> Only history of the current build will be shown [DEFAULT VALUE]
????$tlCfg->exec_cfg->show_history_all_builds = FALSE;
????8.2. ??????е???
????????????????????????????????????????????????
????ENABLED -> ?????????? [DEFAULT VALUE]
????DISABLED -> disable
????$tlCfg->exec_cfg->enable_tree_testcases_colouring = ENABLED;
????$tlCfg->exec_cfg->enable_tree_counters_colouring = ENABLED;
??????????????????β?????test suite??????????frame????£?Disabling?????????????????????????
????ENABLED -> ??????в???????
????DISABLED -> ??????????????????????????????????????????
????$tlCfg->exec_cfg->show_testsuite_contents = DISABLED;
?????????????????????????????????????в?????????????????
????ENABLED -> user can edit execution notes?? on old executions (Attention: user must have test case execution right)
????DISABLED -> no edit allowed [DEFAULT VALUE]
????$tlCfg->exec_cfg->edit_notes = DISABLED;
?????????????????‘tester’??????????????????з??????
????'all' -> ???в???????.
????'assigned_to_me' ->???????????????????? [DEFAULT VALUE]
????'assigned_to_me_or_free' -> ??????????????δ????
????$tlCfg->exec_cfg->view_mode->tester='assigned_to_me';
?????????????????‘tester’??????????????????з?????С?
????'all' -> all test cases.
????'assigned_to_me' -> test cases assigned to the current user. [DEFAULT VALUE]
????'assigned_to_me_or_free' -> test cases assigned to logged user or not assigned
????$tlCfg->exec_cfg->exec_mode->tester='assigned_to_me';
???????????????????е?????
????'logged_user' -> ??????????
????'none' -> ???????????[DEFAULT VALUE]
????$tlCfg->exec_cfg->user_filter_default='none';
????????????????TC????????????????????????
????Priority = (urgency x importance)
????LOW = ???в???????????? < LOW_Threshold HIGH =???в????????????>= HIGH_Threshold
????MEDIUM =???в????????????>= LOW_Threshold AND ????? < HIGH_Threshold $tlCfg->urgencyImportance_LOW_Threshold = 3;
????$tlCfg->urgencyImportance_HIGH_Threshold = 6;
????8.3?????????????????μ???????
????1.????????????????У?
????cfg/const.inc.php
????custom_config.inc.php <-- ???????????????????????
????locale/en_GB/custom_strings.txt <-- ?????????ò???? strings.txt gui/themes/theme_m2/css/testlink.css ???ù???? 1. ?? cfg/const.inc.php ????????: $tlCfg->results['status_code']
????2. ???????????е? custom_config.inc.php???:
????$tlCfg->results['status_code'] = array (
????"failed" => 'f'??
????"blocked" => 'b'??
????"passed" => 'p'??
????"not_run" => 'n'??
????"not_available" => 'x'??
????"unknown" => 'u'??
????"all" => 'all'
????);
????$tlCfg->results['status_label'] = array(
????"all" => "test_status_all_status"??
????"not_run" => "test_status_not_run"??
????"passed" => "test_status_passed"??
????"failed" => "test_status_failed"??
????"blocked" => "test_status_blocked"??
????"not_available" => "test_status_not_available"??
????"unknown" => "test_status_unknown"
????);
????$tlCfg->results['status_label_for_exec_ui'] = array(
????"passed" => "test_status_passed"??
????"failed" => "test_status_failed"??
????"blocked" => "test_status_blocked"
????);
????$tlCfg->results['default_status'] = "passed";
????3. ????????????????:
????tcstatus_1 -> code q
????tcstatus_2 -> code w
????4. custom_config.inc.php ??????:
????$tlCfg->results['status_code'] = array (
????"failed" => 'f'??
????"blocked" => 'b'??
????"passed" => 'p'??
????"not_run" => 'n'??
????"not_available" => 'x'??
????"unknown" => 'u'??
????"all" => 'all'??
????"tcstatus_1" => 'q'??
????"tcstatus_2" => 'w'
????);
????$tlCfg->results['status_label'] = array(
????"all" => "test_status_all_status"??
????"not_run" => "test_status_not_run"??
????"passed" => "test_status_passed"??
????"failed" => "test_status_failed"??
????"blocked" => "test_status_blocked"??
????"not_available" => "test_status_not_available"??
????"unknown" => "test_status_unknown"??
????"tcstatus_1" => "test_status_new_one"??
????"tcstatus_2" => "test_status_new_two"
????);
????$tlCfg->results['status_label_for_exec_ui'] = array(
????"passed" => "test_status_passed"??
????"failed" => "test_status_failed"??
????"blocked" => "test_status_blocked"??
????"tcstatus_1" => "test_status_new_one"??
????"tcstatus_2" => "test_status_new_two"
????);
????$tlCfg->results['default_status'] = "blocked";
????5. ??? css ?????????μ???????.
????.tcstatus_1?? div.tcstatus_1 {
????color: black;
????background: yellow;
????}
????.tcstatus_2?? div.tcstatus_2 {
????color: black;
????background: orange;
????}
????div.tcstatus_1?? div.tcstatus_2 {
????margin: 8px;
????padding: 6px;
????text-align: center;
????}
????9????????
?????????????????????????
????'horizontal' - steps and expected results panes are side-by-side????
????'vertical' - steps pane is above the expected results (default behaviour) ???
????$g_spec_cfg->steps_results_layout = 'vertical';
???????????????????????????Ч???
????ENABLED -> User will see a test suite filter (default behaviour)
????DISABLED -> no filter available
????$g_spec_cfg->show_tsuite_filter = ENABLED;
??????????????????£?
????ENABLED -> ????????????????????
????DISABLED -> ???????????£???????
????$g_spec_cfg->automatic_tree_refresh = ENABLED;
????????????????????????а汾??
????ENABLED -> user can edit executed Test case versions
????DISABLED -> editing of executed Test case versions is blocked. [DEFAULT VALUE]
????$tlCfg->testcase_cfg->can_edit_executed = DISABLED;
?????????????????????????????????????а汾????????????????????????
????$tlCfg->testcase_cfg->can_remove_executed = ENABLED;
????????????壺
??????????????????????????????????????summary??steps????????????????????e????????????????
????'none' ->??岻????????????????[DEFAULT VALUE]
????'string' -> ?????????????? FCK object
????'string_id' -> value member is used in a lang_get() call?? and return value is assigned to FCK object. ???? string_id ????? custom_strings.txt
????'file' -> value member is used as file name. The file is read and it's contents assigned to a text area component as input
????$g_testcase_template->summary->type = 'string';
????$g_testcase_template->summary->value = '
????Objective: TBD
????Precondition:
????N/A
????';
????$g_testcase_template->steps->type = 'none';
????$g_testcase_template->steps->value = '';
????$g_testcase_template->expected_results->type = 'none';
????$g_testcase_template->expected_results->value = '';
????User can define the initial content of a new Test Suite description similar way:
????$g_testsuite_template->details->type='file';
????$g_testsuite_template->details->value='D:w3 lhead_20080103logs suite.txt';
????10??????
????$g_attachments->enabled = TRUE; ??true or false???????????????????
????????????????????????????????
????TL_REPOSITORY_TYPE_DB => database
????TL_REPOSITORY_TYPE_FS => filesystem
????$g_repositoryType = TL_REPOSITORY_TYPE_FS;?????????
????$g_repositoryPath = TL_ABS_PATH . "upload_area" . DS;?????????洢·??????????·?????????????
??????洢???п?????????????????????
????TL_REPOSITORY_COMPRESSIONTYPE_NONE => no compression
????TL_REPOSITORY_COMPRESSIONTYPE_GZIP => gzip compression
?????????
????$g_repositoryCompressionType = TL_REPOSITORY_COMPRESSIONTYPE_NONE;
???????????洢?????????size??1MB.
????define("TL_REPOSITORY_MAXFILESIZE_MB"?? 1);
????????????php???? (??????? 2MBs)
????????????????????????
????// TRUE -> ??????????????б???????true
????$g_attachments->allow_empty_title = TRUE;
?????????????????????
????// 'none' -> д??db????????
????// 'use_filename' ->???????????????
????//$g_attachments->action_on_save_empty_title='use_filename';
????$g_attachments->action_on_save_empty_title='none';
?????????????????????????????????????????????????????????????????????У?
????'show_icon' ->???$g_attachments->access_icon ?????.
????'show_label' -> $g_attachments->access_string ???????? .
????$g_attachments->action_on_display_empty_title='show_icon';
????$g_attachments->access_icon='';
????$g_attachments->access_string="[*]";
???????????????????????????
????$g_attachments->order_by=" ORDER BY date_added DESC ";
????11?????????
???????????????????????????????Ч????Ч????????????????????????棬TL???????????????????
??????????????????????Σ?SRS??????????б?????child_requirements_mgmt???????????????????
????ENABLED: ????N????
????DISABLED: ?????
????$tlCfg->req_cfg->child_requirements_mgmt = DISABLED;
?????????????????req_doc_id??????????
????TRUE -> req_doc_id ?????? DB (system_wide)?????
????FALSE -> req_doc_id ??SRS?????
????$g_req_cfg->reqdoc_id->is_system_wide = FALSE;
????????????????????srs????????????????requirement????test case????????????????????????
??????????Σ?$g_req_cfg
????$g_req_cfg->use_req_spec_as_testsuite_name = TRUE;
??????FALSE -> test cases??????????????$g_req_cfg->default_testsuite_name??????test suite??
????TRUE -> REQuirement Specification ???? ????????? testsuite ???????
????$g_req_cfg->default_testsuite_name = "Test suite created by Requirement - Auto";
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
????????????????AutoRunner??Selenium??????????????????????????????????????????е?????????????????ν??????????????????????????????????????QTP??AR???????????????????????????е?????????????????????????????????У???????5?????????????????????ν?????????????PR???????????????????????????????AutoRunner?ж??????????????????????AutoRunner???????????????????app????????????MR????????????庯??????????????AR??????????????壿??ν??д???????????????????????????????????Щ?????????????????????Щ?????????????????????????????ο???????????????????PR???????????????????????????????ù??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????