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

Disable stack trace AssertJ #131

Open
vali92 opened this issue Apr 5, 2019 · 3 comments
Open

Disable stack trace AssertJ #131

vali92 opened this issue Apr 5, 2019 · 3 comments

Comments

@vali92
Copy link

vali92 commented Apr 5, 2019

Hi,

Is there any way i can supress the AssertionErrors, im tring to use

`Assertions.setRemoveAssertJRelatedElementsFromStackTrace(true);`

But didn't worked. I would like to display in my report a friendly message.

Thanks,

@joel-costigliola
Copy link
Member

It's not super clear, can you show actual result vs the expected one ?

@vali92
Copy link
Author

vali92 commented Apr 8, 2019

I would like to suppress the Assertion error from:

java.lang.AssertionError: test failed to screenshot
	at org.testng.Assert.fail(Assert.java:94)
	at stepdefs.LoginTestStepsDefinition.wait_seconds_fail(LoginTestStepsDefinition.java:37)
	at ?.When Wait 10 seconds fail(Testing.feature:10)

To something like:

java.lang.AssertionError: test failed to screenshot

Or ideally, only the assetion message:

test failed to screenshot

@dipakkumar1225
Copy link

@vali92 have you found the solution?

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

3 participants