Skip to content

HDDS-5423. Robot test should print the entire exception stack trace.#2399

Closed
mukul1987 wants to merge 1 commit intoapache:masterfrom
mukul1987:HDDS-5423
Closed

HDDS-5423. Robot test should print the entire exception stack trace.#2399
mukul1987 wants to merge 1 commit intoapache:masterfrom
mukul1987:HDDS-5423

Conversation

@mukul1987
Copy link
Contributor

What changes were proposed in this pull request?

Robot test truncates the exception lines in the output, this jira ensures that the entire exception is printed.

https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#limiting-error-message-length-in-reports

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-5423

How was this patch tested?

Observed output of another excpetion trace with the option enabled.

@adoroszlai
Copy link
Contributor

@mukul1987 The doc says: full error messages are always visible in log files as messages of the failed keywords. Do we really need the full error in regular output, too?

Try this test:

*** Settings ***
Library    OperatingSystem

*** Test Cases ***
Long message
    ${rc}    ${output} =    Run And Return Rc And Output    cat /etc/passwd
    Should Contain    ${output}    asdfqwerty

output.xml would have the complete message ('... (full contents of /etc/passwd)' does not contain 'asdfqwerty').

@mukul1987 mukul1987 closed this Jul 28, 2021
@mukul1987 mukul1987 deleted the HDDS-5423 branch July 28, 2021 14:40
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

Successfully merging this pull request may close these issues.

2 participants