title: StrutsTestCase test and "error" returned from Struts2 action class
body: <p>I'm trying to use StrutsTestCase for testing my Struts2 actions, but I'm getting always the &quot;error&quot; value back while executing the &quot;execute()&quot; method from the proxy. Here's the example:</p>
  <blockquote>
  <p>public void testSpike() throws Exception{</p>
  <pre><code>    request.addHeader(&quot;param1&quot;, &quot;param&quot;);
      
      ActionProxy proxy = getActionProxy(&quot;/action/to/test.action&quot;);
      assertNotNull(proxy);
  
      TestAction action = (TestAction) proxy.getAction();
      assertNotNull(action);
  
      String output = proxy.execute();
  </code></pre>
  <p>}</p>
  </blockquote>
  <p>the output string is always &quot;error&quot;. Is there a way to understand what happened there? The logs are not saying anything, and even trying to debug placing a breakpoint on the Action class doesn't help (the code never stops there).</p>
  <p>Any suggestions?</p>
  <p>Thanks
  Roberto</p>