koolvamshi
13 years agoOccasional Contributor
Tests are failing when executed via the maven plugin
Dear Community,
When I trying to execute through SOAP UI all the testcases are sucess in which 2 assertions are involved.
1) With valid HTTP code status as 200
2) With script assertion as "assert messageExchange.getResponse().getContentLength() > 0;"
When executing it SOAP UI the test case passed while using trough maven plugin it is not sucess saying HTTP status code is "404" The full length response is given below
#status#: [HTTP/1.1 404 Not Found]
Content-Length: [1298]
Content-Type: [text/html; charset=iso-8859-1]
Server: [Jetty(6.1.20)]
Cache-Control: [must-revalidate,no-cache,no-store]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 NOT_FOUND</title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<p>
Problem accessing /ad-broker-integration/adBroker. Reason:
<pre>NOT_FOUND</pre>
</p>
<hr/>
<i>
<small>Powered by Jetty://</small>
</i>
</body>
</html>
Even though it says " Problem accessing /ad-broker-integration/adBroker " but Using SOAP UI how the testcase is sucess.
Accoring to below link I have changed the versions also but still no luck.Can any one tell what might be wrong and how to resolve it ?
viewtopic.php?t=6552
Thanks in advance
Thanks,
Krish
When I trying to execute through SOAP UI all the testcases are sucess in which 2 assertions are involved.
1) With valid HTTP code status as 200
2) With script assertion as "assert messageExchange.getResponse().getContentLength() > 0;"
When executing it SOAP UI the test case passed while using trough maven plugin it is not sucess saying HTTP status code is "404" The full length response is given below
#status#: [HTTP/1.1 404 Not Found]
Content-Length: [1298]
Content-Type: [text/html; charset=iso-8859-1]
Server: [Jetty(6.1.20)]
Cache-Control: [must-revalidate,no-cache,no-store]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 NOT_FOUND</title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<p>
Problem accessing /ad-broker-integration/adBroker. Reason:
<pre>NOT_FOUND</pre>
</p>
<hr/>
<i>
<small>Powered by Jetty://</small>
</i>
</body>
</html>
Even though it says " Problem accessing /ad-broker-integration/adBroker " but Using SOAP UI how the testcase is sucess.
Accoring to below link I have changed the versions also but still no luck.Can any one tell what might be wrong and how to resolve it ?
viewtopic.php?t=6552
Thanks in advance
Thanks,
Krish