Matt,

   I think this is very important!!
  I get fixUp my Cargo settings (I'm gonna post soon the complet solution in
the other thread)!! But, when I run both cmds *cargo:start* and *
integration-test* I get my app deployed/running within my pre-existing
TomCat (yes, I can open my browser use my app running (port: 8080)!! -> but,
attaition: using port: *8080* (instead of *8081*). Even so, integration-test
tries to access/load the container in port 8081.

(Obs.: when I run both above cmds with -Poracle: the app lauchs and runs
suitably (probably using Oracle), but then it begin try to access MySQL (I
can't even logIn app -> incorrect password) and webTests fail!)

  What u think about we change the default <!-- Cargo settings -->'s
port setting to '*8080*'??!

Ice-Man


2009/1/26 Matt Raible <[email protected]>

> I'm sorry, I've provided answers to this question many times. If my
> suggestions don't work for you, I'm unable to provide further assistance.
> I'd suggest you read Cargo's documentation to try and understand it better.
> http://cargo.codehaus.org/
>
> Matt
>
>   On Jan 26, 2009, at 11:18 AM, Ice-Man wrote:
>
>           Matt,
>
>   Now, I still get the (common) tests run: 12, Failures: 0,...
> But, when it (seems) try to run WebTests, it tries to load Cargo's TomCat
> (obs.: I thought Canoo were JavaWebContainer independent! :o), so I get the
> same issue described in 'my Last 
> Post<http://www.nabble.com/%28AppFuse-2.0.2%29-How-set-TomCat-of-Cargo-%28P-Oracle%29-tt21582001s2369.html>
> '(FldStarTmcat.JPG).
>   Could u suggest me somewhat to solve the problem??!
>
> Ice-Man
> 2009/1/26 Matt Raible <[email protected]>
>
>> The problem is happening when the surefire plugin executes and tries to
>> find a JUnit tests with the name "PersonTests". In pom.xml, try changing
>> "test" to "webtest":
>>
>>                                 <property name="test"
>> value="run-all-tests" />
>>                                 <echo level="info">Testing
>> '${project.build.finalName}' with locale '${user.language}'</echo>
>>                                 <ant
>> antfile="src/test/resources/web-tests.xml" target="${test}">
>>                                     <property name="user.language"
>> value="${user.language}" />
>>                                     <property name="webapp.name"
>> value="${project.build.finalName}" />
>>                                     <property name="host"
>> value="${cargo.host}" />
>>                                     <property name="port"
>> value="${cargo.port}" />
>>                                 </ant>
>>
>> To:
>>                                 <property name="webtest"
>> value="run-all-tests" />
>>                                 <echo level="info">Testing
>> '${project.build.finalName}' with locale '${user.language}'</echo>
>>                                 <ant
>> antfile="src/test/resources/web-tests.xml" target="${webtest}">
>>                                     <property name="user.language"
>> value="${user.language}" />
>>                                     <property name="webapp.name"
>> value="${project.build.finalName}" />
>>                                     <property name="host"
>> value="${cargo.host}" />
>>                                     <property name="port"
>> value="${cargo.port}" />
>>                                 </ant>
>>
>> Then run it with -Dwebtest=PersonTests. If this works, please let us know
>> so we can fix it in the next release.
>>
>> Matt
>>
>>   On Mon, Jan 26, 2009 at 4:15 AM, Ice-Man <[email protected]>wrote:
>>
>>>   Hi every1,
>>>
>>>   I've been doing all the steps sucessfully (by the way, with ellegant
>>> workArounds to Oracle) of '<a href="
>>> http://appfuse.org/display/APF/Tutorials";>Person-CRUD<http://appfuse.org/display/APF/Tutorials%22%3EPerson-CRUD>(Tutorials)</a>'.
>>>  But, when I doing the step listed in '<a href="
>>> http://appfuse.org/display/APF/Using+Struts+2#UsingStruts2-webtest";>Canoo<http://appfuse.org/display/APF/Using+Struts+2#UsingStruts2-webtest%22%3ECanoo>WebTest</a>'
>>>  and ran '<b>mvn integration-test -Dtest=PersonTests</b>'.
>>> However, I simply get a msg as saw in picture
>>> "CanWebTst.jpg".
>>>
>>> (Obs.: it's funny coz I try the same cmd, but with 'UserTests' (original
>>> of AppFuse) (instead of 'PersonTests') and I get the same result! :o)
>>>   I also even tried the option suggest by fellow Gareth (integration-test
>>> DfailIfNoTests=false<http://www.nabble.com/integration-test--DfailIfNoTests%3Dfalse-tp15022511s2369p15022511.html>),
>>> but then
>>>
>>> Ice-Man
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>
>>
> <FldStarTmcat.JPG>---------------------------------------------------------------------
>
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>

Reply via email to