`maxerrorlines` 似乎无法通过 `robot.running.model.TestSuite.run` 来使用

作者: nickbrust创建于 2024年4月15日更新于 2026年8月31日

我有一段代码,使用了 robot.running.TestSuiteBuilder

python
builder = TestSuiteBuilder()
suite = builder.build("some_suite.robot")
# run
suite.run(output="out.xml", loglevel="TRACE", maxerrorlines=None)
但在测试用例级别的错误消息中,我看到:
`[ Message content over the limit has been removed. ]`
将此设置为任何 `str` 值(`int` 会抛出 `AttributeError: 'int' object has no attribute 'upper'`)似乎对消息长度没有影响(我还尝试过 `maxerrorlines="10"`,`="999"`,`="NONE"`)。`loglevel` ***是*** 有效的。

内容来源: robotframework/robotframework