testlink1.9.16,执行测试时的错误修改

来源:互联网 发布:java项目使用log4j 编辑:程序博客网 时间:2024/06/08 17:41

安装testlink1.9.16版本,点击执行测试的时候,报如下错误:

Fatal error: Uncaught Error: Cannot use string offset as an array in D:\testlink\htdocs\testlink\lib\execute\execSetResults.php:1539Stack trace:#0 D:\testlink\htdocs\testlink\lib\execute\execSetResults.php(94): processTestCase(NULL, Object(stdClass), Object(stdClass), Object(stdClass), Array, Object(tree), Object(testcase), Object(tlAttachmentRepository))#1 {main} thrown inD:\testlink\htdocs\testlink\lib\execute\execSetResults.php on line1539



修改D:\testlink\htdocs\testlink\lib\execute\execSetResults.php配置文件

foreach($locationFilters as $locationKey => $filterValue)
  {
       
    $finalFilters=$cf_filters+$filterValue;
    $guiObj->design_time_cfields[$tcase_id][$locationKey] =


将这两行替换成


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




阅读全文
0 0
原创粉丝点击