Hi,

I remember we did some tricking around that in one of our projects.
What we did was running a small routine (either handmade script or shell 
command, can't remember) which took the file and replaced the header so that it 
was recognized as a "usual xml" file by the subsequent step.
If and how that works in you case... not sure. Your mileage may vary.

HTH, Thomas


Thomas Klein
Senior Associate, QA | SapientNitro

________________________________
From: [email protected] [[email protected]] On Behalf 
Of Michael Stephan [[email protected]]
Sent: Saturday, June 19, 2010 15:33
To: [email protected]
Subject: [Webtest] verifyXPath of XML Formatted Excel with MIME Type other than 
HTML or XML, is this possible?


Dear webtest users and developers,

I would like to use webtest for testing xml formatted excel files, especially 
with the verifyXPath feature. Unfortunately, the web application returns the 
xml excel with mime type application/msexcel which causes webtest to die when 
the verifyXPath step is executed. An error is thrown saying that the mime type 
needs to be either text/html or text/xml.

I already found several posts about the same topic however none of the included 
a clear statement if there is some workaround available. It would be very 
interesting to know if one of you was able to solve this problem or if there is 
no way at all to circumvent this behaviour of webtest/htmlunit.

Thank you very much in advance for your input!

Regards,
Michael Stephan

Reply via email to