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

NullPointerException thrown from RuntimeReporter causes test to fail when utilizing TestNG successPercentage and a test doesn't fail because it is within a success percentage #352

Open
ILikeToNguyen opened this issue Mar 22, 2017 · 0 comments

Comments

@ILikeToNguyen
Copy link
Contributor

SeLion Version

1.2.0

Component

client

Expected Behavior

Not to fail my test with a NPE from runtime reporter

Actual Behavior

Happens if you have a TestNG test that results in onTestFailedButWithinSuccessPercentage
Runtime reporter throws a NullPointerException. It is trying to read status field from the reporter's json file that written. Reason the reporter's json file is missing the status field is because in MethodInfo, we are not handling SUCCESS_PERCENTAGE_FAILURE and marking it as a status=success. Thus status is not set.

Steps to Reproduce

@test(successPercentage = 0)
public void test() {
double value = 10/0;
}

This will trigger the NPE.

@mach6 mach6 added this to the 2.0.0 milestone Mar 22, 2017
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