asp.net - How can a webtest be made to accept file downloads? -


I am using the Visual Studio Team Foundation Server 2008 Team Suite to create webcasts for a site. Feedback on some pages is a file download (usually a PDF), and I need to check that the reaction returns with the correct position code and content type, ignoring the body. When I run webtest in Visual Studio, or run a compiled test with MSTE and loads the results, those requests fail, so that the entire webtest fails.

Text in the web browser tab of the test result:

 Request failed: Unable to read data from transport connection: The connection was closed. 

There is an exception in the Description tab:

 System.IO .IOException: Unable to read data from transport connection: The connection was closed. Microsoft.VisualStudio.TestTools.WebStress.DataCaptureStream.EndRead on System.Net.ConnectStream.EndRead (IAsyncResult asyncResult) on the Microsoft.VisualStudio.TestTools.WebStress.WebTestTransaction.ReadResponse (IAsyncResult Results) 

Feedback tab " Successful HTTP / 1.1 shows a successful response, including 200 "fine" and "content-type: application / PDF", and body content in PDF.

How can I make WebTest accept PDFs or other types of files for those requests?

There is a bug in the Visual Studio Team system 2008 SP1 which shows such symptoms for hot fixing Try it. More details here:


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -