Forum Discussion

arunasfo's avatar
arunasfo
New Contributor
14 years ago

soapui-4.0.0 tests fail when run with the maven plugin 2.5.1

The tests pass when I run from soapui UI but fail when run with the maven plugin (version: 2.5.1) with a '405: GET method not supported' message.

- From soapui UI, I get response in xml as expected
- I run the same test from command line (mvn eviware:maven-soapui-plugin:test) and the XPath Match fails as the response does not contain the expected xml and the response has the following:

XPath Match in [createAccount] failed;
[XPathContains assertion failed for path [//testAccount] : Exception:Missing content for xpath [//testAccount] in Response]
Status: FAILED
Time Taken: 41
Size: 1469
TestStep: createAccount
XPathContains assertion failed for path [//testAccount] : Exception:Missing content for xpath [//testAccount] in Response
----------------------------------------------------
Encoding: UTF-8
Endpoint: http://localhost
Username: null
Password: null
Domain: null
---------------- Request ---------------------------
<testAccount>
<profile>Test</profile>
<country>USA</country>
<email>testxyz@testtest.com</email>
</testAccount>
Request Headers: {Host=localhost, Accept-Encoding=gzip,deflate, User-Agent=Jakarta Commons-HttpClient/3.1}
---------------- Response --------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 405 Request method 'GET' not supported</title>
</head>
<body>
<h2>HTTP ERROR: 405</h2>
<pre>Request method 'GET' not supported</pre>
<p>RequestURI=/myservices/testAccount</p>
<p>
<i>
<small>
<a href="http://jetty.mortbay.org/">Powered by Jetty://</a>
</small>
</i>
</p>
<br/>
</body>
</html>
Response Headers: {#status#=HTTP/1.1 405 Request method 'GET' not supported, Content-Length=1469, Allow=PUT, Content-Type=text/html; charset=iso-8859-1, Server=Jetty(6.1.10)}

2 Replies

  • istyrman's avatar
    istyrman
    New Contributor
    I seem to have the same problem with soapui 4.5.0 and maven-soapui-plugin 2.5.1. Tests go fine in the UI with POST-method, but running from maven causes switch to GET-method:

    "No methodBinding found for method /SearchVakuutettu/searchBySSN@GET"

    The full query string is /SearchWeb/SearchVakuutettu/searchBySSN ... could this be the issue, its not fetching entire resource path?

    Any one have a clue how to tackle this?
  • istyrman's avatar
    istyrman
    New Contributor
    wow theres soupui-maven-plugin 4.0.1, this problem has been fixed..