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

Clear failed action name when the failed flag is cleared #413

Open
jowerner opened this issue Aug 25, 2023 · 0 comments
Open

Clear failed action name when the failed flag is cleared #413

jowerner opened this issue Aug 25, 2023 · 0 comments
Assignees

Comments

@jowerner
Copy link
Contributor

If an error occurred in a test scenario, XLT marks the current session as failed. As a side effect, it also sets the name of the current action as the failed action name at the session. So far, so good.

The test scenario may decide to ignore that error. To this end, it typically catches exceptions and resets the failed at the session. However, the failed action name cannot be reset at the moment. Should the test scenario fail again later on (not ignored that time), then the exception is correctly reported, but the name of the failing action is wrong, i.e. it is the one from the first error.

In order to solve this issue, the failed action name at the session should be cleared whenever the failed flag is cleared by the scenario via Session.getCurrent().setFailed(false).

@jowerner jowerner self-assigned this Oct 18, 2023
@jowerner jowerner added this to the 7.3.0 milestone Oct 18, 2023
@jowerner jowerner removed this from the 7.3.0 milestone Oct 20, 2023
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

1 participant