arunasfo
14 years agoNew Contributor
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:
- 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)}