[Webtest] Using Excel Steps

Patrick Wright Patrick Wright" <patrickmwright@gmail.com
Mon, 7 Jul 2008 16:27:35 -0700


------=_Part_17489_797988.1215473255914
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I am unable to successfully call any Excel Step method.  The error I am
receiving is: File does not have correct content type (not a '.xls' file?):
application/octet-stream



What I don't understand is why my excel file (.xls) is not being recognized
as a .xls file. After I execute the test, the invoke statement is
successful.  The xls file gets copied to the results dir and can be opened
from the generated report.
Any one else ever have this issue?


I'm using WebTest 2.6

------=_Part_17489_797988.1215473255914
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Cpwright%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///C:%5CDOCUME%7E1%5Cpwright%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5Cpwright%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><style>
&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:&quot;Cambria Math&quot;;
	panose-1:2 4 5 3 5 4 6 3 2 4;
	mso-font-charset:1;
	mso-generic-font-family:roman;
	mso-font-format:other;
	mso-font-pitch:variable;
	mso-font-signature:0 0 0 0 0 0;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:-1610611985 1073750139 0 0 159 0;}
@font-face
	{font-family:&quot;Lucida Sans&quot;;
	panose-1:2 11 6 2 3 5 4 2 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:3 0 0 0 1 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:&quot;&quot;;
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:Calibri;
	mso-fareast-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:&quot;Times New Roman&quot;;
	mso-bidi-theme-font:minor-bidi;}
span.EmailStyle15
	{mso-style-type:personal;
	mso-style-noshow:yes;
	mso-style-unhide:no;
	mso-ansi-font-size:11.0pt;
	mso-bidi-font-size:11.0pt;
	font-family:&quot;Lucida Sans&quot;,&quot;sans-serif&quot;;
	mso-ascii-font-family:&quot;Lucida Sans&quot;;
	mso-hansi-font-family:&quot;Lucida Sans&quot;;
	mso-bidi-font-family:&quot;Times New Roman&quot;;
	mso-bidi-theme-font:minor-bidi;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-default-props:yes;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:Calibri;
	mso-fareast-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:&quot;Times New Roman&quot;;
	mso-bidi-theme-font:minor-bidi;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
--&gt;
</style>

<p class="MsoNormal"><span style="font-family: &quot;Lucida Sans&quot;,&quot;sans-serif&quot;;">I am
unable to successfully call any Excel Step method.<span style="">&nbsp; </span>The error I am receiving is: </span><span style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;" lang="EN">File does not have correct content type (not a &#39;.xls&#39; file?):
application/octet-stream</span><span style="font-family: &quot;Lucida Sans&quot;,&quot;sans-serif&quot;;" lang="EN">
</span><span style="font-family: &quot;Lucida Sans&quot;,&quot;sans-serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-family: &quot;Lucida Sans&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p>

<p class="MsoNormal"><span style="font-family: &quot;Lucida Sans&quot;,&quot;sans-serif&quot;;">What I
don't understand is why my excel file (.xls) is not being recognized as a .xls
file. After I execute the test, the invoke statement is successful.<span style="">&nbsp; </span>The xls file gets copied to the results dir
and can be opened from the generated report.&nbsp; <br>Any one else ever have this issue?</span></p><p class="MsoNormal"><br><span style="font-family: &quot;Lucida Sans&quot;,&quot;sans-serif&quot;;"></span></p><p class="MsoNormal">
<span style="font-family: &quot;Lucida Sans&quot;,&quot;sans-serif&quot;;">I&#39;m using WebTest 2.6<br></span></p><p class="MsoNormal"></p>

------=_Part_17489_797988.1215473255914--