TestLink执行用例时,选择具体的用例出错

错误显示如下
Called from /testlink/lib/execute/execSetResults.php:418
谁知道这个的解决方案,我用的是TestLink1.9.15版本

代码贴出来看看,具体问题具体分析

$gui stdClass(75)
public showExternalAccessString -> boolTRUE
public showImgInlineString -> boolFALSE
→public issueSummaryForStep -> array(1)
'9' => string(29) "Issue Executing Step number 1"
public addIssueOp -> NULL
public allowStepAttachments -> boolTRUE
public tlCanCreateIssue -> boolFALSE
public user_feedback -> string(0) ""
public remoteExecFeedback -> string(0) ""
public tplan_id -> integer14
public tproject_id -> integer2
public build_id -> integer2
public platform_id -> integer0
public loadExecDashboard -> boolFALSE
→public treeFormToken -> string(10) "1900003264"
timestamp
2030-03-17 19:41:04
public import_limit -> integer1048576
→public execStatusValues -> array(4)
'n' => string(0) ""
'p' => string UTF-8(2) "通过"
'f' => string UTF-8(2) "失败"
'b' => string UTF-8(2) "锁定"
public can_use_bulk_op -> boolFALSE
→public exec_notes_editors -> array(1)
→'7' => string(97) "
public bulk_exec_notes_editor -> NULL
public req_details -> NULL
public attachmentInfos -> NULL
public bugs -> NULL
public other_exec_cfields -> NULL
public ownerDisplayName -> NULL
public editorType -> string(4) "none"
public testPlanEditorType -> string(8) "ckeditor"
public platformEditorType -> string(8) "ckeditor"
public buildEditorType -> string(8) "ckeditor"
public testDesignEditorType -> string(8) "ckeditor"
public stepDesignEditorType -> string(8) "ckeditor"
public filter_assigned_to -> NULL
public tester_id -> integer2
public include_unassigned -> boolFALSE
public tpn_view_status -> string(1) "0"
public bn_view_status -> string(1) "0"
public bc_view_status -> integer1
public platform_notes_view_status -> string(1) "0"
public refreshTree -> integer0
→public map_last_exec_any_build -> array(1)
→'8' => array(36)
'execution_id' => string(1) "5"
'status' => string(1) "p"
'execution_run_type' => string(1) "1"
'execution_duration' => NULL
'name' => string UTF-8(5) "测试用例1"
'testcase_id' => string(1) "7"
'tsuite_id' => string(1) "5"
'id' => string(1) "8"
'tc_external_id' => string(1) "1"
'version' => string(1) "1"
→'summary' => string UTF-8(17) "

摘要说明1

"

摘要说明1

→'preconditions' => string UTF-8(17) "

前置条件1

"

前置条件1

'importance' => string(1) "2"
'author_id' => string(1) "2"
'creation_ts' => string(19) "2017-02-23 10:52:22"
'updater_id' => string(1) "2"
'modification_ts' => string(19) "2017-02-23 10:54:52"
'active' => string(1) "1"
'is_open' => string(1) "1"
'execution_type' => string(1) "1"
'estimated_exec_duration' => NULL
'wkfstatus' => string(1) "1"
'tester_login' => string(7) "lihuiwu"
'tester_first_name' => string(2) "li"
'tester_last_name' => string(5) "huiwu"
'tester_id' => string(1) "2"
'execution_notes' => NULL
'execution_ts' => string(19) "2017-02-27 04:24:36"
'build_id' => string(1) "1"
'tcversion_number' => string(1) "1"
'build_name' => string(2) "v1"
'build_is_active' => string(1) "1"
'build_is_open' => string(1) "1"
'platform_id' => string(1) "0"
'platform_name' => NULL
→'steps' => array(1)
→array(6)
'id' => string(1) "9"
'step_number' => string(1) "1"
→'actions' => string UTF-8(15) "

步骤1

"

步骤1

→'expected_results' => string UTF-8(15) "

结果1

"

结果1

'active' => string(1) "1"
'execution_type' => string(1) "1"
→public map_last_exec -> array(1)
→'8' => array(39)
'execution_id' => NULL
'status' => string(1) "n"
'execution_run_type' => NULL
'execution_duration' => NULL
'name' => string UTF-8(5) "测试用例1"
'testcase_id' => string(1) "7"
'tsuite_id' => string(1) "5"
'id' => string(1) "8"
'tc_external_id' => string(1) "1"
'version' => string(1) "1"
→'summary' => string UTF-8(17) "

摘要说明1

"

摘要说明1

→'preconditions' => string UTF-8(17) "

前置条件1

"

前置条件1

'importance' => string(1) "2"
'author_id' => string(1) "2"
'creation_ts' => string(19) "2017-02-23 10:52:22"
'updater_id' => string(1) "2"
'modification_ts' => string(19) "2017-02-23 10:54:52"
'active' => string(1) "1"
'is_open' => string(1) "1"
'execution_type' => string(1) "1"
'estimated_exec_duration' => NULL
'wkfstatus' => string(1) "1"
'tester_login' => NULL
'tester_first_name' => NULL
'tester_last_name' => NULL
'tester_id' => NULL
'execution_notes' => NULL
'execution_ts' => NULL
'build_id' => NULL
'tcversion_number' => NULL
'build_name' => NULL
'build_is_active' => NULL
'build_is_open' => NULL
'platform_id' => NULL
'platform_name' => NULL
→'steps' => array(1)
→array(7)
'id' => string(1) "9"
'step_number' => string(1) "1"
→'actions' => string UTF-8(15) "

步骤1

"

步骤1

→'expected_results' => string UTF-8(15) "

结果1

"

结果1

'active' => string(1) "1"
'execution_type' => string(1) "1"
'execution_notes' => string(0) ""
'assigned_user' => string(0) ""
'assigned_user_id' => string(0) ""
'can_be_executed' => integer1
public tcasePrefix -> string(3) "PUB"
→public build_notes -> string(17) "

test2

"

test2

public build_is_open -> integer1
→public execution_types -> array(2)
'1' => string UTF-8(2) "手工"
'2' => string UTF-8(3) "自动的"
public build_name -> string(2) "V2"
public build_div_title -> string UTF-8(7) "版本标识 V2"
public exec_mode -> string(3) "all"
→public grants -> stdClass(4)
public execute -> integer1
public delete_execution -> string(3) "yes"
public edit_exec_notes -> boolTRUE
public edit_testcase -> integer1
→public testplan_notes -> string(14) "

test

"

test

public testplan_div_title -> string UTF-8(11) "测试计划 test-1"
public testplan_cfields -> string(0) ""
public build_cfields -> string(0) ""
public history_on -> boolFALSE
public history_status_btn_name -> string(14) "btn_history_on"
public has_platforms -> integer0
→public platform_info -> array(2)
'id' => integer0
'name' => string(0) ""
public platform_div_title -> string UTF-8(3) "平台 "
public tlCanAddIssueNote -> boolFALSE
public issueTrackerIntegrationOn -> boolFALSE
public node_id -> integer7
public draw_save_and_exit -> boolFALSE
→public issueTrackerCfg -> stdClass(2)
public bugSummaryMaxLength -> integer100
public editIssueAttr -> boolFALSE
public issueTrackerMetaData -> NULL
→public design_time_cfields -> array(1)
→'7' => array(2)
'standard_location' => string(0) ""
'before_steps_results' => string(0) ""
→public testplan_design_time_cfields -> array(1)
'7' => string(0) ""
→public tcAttachments -> array(1)
'7' => NULL
→public execution_time_cfields -> array(1)
'7' => string(0) ""
→public tSuiteAttachments -> array(1)
'5' => NULL
→public bug_summary -> string UTF-8(54) "/公共库/软件测试/基本功能/PUB-1:测试用例1 案例执行时间: 2017-03-06CET08:07"
/公共库/软件测试/基本功能/PUB-1:测试用例1 案例执行时间: 2017-03-06CET08:07
public direct_link -> string(67) "http://127.0.0.1/testlink/ltx.php?item=exec&feature_id=1&build_id=2"
→public plugins -> array(1)
'EVENT_TESTRUN_DISPLAY' => array(0)
public tcversionSet -> string(1) "8"
public other_execs -> NULL
→public relations -> array(3)
'num_relations' => integer0
→'item' => array(8)
'name' => string UTF-8(5) "测试用例1"
'node_order' => string(4) "1000"
'testcase_id' => string(1) "7"
'testsuite_id' => string(1) "5"
'version' => string(1) "1"
'id' => string(1) "8"
'tc_external_id' => string(1) "1"
'fullExternalID' => string(5) "PUB-1"
'relations' => NULL
→public kw -> array(1)
→'1' => array(3)
'keyword_id' => string(1) "1"
'keyword' => string(1) "K"
'notes' => string(0) ""
→ Called from /testlink/lib/execute/execSetResults.php:418

我也碰到这个问题了,求高手指点……。

修改/testlink/lib/execute/execSetResults.php 这两个字段为array类型就可以了

$guiObj->design_time_cfields = array();
$guiObj->testplan_design_time_cfields = array();

记得重启Apache

成功的解决了问题,感谢