Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nickbrust opened this issue Apr 15, 2024 · 0 comments

Comments

@nickbrust
Copy link

nickbrust commented Apr 15, 2024

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/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant