headless -Dwt.headless mode not working

View: New views
8 Messages — Rating Filter:   Alert me  

headless -Dwt.headless mode not working

by aldana :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

when passing headless setting to maven;
mvn test -Dwt.headless

the test-running-console and browser with result page still is opened.
does somebody experience the same issue with 3.0?
_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de

Re: headless -Dwt.headless mode not working

by Amelia A Lewis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 21 Jun 2009 19:29:55 +0200, manuel aldana wrote:
> when passing headless setting to maven;
> mvn test -Dwt.headless

Try mvn test -Dwt.headless=true (or any random value).  ant -Dproperty
doesn't have the same effect as ant -Dproperty=value, even if you're
only using the property for if/unless and isset.

Amy!
--
Amelia A. Lewis                    amyzing {at} talsever.org
Igne natura renovatur integra.
_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: headless -Dwt.headless mode not working

by aldana :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Amelia A Lewis schrieb:

> On Sun, 21 Jun 2009 19:29:55 +0200, manuel aldana wrote:
>  
>> when passing headless setting to maven;
>> mvn test -Dwt.headless
>>    
>
> Try mvn test -Dwt.headless=true (or any random value).  ant -Dproperty
> doesn't have the same effect as ant -Dproperty=value, even if you're
> only using the property for if/unless and isset.
>  
Forgot to mention, tried out this option already. But no success.

--
 manuel aldana
 aldana@...
 software-engineering blog: http://www.aldana-online.de

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de

Re: headless -Dwt.headless mode not working

by Victor Ott-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Was it a typo only in your email? It's "java.awt.headless", not "wt.headless":

-Djava.awt.headless=true



On Sun, Jun 21, 2009 at 11:39 PM, manuel aldana <aldana@...> wrote:
Amelia A Lewis schrieb:

On Sun, 21 Jun 2009 19:29:55 +0200, manuel aldana wrote:
 
when passing headless setting to maven;
mvn test -Dwt.headless
   

Try mvn test -Dwt.headless=true (or any random value).  ant -Dproperty doesn't have the same effect as ant -Dproperty=value, even if you're only using the property for if/unless and isset.
 
Forgot to mention, tried out this option already. But no success.

--
manuel aldana
aldana@...
software-engineering blog: http://www.aldana-online.de


_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest


Re: headless -Dwt.headless mode not working

by aldana :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It is documented as wt.headless
(http://webtest-community.canoo.com/jira/browse/WT-344).

-Djava.awt.headless=true does not work either.

Can anybody reproduce the headless config problem?

Victor Ott wrote:

> Was it a typo only in your email? It's "java.awt.headless", not
> "wt.headless":
>
> -Djava.awt.headless=true
>
>
>
> On Sun, Jun 21, 2009 at 11:39 PM, manuel aldana <aldana@...
> <mailto:aldana@...>> wrote:
>
>     Amelia A Lewis schrieb:
>
>         On Sun, 21 Jun 2009 19:29:55 +0200, manuel aldana wrote:
>          
>
>             when passing headless setting to maven;
>             mvn test -Dwt.headless
>                
>
>
>         Try mvn test -Dwt.headless=true (or any random value).  ant
>         -Dproperty doesn't have the same effect as ant
>         -Dproperty=value, even if you're only using the property for
>         if/unless and isset.
>          
>
>     Forgot to mention, tried out this option already. But no success.
>
>     --
>     manuel aldana
>     aldana@... <mailto:aldana@...>
>     software-engineering blog: http://www.aldana-online.de
>
>
>     _______________________________________________
>     WebTest mailing list
>     WebTest@... <mailto:WebTest@...>
>     http://lists.canoo.com/mailman/listinfo/webtest
>
>


--
 manuel aldana
 aldana@...
 software-engineering blog: http://www.aldana-online.de 

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de

Re: headless -Dwt.headless mode not working

by Victor Ott-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, you're right about wt.headless:

*g* how did I miss it?

For non-WebTest Maven:


Grüße,
Victor

On Tue, Jun 23, 2009 at 2:36 PM, manuel aldana <aldana@...> wrote:
It is documented as wt.headless (http://webtest-community.canoo.com/jira/browse/WT-344).

-Djava.awt.headless=true does not work either.

Can anybody reproduce the headless config problem?

Victor Ott wrote:
Was it a typo only in your email? It's "java.awt.headless", not "wt.headless":

-Djava.awt.headless=true


On Sun, Jun 21, 2009 at 11:39 PM, manuel aldana <aldana@... <mailto:aldana@...>> wrote:

   Amelia A Lewis schrieb:

       On Sun, 21 Jun 2009 19:29:55 +0200, manuel aldana wrote:
       
           when passing headless setting to maven;
           mvn test -Dwt.headless
             

       Try mvn test -Dwt.headless=true (or any random value).  ant
       -Dproperty doesn't have the same effect as ant
       -Dproperty=value, even if you're only using the property for
       if/unless and isset.
       
   Forgot to mention, tried out this option already. But no success.

   --    manuel aldana


Re: headless -Dwt.headless mode not working

by aldana :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I found the reason, with 'mvn verify -Dwt.headless' maven does not pass
this parameter to the surefire/failsafe plugin. Maybe this changed since
maven 2.1, I can't remember that I had such problems with former maven
versions.

Therefore it is necessary to do:
...
//surefire
<plugin>
...
 <configuration>
    <argLine>-Dwt.headless</argLine>
 ...
</plugin>


Generally it would be nice, if wt.headless would also accept a
false/true value, so one could enable or disable it from mvn CLI:

<properties>
 <!-- by default switched on -->
 <wt.headless>true</wt.headless>
</properties>
...
<argLine>-Dwt.headless=${wt.headless}</argLine>


Currently just mentioning wt.headless makes the build headless.
 

manuel aldana schrieb:
> when passing headless setting to maven;
> mvn test -Dwt.headless
>
> the test-running-console and browser with result page still is opened.
> does somebody experience the same issue with 3.0?
> _______________________________________________
> WebTest mailing list
> WebTest@...
> http://lists.canoo.com/mailman/listinfo/webtest


--
 manuel aldana
 aldana@...
 software-engineering blog: http://www.aldana-online.de

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de

Re: headless -Dwt.headless mode not working

by aldana :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-Djava.awt.headless works also and does not open the console, never the
less with this env, webtest still tries to open a browser window.

In the end the wt.headless is more appropriate because it switches
browser linkage off also.



Victor Ott schrieb:

> Yes, you're right about wt.headless:
> http://mguillem.wordpress.com/2009/04/30/webtest-with-groovy-maven-and-eclipse/
> http://groovy.dzone.com/news/webtest-groovy-maven-and
>
> *g* how did I miss it?
>
> For non-WebTest Maven:
> http://marc.info/?t=113021227600003&r=1&w=2 
> <http://marc.info/?t=113021227600003&r=1&w=2>
>
>
> Grüße,
> Victor
>
> On Tue, Jun 23, 2009 at 2:36 PM, manuel aldana <aldana@...
> <mailto:aldana@...>> wrote:
>
>     It is documented as wt.headless
>     (http://webtest-community.canoo.com/jira/browse/WT-344).
>
>     -Djava.awt.headless=true does not work either.
>
>     Can anybody reproduce the headless config problem?
>
>     Victor Ott wrote:
>
>         Was it a typo only in your email? It's "java.awt.headless",
>         not "wt.headless":
>
>         -Djava.awt.headless=true
>
>
>         On Sun, Jun 21, 2009 at 11:39 PM, manuel aldana <aldana@...
>         <mailto:aldana@...> <mailto:aldana@...
>         <mailto:aldana@...>>> wrote:
>
>            Amelia A Lewis schrieb:
>
>                On Sun, 21 Jun 2009 19:29:55 +0200, manuel aldana wrote:
>                
>                    when passing headless setting to maven;
>                    mvn test -Dwt.headless
>                      
>
>                Try mvn test -Dwt.headless=true (or any random value).  ant
>                -Dproperty doesn't have the same effect as ant
>                -Dproperty=value, even if you're only using the
>         property for
>                if/unless and isset.
>                
>            Forgot to mention, tried out this option already. But no
>         success.
>
>            --    manuel aldana
>
>


--
 manuel aldana
 aldana@...
 software-engineering blog: http://www.aldana-online.de

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de