Hi Mark,

Thanks for your reply to my query...

${report.focus} is a parameter I have set in my properties file... that bit
you knew already... ;-) It evaluates to the following value: 'Items for a
Sub'

This is the only value I'm using for report.focus at the moment, I
parameterised it initially with the intention of making that part of my
webtest more reusable but, as yet, I haven't needed to use more that the
'Items for a Sub' value mentioned.

Making the full xpath:
    xpath="//sp...@class='pagetitle'][contains(.,'Items for a Sub')]"
(Part of a verifyXPath step to validate I have navigated to the intended
report page in my web app)

Full step:
    <verifyXPath
        xpath="//sp...@class='pagetitle'][contains(.,'${report.focus}')]"
        description="Verify that ${report.focus} page is open"
    />

Best Regards,
Colin.
On Wed, Jan 14, 2009 at 11:01 AM, <webtest-requ...@lists.canoo.com> wrote:

> Send WebTest mailing list submissions to
>        webtest@lists.canoo.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.canoo.com/mailman/listinfo/webtest
> or, via email, send a message with subject or body 'help' to
>        webtest-requ...@lists.canoo.com
>
> You can reach the person managing the list at
>        webtest-ad...@lists.canoo.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of WebTest digest..."
>
>
> Today's Topics:
>
>   1. Re: R_1714 to R_1737 differences...? (Colin O'Brien)
>   2. Re: Re: R_1714 to R_1737 differences...? (Marc Guillemot)
>   3. Re: Regular Expression in xpath (Marc Guillemot)
>   4. Re: Problem in using verifyText (Marc Guillemot)
>   5. Different properties to prevent the target
>       wt.defineMacros (S. Sanitz)
>   6. Re: Different properties to prevent the target wt.defineMacros (Marc
> Guillemot)
>
> --__--__--
>
> Message: 1
> Date: Tue, 13 Jan 2009 11:45:40 +0000
> From: "Colin O'Brien" <colin...@gmail.com>
> To: webtest@lists.canoo.com
> Subject: [Webtest] Re: R_1714 to R_1737 differences...?
> Reply-To: webtest@lists.canoo.com
> Reply-To: "Colin O'Brien" <colin...@gmail.com>
>
> ------=_Part_324829_24792575.1231847140138
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
>
> Hi All,
>
> Does anyone have any more info on the queries I made last week, below ...?
>
> Thanks & Regards,
> Colin.
>
> On Thu, Jan 8, 2009 at 12:23 PM, Colin O'Brien <colin...@gmail.com> wrote:
>
> > Hi All,
> >
> > I have two items I'd like to query... One is more of an observation than
> a
> > problem...
> >
> > 1) Has the 'browser' config attribute been added recently i.e. after
> > R1714...? I tried to use it with that release but got the error:
> >     config doesn't support the "browser" attribute
> > Upgrading to R_1737 corrected this, I'm just curious to know when it was
> > added in, or if there is an error in R_1714...
> >
> > 2) Now that I'm using R_1737 I'm seeing some unexpected behaviour with my
> > XPath addresses... From the WebTest Downloads page I have read that some
> > changes took place after R_1700 regarding how XPath addresses are
> > interpreted, have there been more changes to XPath interpretation between
> > R_1714 and R_1737...?
> >
> > For example, the following address resolves without issue on R_1714 but
> > does not match any nodes when used with R_1737
> >     xpath="//sp...@class='pagetitle'][contains(.,'${report.focus}')]"
> >
> > Is there something more I need to include in the contains() function to
> > make the address stricter or more compliant...? Do I need to use
> something
> > like
> >     contains(text(), string)
> >
> > Any and all help gratefully appreciated, thanks...
> >
> > Kind Regards,
> > Colin.
> >
>
> ------=_Part_324829_24792575.1231847140138
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
>
> <div>Hi All,</div>
> <div>&nbsp;</div>
> <div>Does anyone have any more info on the queries I made last week, below
> ...?</div>
> <div>&nbsp;</div>
> <div>Thanks &amp; Regards,</div>
> <div>Colin.<br><br></div>
> <div class="gmail_quote">On Thu, Jan 8, 2009 at 12:23 PM, Colin O&#39;Brien
> <span dir="ltr">&lt;<a 
> href="mailto:colin...@gmail.com";>colin...@gmail.com</a>&gt;</span>
> wrote:<br>
> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px
> 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
> <div>Hi All,</div>
> <div>&nbsp;</div>
> <div>I have two items I&#39;d like to query... One is more of an
> observation than a problem...</div>
> <div>&nbsp;</div>
> <div>1) Has the &#39;browser&#39; config attribute been added recently i.e.
> after R1714...? I tried to use it with that release but got the error:</div>
> <div>&nbsp;&nbsp;&nbsp; config doesn&#39;t support the &quot;browser&quot;
> attribute</div>
> <div>Upgrading to R_1737 corrected this, I&#39;m just curious to
> know&nbsp;when it was added in, or if there is an error in R_1714...</div>
> <div>&nbsp;</div>
> <div>2) Now that I&#39;m using R_1737 I&#39;m seeing some unexpected
> behaviour with my XPath addresses... From the WebTest Downloads page I have
> read that some changes took place after R_1700 regarding how XPath addresses
> are interpreted, have there been more changes to XPath interpretation
> between R_1714 and R_1737...?</div>
>
> <div>&nbsp;</div>
> <div>For example, the following address&nbsp;resolves without issue on
> R_1714 but does not match any nodes when used with R_1737</div>
> <div>&nbsp;&nbsp;&nbsp;
> xpath=&quot;//sp...@class=&#39;pagetitle&#39;][contains(.,&#39;${report.focus}&#39;)]&quot;</div>
> <div>&nbsp;</div>
> <div>Is there something more I need to include in the contains() function
> to make the address stricter or more compliant...? Do I need to use
> something like </div>
> <div>&nbsp;&nbsp;&nbsp; contains(text(), string)</div>
> <div>&nbsp;</div>
> <div>Any and all help gratefully appreciated, thanks...</div>
> <div>&nbsp;</div>
> <div>Kind Regards,</div>
> <div>Colin.</div></blockquote></div><br>
>
> ------=_Part_324829_24792575.1231847140138--
>
> --__--__--
>
> Message: 2
> Date: Tue, 13 Jan 2009 17:15:17 +0100
> From: Marc Guillemot <mguille...@yahoo.fr>
> To: webtest@lists.canoo.com
> Subject: Re: [Webtest] Re: R_1714 to R_1737 differences...?
> Reply-To: webtest@lists.canoo.com
> Reply-To: Marc Guillemot <mguille...@yahoo.fr>
>
> Hi Colin,
>
> I flagged your message to answer it and then I forgot...
>
> On http://webtest.canoo.com/buildservlet/BuildServlet you'll have the
> possibility to see all changes made for each build (reading the commit
> comments is normally informative enough).
>
> Furthermore important changes have always an associated JIRA issue for
> which a mail is posted to the mailing list when they are open and closed:
> WT-481 (fixed in build 1732): added config option "browser"
>
> Concerning your second issue: for which value of ${report.focus} do you
> encounter issues? It could be related to the upgrade to HtmlUnit-2.4
> (WT-480).
>
> Cheers,
> Marc.
> --
> Blog: http://mguillem.wordpress.com
>
>
> Colin O'Brien wrote:
> > Hi All,
> >
> > Does anyone have any more info on the queries I made last week, below
> ...?
> >
> > Thanks & Regards,
> > Colin.
> >
> > On Thu, Jan 8, 2009 at 12:23 PM, Colin O'Brien <colin...@gmail.com
> > <mailto:colin...@gmail.com>> wrote:
> >
> >     Hi All,
> >
> >     I have two items I'd like to query... One is more of an observation
> >     than a problem...
> >
> >     1) Has the 'browser' config attribute been added recently i.e. after
> >     R1714...? I tried to use it with that release but got the error:
> >         config doesn't support the "browser" attribute
> >     Upgrading to R_1737 corrected this, I'm just curious to know when it
> >     was added in, or if there is an error in R_1714...
> >
> >     2) Now that I'm using R_1737 I'm seeing some unexpected behaviour
> >     with my XPath addresses... From the WebTest Downloads page I have
> >     read that some changes took place after R_1700 regarding how XPath
> >     addresses are interpreted, have there been more changes to XPath
> >     interpretation between R_1714 and R_1737...?
> >
> >     For example, the following address resolves without issue on R_1714
> >     but does not match any nodes when used with R_1737
> >         xpath="//sp...@class='pagetitle'][contains(.,'${report.focus}')]"
> >
> >     Is there something more I need to include in the contains() function
> >     to make the address stricter or more compliant...? Do I need to use
> >     something like
> >         contains(text(), string)
> >
> >     Any and all help gratefully appreciated, thanks...
> >
> >     Kind Regards,
> >     Colin.
> >
> >
>
>
>
> --__--__--
>
> Message: 3
> Date: Tue, 13 Jan 2009 17:17:33 +0100
> From: Marc Guillemot <mguille...@yahoo.fr>
> To: webtest@lists.canoo.com
> Subject: Re: [Webtest] Regular Expression in xpath
> Reply-To: webtest@lists.canoo.com
> Reply-To: Marc Guillemot <mguille...@yahoo.fr>
>
> Hi,
>
> WebTest supports (or tries to) the XPath2 function "matches":
> http://www.w3.org/TR/xquery-operators/#func-matches
>
> Cheers,
> Marc.
> --
> Blog: http://mguillem.wordpress.com
>
> Harihara Vinayakaram wrote:
> > Hi
> >   Can somebody point me to how I use regular expression in xpath
> >
> > The following does not work
> > verifyXPath (description: "Check for presence of login form",
> >                  xpath:"//fo...@id='user-*-form']")
> >
> > What is the correct way to specifying regular expressions
> >
> > Thanks
> >
> > Regards
> > Hari
>
>
>
> --__--__--
>
> Message: 4
> Date: Tue, 13 Jan 2009 17:23:56 +0100
> From: Marc Guillemot <mguille...@yahoo.fr>
> To: webtest@lists.canoo.com
> Subject: Re: [Webtest] Problem in using verifyText
> Reply-To: webtest@lists.canoo.com
> Reply-To: Marc Guillemot <mguille...@yahoo.fr>
>
> Hi,
>
> do you really want to check it that precisely? Your test will fail very
> after each minimal change.
>
> If you have a failure, can you provide the failure message, it helps to
> understand what happens.
>
> Cheers,
> Marc.
> --
> Blog: http://mguillem.wordpress.com
>
> Vikas Lall wrote:
> > Hi All
> >
> > I have the  following code snippet in jsp to verify using Webtest.Canoo.
> >
> > <h2>Struts Examples with Code</h2>
> > <p>This is a collection of examples which demonstrate some of the more
> > frequently
> >   used Struts Tags. Familiarity with the Java(tm) Programming Language
> and
> > HTML
> >   is assumed. </p>
> > <p>To navigate your way through the examples, the following icons will
> > help: </p>
> > <table border="0" cellspacing="5" width="85%" >
> >   <tr valign="top">
> >     <td width="30"><img alt="" src="images/execute.gif" /></td>
> >     <td>Execute the example</td>
> >   </tr>
> >
> > I had been trying to test using verifyText  but in vain.
> >
> >         <verifyText description ="Struts Examples with Code"
> >          text="&lt;h2&gt;Struts Examples with Code&lt;/h2&gt;" />
> >
> >          <verifyText description ="Struts Examples with Code"
> >          text="&lt;p&gt;This is a collection of examples which
> demonstrate
> > some of the more frequently" regex="true" />
> >          <!-- verifyText description ="Struts Examples with Code"
> > text="  used Struts Tags. Familiarity with the Java&lang;tm&rang;
> > Programming Language and HTML" regex="true" /-->
> >          <verifyText description ="Struts Examples with Code"
> >          text="  is assumed. &lt;/p&gt;" />
> >          <verifyText description ="Struts Examples with Code"
> >          text="Execute the example" />
> >
> > Please note that the first verifyText tag executes successfully but it
> > fails in subsequent steps.
> >
> > Please suggest me a better way to do....
> >
> > Regards
> >
> > Vikas Lall
> >
> > =====-----=====-----=====
> > Notice: The information contained in this e-mail
> > message and/or attachments to it may contain
> > confidential or privileged information. If you are
> > not the intended recipient, any dissemination, use,
> > review, distribution, printing or copying of the
> > information contained in this e-mail message
> > and/or attachments to it are strictly prohibited. If
> > you have received this communication in error,
> > please notify us by reply e-mail or telephone and
> > immediately and permanently delete the message
> > and any attachments. Thank you
> >
> >
> >
> > _______________________________________________
> > WebTest mailing list
> > WebTest@lists.canoo.com
> > http://lists.canoo.com/mailman/listinfo/webtest
> >
>
>
>
> --__--__--
>
> Message: 5
> Date: Tue, 13 Jan 2009 08:40:25 -0800 (PST)
> From: "S. Sanitz" <sebastian.san...@akquinet.de>
> To: webtest@lists.canoo.com
> Subject: [Webtest] Different properties to prevent the target
>  wt.defineMacros
> Reply-To: webtest@lists.canoo.com
> Reply-To: "S. Sanitz" <sebastian.san...@akquinet.de>
>
>
> Hello,
> I am only curious.... in WEBTEST_HOME/webtest.xml ist the target
> wt.defineMacros. This target is prevented from running twice with the
> property wt.defineMacros.skip
>
> In the generated file definitions.xml appears the same target, but here it
> is prevented from running twice with the property macroDefined - the origin
> seems to be generateDefinitions.groovy.
>
> Why are there different properties to prevent the target wt.defineMacros?
>
> Regards - Sebastian
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Different-properties-to-prevent-the-target-wt.defineMacros-tp21439475p21439475.html
> Sent from the WebTest mailing list archive at Nabble.com.
>
>
> --__--__--
>
> Message: 6
> Date: Tue, 13 Jan 2009 23:43:49 +0100
> From: Marc Guillemot <mguille...@yahoo.fr>
> To: webtest@lists.canoo.com
> Subject: Re: [Webtest] Different properties to prevent the target
> wt.defineMacros
> Reply-To: webtest@lists.canoo.com
> Reply-To: Marc Guillemot <mguille...@yahoo.fr>
>
> S. Sanitz wrote:
> > Hello,
> > I am only curious.... in WEBTEST_HOME/webtest.xml ist the target
> > wt.defineMacros. This target is prevented from running twice with the
> > property wt.defineMacros.skip
> >
> > In the generated file definitions.xml appears the same target, but here
> it
> > is prevented from running twice with the property macroDefined - the
> origin
> > seems to be generateDefinitions.groovy.
> >
> > Why are there different properties to prevent the target wt.defineMacros?
>
> this is probably due to the lack of reviewers ;-)
>
> Cheers,
> Marc.
> --
> Blog: http://mguillem.wordpress.com
>
>
>
>
> --__--__--
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
>
> End of WebTest Digest
>

Reply via email to