[Webtest] Issue Setting Headers

Patrick Wright Patrick Wright" <PWright@the41.com
Wed, 9 Jul 2008 10:43:02 -0700


This is a multi-part message in MIME format.

------_=_NextPart_001_01C8E1EB.3BF28D98
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Here is my simplified test...

When I run the test the excel file is store in the results.  The issue
is that my results for the verifyProperty still return
"application/octet-steam" as the Content-Type even though I set it to
"application/vnd.ms-excel".  I've also tried setting other header types
and I still can't seem to set them properly.

=20

<webtest name=3D"test">

 <config basepath=3D"">

  <header name=3D"Content-Type" value=3D"application/vnd.ms-excel"/>

 </config>

 <steps>=20

  <invoke url=3Dfile://filepath/file.xls <file:///\\filepath\file.xls>  =
/>

   <storeHeader description=3D"store content-type" name=3D"Content-Type"
property=3D"contentType" />

   <verifyProperty description=3D"" name=3D"contentType"
text=3D"application/vnd.ms-excel"/>         =20

 </steps>

</webtest>

=20

Patrick Wright
Automation Engineer


--------------------------------------------------------------------
This email and any attachments thereto may contain private,
confidential, and privileged material for the sole use of the intended =
recipient.
Any review, copying, or distribution of this email (or any attachments =
thereto)
by others is strictly prohibited.  If you are not the intended =
recipient, please
contact the sender immediately and permanently delete the original and =
any
copies of this email and any attachments from your system immediately.


------_=_NextPart_001_01C8E1EB.3BF28D98
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:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:"Lucida Sans";
	panose-1:2 11 6 2 3 5 4 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Lucida Sans","sans-serif";
	color:windowtext;}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
MsoChpDefault
	{mso-style-type:export-only;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><span style=3D'font-family:"Lucida =
Sans","sans-serif"'>Here is
my simplified test&#8230;<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-family:"Lucida =
Sans","sans-serif"'>When I
run the test the excel file is store in the results.&nbsp; The issue is =
that my
results for the verifyProperty still return =
&#8220;application/octet-steam&#8221;
as the Content-Type even though I set it to =
&#8220;application/vnd.ms-excel&#8221;.&nbsp;
I&#8217;ve also tried setting other header types and I still can&#8217;t =
seem
to set them properly.<o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-family:"Lucida =
Sans","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:navy'>&lt;webtest</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:black'> </span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:navy'>name=3D</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:green'>&quot;test&quot;</span><span =
style=3D'font-size:10.0pt;font-family:
"Courier New";color:navy'>&gt;</span><span style=3D'font-family:"Lucida =
Sans","sans-serif"'><o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:navy'>&nbsp;&lt;config</span><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:black'> =
</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>basepath=3D</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:green'>&quot;&quot;</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>&gt;</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:navy'>&nbsp; &lt;header</span><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:black'> =
</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>name=3D</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:green'>&quot;Content-Type&quot;</span><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:black'> =
</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>value=3D</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:green'>&quot;application/vnd.ms-excel&quot;</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>/&gt;</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:navy'>&nbsp;&lt;/config&gt;</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:navy'>&nbsp;&lt;steps&gt;</span><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:black'> =
</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:navy'>&nbsp; &lt;invoke</span><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:black'> =
</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>url=3D</span><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:green'><a
href=3D"file:///\\filepath\file.xls">file://filepath/file.xls</a> =
/</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>&gt;</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:navy'>&nbsp;&nbsp; =
&lt;storeHeader</span><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:black'> =
</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>description=3D</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:green'>&quot;store
content-type&quot;</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:black'> </span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:navy'>name=3D</span><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:green'>&quot;Content-Type&quot;</span><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:black'> </span><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:navy'>property=3D</span><span =
style=3D'font-size:
10.0pt;font-family:"Courier =
New";color:green'>&quot;contentType&quot;</span><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:black'> =
</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>/&gt;</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:navy'>&nbsp;&nbsp; =
&lt;verifyProperty</span><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:black'> =
</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>description=3D</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:green'>&quot;&quot;</span><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:black'> =
</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>name=3D</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:green'>&quot;contentType&quot;</span><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:black'> =
</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>text=3D</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:green'>&quot;application/vnd.ms-excel&quot;</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>/&gt;</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:black'>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:navy'>&nbsp;&lt;/steps&gt;</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:navy'>&lt;/webtest&gt;</span><span style=3D'font-family:"Lucida =
Sans","sans-serif"'><o:p></o:p></span></p>

<p class=3DMsoNormal><span style=3D'font-family:"Lucida =
Sans","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Lucida Sans","sans-serif";
color:#B21D3A'>Patrick Wright<br>
</span></b><i><span style=3D'font-size:9.0pt;font-family:"Lucida =
Sans","sans-serif";
color:#535249'>Automation Engineer</span></i><span =
style=3D'font-size:9.0pt;
font-family:"Lucida Sans","sans-serif"'><o:p></o:p></span></p>

</div>


<!--qsdbegin-->

<br>
<hr color=3D'#D2D3D2' noshade>
<pre>This email and any attachments thereto may contain private,
confidential, and privileged material for the sole use of the intended =
recipient.
Any review, copying, or distribution of this email (or any attachments =
thereto)
by others is strictly prohibited.  If you are not the intended =
recipient, please
contact the sender immediately and permanently delete the original and =
any
copies of this email and any attachments from your system =
immediately.</pre><br>

<!--qsdend-->
<br></body>

</html>


------_=_NextPart_001_01C8E1EB.3BF28D98--