Forum Discussion

koolvamshi's avatar
koolvamshi
Occasional Contributor
13 years ago

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

1 Reply

  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    koolvamshi Did you solve your issue?
    the post you mention is about missing dependencies for plugin 4.0.x. Have you try with the 4.5.1 version?

    The 404 error suggest the resource does not exist in the server
    what is the pom configuration? did you override the endpoint ?
    in the gui did you configure some specific global settings?