[Webtest] [webtest][JIRA] Closed: (WT-452) verifyLinks - exclude option doesnot function

david.cate@wachovia.com david.cate@wachovia.com
Thu, 24 Jul 2008 09:18:50 -0400


This is a multipart message in MIME format.
--=_alternative 0049230F85257490_=
Content-Type: text/plain; charset="US-ASCII"

Agreed - so when i have a link

<a href="http://127.0.0.1:7199/Statements/js/prototype/dragdrop.js#600
">blah-blah</a>

and want to exclude the JS file - that should work, correct?

BTW, the Grails-Plugin is 0.4. I wound up just using the disabling 
Javascript. As far as your option #4 - the problem is in a 3rd party piece 
calling a method on an object without testing for null first. May be bad 
HTML design on the page (more than likely) so not sure if anything is 
needed there.




Marc Guillemot <mguillemot@yahoo.fr> 
Sent by: webtest-admin@gate4.canoo.com
07/24/2008 08:56 AM
Please respond to
webtest@gate4.canoo.com


To
webtest@gate4.canoo.com
cc

Subject
Re: [Webtest] [webtest][JIRA] Closed: (WT-452) verifyLinks -    exclude 
option doesnot function






???

for me a link is simply <a href="...">,,,</a>. Do you understand
something else with "link" in an html page?

Marc.
-- 
Blog: http://mguillem.wordpress.com


david.cate@wachovia.com wrote:
> 
> Ok, is there a list of things that are assumed not to be "links" - I
> assumed the standard definition of all URL was being used since anything
> can be linked
> 
> 
> 
> *"Marc Guillemot (JIRA)" <noreply@canoo.com>*
> Sent by: webtest-admin@gate4.canoo.com
> 
> 07/24/2008 03:27 AM
> Please respond to
> webtest@gate4.canoo.com
> 
> 
> 
> To
>                webtest@gate4.canoo.com
> cc
> 
> Subject
>                [Webtest] [webtest][JIRA] Closed: (WT-452) verifyLinks - 
exclude 
>   option doesnot function
> 
> 
> 
> 
> 
> 
> 
> 
>      [ http://webtest-community.canoo.com/jira/browse/WT-452?page=all ]
> 
> Marc Guillemot closed WT-452:
> -----------------------------
> 
>    Resolution: Invalid
>     Assign To: Marc Guillemot
> 
>>From the doc for the excludes attribute: "If excludes is set then each
> link found is compared ..., if it matches then the link is not
> followed.". JS files aren't link (at least normally) therefore it
> doesn't apply for js files.
> 
> You can configure the options in Grails as well, have a look at the
> super class of your test and you'll see how it is setup and what you
> have to overwrite to configure it as you want.
> 
> Which version of the Grails-webtest plugin do you use? Normally
> prototype's drag & drop shouldn't cause any problem.
> 
>> verifyLinks - exclude option does not function
>> ----------------------------------------------
>>
>>          Key: WT-452
>>          URL: http://webtest-community.canoo.com/jira/browse/WT-452
>>      Project: WebTest
>>         Type: Bug
> 
>>     Versions: 2.6
>>  Environment: Windows XP 2GB Ram , 30GB disk, JDK1.4 & JDK1.5, ANT 
1.6.5
>> Also fails on Tru64 32GB RAM, 4TB disk(s), HP JDK 1.4, ANT 1.6.5
>>     Reporter: David Cate
>>     Assignee: Marc Guillemot
> 
>>
>> During invoking verifyLinks task, error message occurs based on
> Javascript file for script.aculo.us.
>> The link is 
http://127.0.0.1:7199/Statements/js/prototype/dragdrop.js#600
>> I'm using XML in 1 branch and tried to exclude the file with
> "\\S*\\.js\\S*". I tested the regular expression and returned a true
> pattern match - but the task is not excluding the file. When I add
>> <config>
>> <option name="ThrowExceptionOnScriptError" value="false" />
>> </config>
>> everything works fine.
>> the primary branch of the project is written in GRAILS 1.0.2 and I
> would like to leverage the groovy power. However, the exclude doesn't
> work and access to the child element is unavailable. The
> Webtest.properties assumes the attributes of the config while the rest
> of the files assume a test level access with no access to the config
> modification that I can find.
> 
> -- 
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
>   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
>   http://www.atlassian.com/software/jira
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> 

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


--=_alternative 0049230F85257490_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Agreed - so when i have a link</font>
<br>
<br><font size=2 face="sans-serif">&lt;a href=&quot;</font><font size=2><tt>http://127.0.0.1:7199/Statements/js/prototype/dragdrop.js#600</tt></font><font size=2 face="sans-serif">&quot;&gt;blah-blah&lt;/a&gt;</font>
<br>
<br><font size=2 face="sans-serif">and want to exclude the JS file - that
should work, correct?</font>
<br>
<br><font size=2 face="sans-serif">BTW, the Grails-Plugin is 0.4. I wound
up just using the disabling Javascript. As far as your option #4 - the
problem is in a 3rd party piece calling a method on an object without testing
for null first. May be bad HTML design on the page (more than likely) so
not sure if anything is needed there.</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Marc Guillemot &lt;mguillemot@yahoo.fr&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: webtest-admin@gate4.canoo.com</font>
<p><font size=1 face="sans-serif">07/24/2008 08:56 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
webtest@gate4.canoo.com</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">webtest@gate4.canoo.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Webtest] [webtest][JIRA] Closed:
(WT-452) verifyLinks - &nbsp; &nbsp; &nbsp; &nbsp; exclude &nbsp;
&nbsp; &nbsp; &nbsp;option doesnot function</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>???<br>
<br>
for me a link is simply &lt;a href=&quot;...&quot;&gt;,,,&lt;/a&gt;. Do
you understand<br>
something else with &quot;link&quot; in an html page?<br>
<br>
Marc.<br>
-- <br>
Blog: http://mguillem.wordpress.com<br>
<br>
<br>
david.cate@wachovia.com wrote:<br>
&gt; <br>
&gt; Ok, is there a list of things that are assumed not to be &quot;links&quot;
- I<br>
&gt; assumed the standard definition of all URL was being used since anything<br>
&gt; can be linked<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; *&quot;Marc Guillemot (JIRA)&quot; &lt;noreply@canoo.com&gt;*<br>
&gt; Sent by: webtest-admin@gate4.canoo.com<br>
&gt; <br>
&gt; 07/24/2008 03:27 AM<br>
&gt; Please respond to<br>
&gt; webtest@gate4.canoo.com<br>
&gt; <br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; To<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;webtest@gate4.canoo.com<br>
&gt; cc<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; Subject<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[Webtest]
[webtest][JIRA] Closed: (WT-452) verifyLinks - exclude &nbsp; &nbsp; &nbsp;<br>
&gt; &nbsp; option doesnot function<br>
&gt; <br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp;[ http://webtest-community.canoo.com/jira/browse/WT-452?page=all
]<br>
&gt; &nbsp; &nbsp;<br>
&gt; Marc Guillemot closed WT-452:<br>
&gt; -----------------------------<br>
&gt; <br>
&gt; &nbsp; &nbsp;Resolution: Invalid<br>
&gt; &nbsp; &nbsp; Assign To: Marc Guillemot<br>
&gt; <br>
&gt;&gt;From the doc for the excludes attribute: &quot;If excludes is set
then each<br>
&gt; link found is compared ..., if it matches then the link is not<br>
&gt; followed.&quot;. JS files aren't link (at least normally) therefore
it<br>
&gt; doesn't apply for js files.<br>
&gt; <br>
&gt; You can configure the options in Grails as well, have a look at the<br>
&gt; super class of your test and you'll see how it is setup and what you<br>
&gt; have to overwrite to configure it as you want.<br>
&gt; <br>
&gt; Which version of the Grails-webtest plugin do you use? Normally<br>
&gt; prototype's drag &amp; drop shouldn't cause any problem.<br>
&gt; <br>
&gt;&gt; verifyLinks - exclude option does not function<br>
&gt;&gt; ----------------------------------------------<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Key: WT-452<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;URL: http://webtest-community.canoo.com/jira/browse/WT-452<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;Project: WebTest<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; Type: Bug<br>
&gt; <br>
&gt;&gt; &nbsp; &nbsp; Versions: 2.6<br>
&gt;&gt; &nbsp;Environment: Windows XP 2GB Ram , 30GB disk, JDK1.4 &amp;
JDK1.5, ANT 1.6.5<br>
&gt;&gt; Also fails on Tru64 32GB RAM, 4TB disk(s), HP JDK 1.4, ANT 1.6.5<br>
&gt;&gt; &nbsp; &nbsp; Reporter: David Cate<br>
&gt;&gt; &nbsp; &nbsp; Assignee: Marc Guillemot<br>
&gt; <br>
&gt;&gt;<br>
&gt;&gt; During invoking verifyLinks task, error message occurs based on<br>
&gt; Javascript file for script.aculo.us.<br>
&gt;&gt; The link is http://127.0.0.1:7199/Statements/js/prototype/dragdrop.js#600<br>
&gt;&gt; I'm using XML in 1 branch and tried to exclude the file with<br>
&gt; &quot;\\S*\\.js\\S*&quot;. I tested the regular expression and returned
a true<br>
&gt; pattern match - but the task is not excluding the file. When I add<br>
&gt;&gt; &lt;config&gt;<br>
&gt;&gt; &lt;option name=&quot;ThrowExceptionOnScriptError&quot; value=&quot;false&quot;
/&gt;<br>
&gt;&gt; &lt;/config&gt;<br>
&gt;&gt; everything works fine.<br>
&gt;&gt; the primary branch of the project is written in GRAILS 1.0.2 and
I<br>
&gt; would like to leverage the groovy power. However, the exclude doesn't<br>
&gt; work and access to the child element is unavailable. The<br>
&gt; Webtest.properties assumes the attributes of the config while the
rest<br>
&gt; of the files assume a test level access with no access to the config<br>
&gt; modification that I can find.<br>
&gt; <br>
&gt; -- <br>
&gt; This message is automatically generated by JIRA.<br>
&gt; -<br>
&gt; If you think it was sent incorrectly contact one of the administrators:<br>
&gt; &nbsp; http://webtest-community.canoo.com/jira/secure/Administrators.jspa<br>
&gt; -<br>
&gt; For more information on JIRA, see:<br>
&gt; &nbsp; http://www.atlassian.com/software/jira<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; WebTest mailing list<br>
&gt; WebTest@lists.canoo.com<br>
&gt; http://lists.canoo.com/mailman/listinfo/webtest<br>
&gt; <br>
<br>
_______________________________________________<br>
WebTest mailing list<br>
WebTest@lists.canoo.com<br>
http://lists.canoo.com/mailman/listinfo/webtest<br>
</tt></font>
<br>
--=_alternative 0049230F85257490_=--