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

exception override by softassertion error stack in SeLionAssertsListener.java #381

Open
kevinx701 opened this issue Apr 11, 2018 · 1 comment

Comments

@kevinx701
Copy link

kevinx701 commented Apr 11, 2018

SeLion Version

1.2.0 and 2.0 SNAPSHOT

Component

com.paypal.selion.internal.platform.asserts.SeLionAssertsListener

Expected Behavior

condition:
1.there a soft assertion failed.
2. throw another exception.
e.g.
SeLionAsserts.verifyTrue(false);
throw new ElementNotVisibleException("cannot find element");

if test failed and broke by none SoftAssertion issue, SeLionAssertsListener should not update test result and override it

Actual Behavior

cannot get ElementNotVisibleException in test report, following message overwrite it
"exception": "class java.lang.AssertionError:Multiple (2) soft assertion failures occurred..."

Steps to Reproduce

create a test and add two statements:
SeLionAsserts.verifyTrue(false);
throw new ElementNotVisibleException("cannot find element");
run the case and check report.json, search "testMethods": and check information

@mach6
Copy link
Contributor

mach6 commented Oct 23, 2019

This is the intended behavior and limitation. Leaving it open though to track -- perhaps the behavior can be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants