I get this same error using Mozilla 0.9.9, but not in IE.  It might be
an issue with Struts 1.1b1.

Thanks,

Matt

> -----Original Message-----
> From: Matt Raible [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 03, 2002 8:18 AM
> To: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'
> Subject: [StrutsTestCase Error] Request does not contain handler
parameter
> named action
> 
> Deryl,
> 
> I'm trying to use StrutsTestCase 1.6 and CactusStrutsTestCase to test
an
> Action that extends LookupDispatchAction.
> 
> In my mind, the following test method "should" call the "create"
method on
> my class.
> 
>     public void testCreate() {
>        setRequestPathInfo("/assetEdit");
>        addRequestParameter("action","Create");
>        actionPerform();
>        verifyForward("create");
>        assertTrue(getSession().getAttribute("assetForm") != null);
>        verifyNoActionErrors();
>     }
> 
> Here is my action-mapping:
> 
>               <!-- Edit, Delete Asset Action, need separate mapping
since
> validation is false -->
>               <action path="/assetEdit"
> type="com.onpoint.webapp.action.AssetAction" name="assetForm"
> scope="session" validate="false" input="asset.list"
parameter="action">
>                       <forward name="add" path="asset.add"/>
>                       <forward name="create" path="asset.add"/>
>                       <forward name="delete"
> path="/do/assetEdit?action=Search"/>
>                       <forward name="edit" path="asset.manage"/>
>                       <forward name="search" path="asset.list"/>
>               </action>
> 
> However, I get the following error:
> 
>     [junit]     FAILED
>     [junit] Error running action.perform(): Request[/assetEdit] does
not
> contain handler parameter named action
>     [junit] junit.framework.AssertionFailedError: Error running
> action.perform(): Request[/assetEdit] does not contain h
> andler parameter named action
>     [junit]     at
>
servletunit.struts.CactusStrutsTestCase.actionPerform(CactusStrutsTestCa
se
> .java:389)
>     [junit]     at
>
com.onpoint.webapp.action.AssetActionTest.testCreate(AssetActionTest.jav
a:
> 97)
> 
> Any ideas?
> 
> Thanks,
> 
> Matt


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to