Yes I have followed that suggestion and reconfigured the maven-antrun-plugin
as follows
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<configuration>
<tasks>
<taskdef
resource="webtest_base_relaxed.taskdef">
<classpath
refid="maven.test.classpath" />
</taskdef>
<property name="activeProxy.host"
value="${settings.activeProxy.host}" />
<property name="activeProxy.port"
value="${settings.activeProxy.port}" />
<property name="activeProxy.user"
value="${settings.activeProxy.username}" />
<property
name="activeProxy.password" value="${settings.activeProxy.password}" />
<property
name="activeProxy.nonProxyHosts"
value="${settings.activeProxy.nonProxyHosts}" />
<taskdef name="setproxy"
classname="org.apache.tools.ant.taskdefs.optional.net.SetProxy" />
<setproxy
proxyhost="${settings.activeProxy.host}"
proxyport="${settings.activeProxy.port}"
proxypassword="${settings.activeProxy.password}"
proxyuser="${settings.activeProxy.username}"
nonproxyhosts="${settings.activeProxy.nonProxyHosts}" />
<!-- get
src="${featureDownloadUrl}/${featureArchive}"
dest="target/${featureArchive}" /-->
<mkdir dir="target/webtest-data" />
<delete
file="target/webtest-data/web-tests-result.xml" />
<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>
</tasks>
</configuration>
<phase>integration-test</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-nodeps</artifactId>
<version>1.6.5</version>
</dependency>
<dependency>
<groupId>com.canoo</groupId>
<artifactId>webtest</artifactId>
<version>${webtest.version}</version>
<exclusions>
<exclusion>
<groupId>javax.xml</groupId>
<artifactId>jsr173</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>${javamail.version}</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>oro</groupId>
<artifactId>oro</artifactId>
<version>${oro.version}</version>
</dependency>
</dependencies>
</plugin>
At the bottom of the pom I added:
<settings.activeProxy.host>wwwproxy.my.com</settings.activeProxy.host>
<settings.activeProxy.port>1080</settings.activeProxy.port>
<settings.activeProxy.username>MyUser</settings.activeProxy.username>
<settings.activeProxy.password>MyPassWord</settings.activeProxy.password>
<settings.activeProxy.nonProxyHosts>localhost</settings.activeProxy.nonProxyHosts>
Now I'm not sure this is correct or if it has any effect as I still fail
with the same proxy authentication error as before. This configuration look
right to you?
mraible wrote:
>
> On 9/23/07, tnsilver <[EMAIL PROTECTED]> wrote:
>>
>> I have done some research and tests of my own. It seems this is a real
>> show
>> stopper. First of all I have tried to integrate Ant's <setproxy> task
>> into
>> the pom, right before the call to web-tests.xml. It did not work. I got
>> the
>> usual 'Could not create task or type of type: setproxy' so I begun
>> upgrading
>> to 1.7.0, setting the classpaths and playing around with ant for a while.
>> Then I removed the task directly into the web-tests.xml, and made a
>> 'depends' entry in the 'Login' test... This did not work either. Finally,
>> I
>> encountered this issue: http://jira.codehaus.org/browse/MANTRUN-69
>> describing exactly my experience.
>
> Have you tried the solution given in the last comment. It looks like
> there's a solution there.
>
> Matt
>
>>
>> I am desperate. I have been working real hard on AppFuse2 evaluation as a
>> candidate infrastructure framework for a critical J2EE project in the
>> last 8
>> working days. I have solved almost everything but Unit testing (canoo /
>> JUnit / JMock) is a major consideration for my organization and is
>> crucial
>> for me to market this to my bosses. Well, we are working from behind a
>> firewall - can't help it. There is got to be a way to solve this. Is
>> there
>> any 'voodoo' thing you can think of?
>>
>> BTW: What happend to those nice JUnit html reports with emma coverage
>> from
>> AppFUse1? Can it still be done for Appfuse2?
>>
>> Thanks in advance
>>
>>
>>
>>
>> mraible wrote:
>> >
>> > I've heard of similar things caused by Canoo WebTest. Unfortunately, I
>> > don't have any way to reproduce/fix this so the best advice I can give
>> > is to contact the WebTest mailing list:
>> >
>> > http://webtest.canoo.com
>> >
>> > http://lists.canoo.com/mailman/listinfo/webtest/
>> >
>> > Matt
>> >
>> > On 9/23/07, tnsilver <[EMAIL PROTECTED]> wrote:
>> >>
>> >> I have almost got appfuse2-m5 (struts) working and all tutorials
>> finished
>> >> and
>> >> tested. Most of my problems originate from the fact that my Appfuse
>> >> evaluation is done at work behind a proxy. I have managed to
>> configured a
>> >> central repository for my team mates and me, configured proxy settings
>> >> for
>> >> MyEclipse, Subversion and Maven and most of my tests passed. I am
>> using
>> >> Hibenrate and Oracle 10g and my models use Oracle sequences - it all
>> >> works -
>> >> leave asside some minor issue I encountered (APF-902).
>> >>
>> >> I am currently stuck with the last tutorial integration test (person
>> >> tests).
>> >> I am getting an obscured error regarding proxy authentication (e.g.
>> the
>> >> webtest data files say '407 Proxy Authentication Required' and 'Unable
>> to
>> >> complete request:<P> Access denied due to authentication failure')
>> >>
>> >> I guess this has something to do with the login.xml and login page
>> >> (perhaps
>> >> I need proxy settings for https and not just http... how? where?...)
>> has
>> >> anyone enocuntered this? Any suggestions?
>> >>
>> >> Thanks in advance.
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Integration-Test-fails-due-to-%27proxy%27-authentication-problem-tf4504888s2369.html#a12847623
>> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > http://raibledesigns.com
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>>
>> View this message in context:
>> http://www.nabble.com/Integration-Test-fails-due-to-%27proxy%27-authentication-problem-tf4504888s2369.html#a12849820
>>
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Integration-Test-fails-due-to-%27proxy%27-authentication-problem-tf4504888s2369.html#a12864245
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]