Forum Discussion

DMcCabe's avatar
DMcCabe
Contributor
13 years ago

[Resolved] No assertions passing when I run soapui from mvn

Trying to set up soapui to run under maven.

I have a soapui project set up in soapui pro 4.5.1 with a testsuite which runs fine using test runner and on the cli. It is a very simple rest project with a single test case and a single assertion which simply looks for the existence of an element.

I have created a test mvn project and added the plugin repository and plugin to the pom.xml and pointed it to my project.xml file.

When I try to run it using "mvn -X test" I get the following error see attached file, can't paste to post as it is too large.
Any idea what I might be doing wrong.
Thanks
  • Hi!

    I can't reproduce/test this (since I can't reach the service), but seeing as how the service appears to respond with "400 Bad Request", saying that "null is not a number", it seems like there's something wrong with your request.

    It seems odd that it works in SoapUI but not in maven. Is it possible for you to check the server log to see what the request looks like?

    --
    Regards,

    Arian,
    SmartBear Sweden
  • Arian

    The server log indicates that the parameters are not being send in the request from the mvn soapui plugin

    [02/Apr/2013:11:45:21 +0000] "GET /article HTTP/1.1" 400 23 14 14

    and the 400 response would be consistent with that.

    so the question is why are the parameters not being send from the soapui mvn plugin?

    Thanks
  • I got it working now. By updating to the latest soapui plugin from the maven repository.


    <dependency>
    <groupId>com.github.redfish4ktc.soapui</groupId>
    <artifactId>maven-soapui-extension-plugin</artifactId>
    <version>4.5.1.3</version>
    </dependency>