Skip to content

maxerrorlines does not appear to work via robot.running.model.TestSuite.run #5113

Open

Description

@nickbrust

I have some code that uses robot.running.TestSuiteBuilder:

        builder = TestSuiteBuilder()
        suite = builder.build("some_suite.robot")
        # run
        suite.run(output="out.xml", loglevel="TRACE", maxerrorlines=None)

yet I am seeing the:
[ Message content over the limit has been removed. ]
in the test-case-level error message.

And setting this to any str value (int throws AttributeError: 'int' object has no attribute 'upper') seems to have no effect on the message length (I've tried maxerrorlines="10", ="999", ="NONE" as well).

loglevel is working.


However, if I use subprocess to build a CLI command using --maxerrorlines NONE or robot.run with maxerrorlines=None, the error message is formatted properly.


Environment:

pip list | grep robot
robotframework                7.0

python --version
Python 3.10.14

cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Activity

  1. pekkaklarck commented on Aug 31, 2026

    @pekkaklarck
    Member

    I had missed this issue earlier (we really should go through the whole issue tracker) and noticed it now via the above PR. It's too late to get this into RF 7.5, but I'll assign this issue to RF 7.6 so that we don't forget about it.

  2. added this to the v7.6 milestone on Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions