You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[AllureStep("This step should fail")]
public static int FailedStep()
{
var x = 1;
return 1 / (1 - x);
}
[Test]
[AllureName("Should fail on step")]
public void ReturnFail()
{
FailedStep();
}
This test failed with exception:
System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
----> System.DivideByZeroException : Attempted to divide by zero.
but should be failed with System.DivideByZeroException : Attempted to divide by zero.
Allure version: 2.9.5-preview.1
The text was updated successfully, but these errors were encountered:
@unickq Are there any plans to address this issue ? This is especially problematic when trying to handle exception thrown by other step methods:
Ex: trying to catch a timeout exception thrown by a WebDriverWait.
Consider this code:
This test failed with exception:
but should be failed with
System.DivideByZeroException : Attempted to divide by zero.
The text was updated successfully, but these errors were encountered: