Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

[test goal] do not display details of errors #2

Closed
redfish4ktc opened this issue Jan 27, 2012 · 3 comments
Closed

[test goal] do not display details of errors #2

redfish4ktc opened this issue Jan 27, 2012 · 3 comments

Comments

@redfish4ktc
Copy link
Owner

On error/failure, standard maven-soapui-plugin displays the details of the error, for instance, the request, the response, some logs.
This is very annoying when several tests fails: the console is flooded with those useless messages.
We already have the printReport parameter to get a summary of test execution and report files are also generated to know error causes .

So, remove these error details.

@redfish4ktc
Copy link
Owner Author

Implementation information
The underlying runner (standard and pro implementation) throws an Exception when there are errors. The message of this exception is composed of details describe in the issue.
This exception is catched by the plugin and as for all exceptions, it is wrapped in a MojoFailureException and then, the full useless message is displayed.

Possible solution
The runner does not throw exception when the "ignoreError" is set to true.
So we could use this and ask the runner if there are errors or get the number of errors at the end of the run (should use reflection to access to error list)

@redfish4ktc
Copy link
Owner Author

The error message is also displayed twice (the exception message is first logged and then displayed again because maven find a MojoFailureException)

        catch (Exception e) {
            getLog().error(e.toString());
            throw new MojoFailureException(this, "SoapUI Test(s) failed", e.getMessage());
        }

@redfish4ktc
Copy link
Owner Author

Fixed in 4.0.0.1

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

No branches or pull requests

1 participant