安装的testlink 1.9.16 在Windows10上执行测试时报错
Fatal error: Uncaught Error: Cannot use string offset as an array in D:\softest\htdocs\testlink\lib\execute\execSetResults.php:1533 Stack trace: #0 D:\softest\htdocs\testlink\lib\execute\execSetResults.php(93): processTestCase(NULL, Object(stdClass), Object(stdClass), Object(stdClass), Array, Object(tree), Object(testcase), Object(tlAttachmentRepository)) #1 {main} thrown in D:\softest\htdocs\testlink\lib\execute\execSetResults.php on line 1533
打开错误中所提供的路径文件 D:\softest\htdocs\testlink\lib\execute\execSetResults.php
以记事本打开后Ctrl+F搜索$finalFilters
将
foreach($locationFilters as $locationKey => $filterValue)
{
$finalFilters=$cf_filters+$filterValue;
$guiObj->design_time_cfields[$tcase_id][$locationKey] =........;
替换为
如图
保存退出后,刷新testlink当前网页重新进入即可。