[Webtest] Steps for selectField elements
Goldberger, Michael
Goldberger, Michael" <mgoldberger@northnetwork.com
Thu, 11 Jan 2007 09:16:33 -0500
This is a multi-part message in MIME format.
------_=_NextPart_001_01C7358B.19011B5E
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Thanks John and Pip, unfortunately there are some things going on behind
the scenes that make use of that idea not possible under these
circumstances. I am however interested in checking for the existence of
a specific item within a select field using xPath and think that I will
go down that route. Thanks again to all that contributed their opinions
/ suggestions.
=20
Mike
=20
________________________________
From: webtest-admin@gate2.canoo.com
[mailto:webtest-admin@gate2.canoo.com] On Behalf Of John and Pip
Sent: Wednesday, January 10, 2007 4:17 PM
To: webtest@gate2.canoo.com; Goldberger, Michael
Cc: webtest@gate2.canoo.com; Marc Guillemot
Subject: Re: [Webtest] Steps for selectField elements
=20
Unless there are some side-effects e.g. javascript being triggered that
you don't want, one way to do it is just to try to set each of the known
items that you want to check for. You can then do the same thing in a
<not> block for the ones that shouldn't be there.=20
<setSelectField name=3D"${SFF.ServiceClass}"
value=3D"${SFF.ServiceClass.Options.Business}"/>
<setSelectField name=3D"${SFF.ServiceClass}"
value=3D"${SFF.ServiceClass.Options.Economy }"/>
<setSelectField name=3D"${SFF.ServiceClass}"
value=3D"${SFF.ServiceClass.Options.PE}"/>
<not description=3D"This step encapsulates one or more test steps that =
are
ALL expected to fail. Any kind of step can be nested." >=20
<setSelectField name=3D"${SFF.ServiceClass}"
value=3D"${SFF.ServiceClass.Options.SS}"/>
<setSelectField name=3D"${SFF.ServiceClass}"
value=3D"${SFF.ServiceClass.Options.FS }"/>
<setSelectField name=3D"${SFF.ServiceClass}"
value=3D"${SFF.ServiceClass.Options.FF}"/>
</not>
On 1/11/07, Goldberger, Michael <mgoldberger@northnetwork.com> wrote:
Could you elaborate on what would be the best solution to verify that a
select field contains a specific item (known). Which steps would be most
accurate for performing that task?
-----Original Message-----
From: webtest-admin@gate2.canoo.com
[mailto:webtest-admin@gate2.canoo.com] On Behalf Of Marc Guillemot
Sent: Wednesday, January 10, 2007 2:12 AM=20
To: webtest@gate2.canoo.com
Subject: Re: [Webtest] Steps for selectField elements
otherwise you can use <not>:
<not>
...some verifications that should fail...=20
</not>
Charlie Kuharski wrote:
>
> I typically use XPath is the data is known.
>
> Goldberger, Michael wrote:
>>
>> Hi all,
>>
>>
>>=20
>> I was wondering what the members of this list do when you need to
>> verify the existence / non-existence of specific items in a
>> selectField element.
>>
>>
>>
>> Any ideas at all that seem more accurate and/or efficient that
>> multiple regular expressions (verifyText) and just trying to match
>> enough unique data.
>>
>>
>>
>> As always, your help is appreciated
>>
>>
>>
>> Mike
>>
>
>
--
View this message in context:
http://www.nabble.com/Steps-for-selectField-elements-tf2947069.html#a825
3102
Sent from the WebTest mailing list archive at Nabble.com.
_______________________________________________=20
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________=20
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest
=20
------_=_NextPart_001_01C7358B.19011B5E
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dblue>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Thanks John and Pip, unfortunately =
there
are some things going on behind the scenes that make use of that idea =
not
possible under these circumstances. I am however interested in checking =
for the
existence of a specific item within a select field using xPath and think =
that I
will go down that route. Thanks again to all that contributed their =
opinions /
suggestions.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Mike<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>
<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>
</span></font></div>
<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>
webtest-admin@gate2.canoo.com [mailto:webtest-admin@gate2.canoo.com] =
<b><span
style=3D'font-weight:bold'>On Behalf Of </span></b>John and Pip<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Wednesday, January =
10, 2007
4:17 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
webtest@gate2.canoo.com;
Goldberger, Michael<br>
<b><span style=3D'font-weight:bold'>Cc:</span></b> =
webtest@gate2.canoo.com; Marc
Guillemot<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Re: [Webtest] =
Steps for
selectField elements</span></font><o:p></o:p></p>
</div>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Unless there =
are some
side-effects e.g. javascript being triggered that you don't want, one =
way to do
it is just to try to set each of the known items that you want to check =
for.
You can then do the same thing in a <not> block for the ones that =
shouldn't
be there. <br>
<br>
<setSelectField name=3D"${SFF.ServiceClass}"
value=3D"${SFF.ServiceClass.Options.Business}"/><br>
<setSelectField name=3D"${SFF.ServiceClass}"
value=3D"${SFF.ServiceClass.Options.Economy }"/><br>
<setSelectField name=3D"${SFF.ServiceClass}" =
value=3D"${<a
href=3D"http://SFF.ServiceClass.Options.PE">SFF.ServiceClass.Options.PE</=
a>}"/><br>
<not description=3D"This step encapsulates one or more test =
steps that
are ALL expected to fail. Any kind of step can be nested." > =
<br>
=
<setSelectField name=3D"${SFF.ServiceClass}"
value=3D"${SFF.ServiceClass.Options.SS}"/><br>
=
<setSelectField name=3D"${SFF.ServiceClass}"
value=3D"${SFF.ServiceClass.Options.FS }"/><br>
=
<setSelectField name=3D"${SFF.ServiceClass}"
value=3D"${SFF.ServiceClass.Options.FF}"/><br>
</not><br>
<br>
<br>
<o:p></o:p></span></font></p>
<div>
<p class=3DMsoNormal><span class=3Dgmailquote><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>On 1/11/07, <b><span =
style=3D'font-weight:bold'>Goldberger,
Michael</span></b> <<a =
href=3D"mailto:mgoldberger@northnetwork.com">mgoldberger@northnetwork.com=
</a>>
wrote:</span></font></span><o:p></o:p></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Could you elaborate on what would be the best solution to verify =
that a<br>
select field contains a specific item (known). Which steps would be =
most<br>
accurate for performing that task?<br>
<br>
-----Original Message-----<br>
From: <a =
href=3D"mailto:webtest-admin@gate2.canoo.com">webtest-admin@gate2.canoo.c=
om</a><br>
[mailto:<a =
href=3D"mailto:webtest-admin@gate2.canoo.com">webtest-admin@gate2.canoo.c=
om</a>]
On Behalf Of Marc Guillemot<br>
Sent: Wednesday, January 10, 2007 2:12 AM <br>
To: <a =
href=3D"mailto:webtest@gate2.canoo.com">webtest@gate2.canoo.com</a><br>
Subject: Re: [Webtest] Steps for selectField elements<br>
<br>
<br>
otherwise you can use <not>:<br>
<br>
<not><br>
...some verifications that should fail... <br>
</not><br>
<br>
<br>
Charlie Kuharski wrote:<br>
><br>
> I typically use XPath is the data is known.<br>
><br>
> Goldberger, Michael wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>><br>
>> <br>
>> I was wondering what the members of this list do when you need =
to<br>
>> verify the existence / non-existence of specific items in a<br>
>> selectField element.<br>
>><br>
>><br>
>><br>
>> Any ideas at all that seem more accurate and/or efficient =
that<br>
>> multiple regular expressions (verifyText) and just trying to =
match<br>
>> enough unique data.<br>
>><br>
>><br>
>><br>
>> As always, your help is appreciated<br>
>><br>
>><br>
>><br>
>> Mike<br>
>><br>
><br>
><br>
<br>
--<br>
View this message in context:<br>
<a
href=3D"http://www.nabble.com/Steps-for-selectField-elements-tf2947069.ht=
ml#a825">http://www.nabble.com/Steps-for-selectField-elements-tf2947069.h=
tml#a825</a><br>
3102<br>
Sent from the WebTest mailing list archive at <a =
href=3D"http://Nabble.com">Nabble.com</a>.<br>
<br>
_______________________________________________ <br>
WebTest mailing list<br>
<a =
href=3D"mailto:WebTest@lists.canoo.com">WebTest@lists.canoo.com</a><br>
<a =
href=3D"http://lists.canoo.com/mailman/listinfo/webtest">http://lists.can=
oo.com/mailman/listinfo/webtest</a><br>
_______________________________________________ <br>
WebTest mailing list<br>
<a =
href=3D"mailto:WebTest@lists.canoo.com">WebTest@lists.canoo.com</a><br>
<a =
href=3D"http://lists.canoo.com/mailman/listinfo/webtest">http://lists.can=
oo.com/mailman/listinfo/webtest</a><o:p></o:p></span></font></p>
</div>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>
------_=_NextPart_001_01C7358B.19011B5E--