I created a webtest script that is attempting to simulate a file copy/download to a webdav directory. Although the script passes when run, no files are actually copied to the server.
I started with a Fiddler session, then recorded my webdav actions using IE6. I then saved the Fiddler session as a *.webtest and imported the test into my VSTS project. I can see the binary information for the .txt file I am attempting to copy in the execution log (under the Request tab) for the test script. However after running the script, the test.txt file used for the test script was not copied to the webdav directory.
Any thoughts
Here is the request:
POST /atlas_webdav/Trial%20Account%20for%20test/UploadTest/test.txt HTTP/1.1
Content-Language : en-us
Translate : f
Authorization : Basic ZXNhbmRzQHNwcmluZ2NtLmNvbTpzcHIxbmdjbQ==
User-Agent : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Accept : */*
Accept-Language : en-us
Host : test.mydomain.com
Cookie : Coyote-2-424d2b5b=424d2b5a:0
Content-Length : 38
Expect : 100-continue
Accept-Encoding : gzip
Body:
0x00000000 EF BB BF 4C 6F 61 64 20 74 65 73 74 20 74 65 73 ...Load test tes
0x00000010 74 20 66 69 6C 65 2E 20 50 6C 65 61 73 65 20 69 t file. Please i
0x00000020 67 6E 6F 72 65 2E gnore.
Here is the response:
HTTP/1.1 200 OK
Content-Length : 0
Cache-Control : private
Date : Fri, 02 Mar 2007 18:56:47 GMT
Server : Microsoft-IIS/5.0
X-AspNet-Version : 2.0.50727
X-Powered-By : ASP.NET

Webdav webtest not simulating file copy or upload
nightwish
This request was generated from Fiddler by simply dragging and dropping a test.txt file from my Desktop to the mounted webdav folder. There are no upload forms involved.
This request is from the 'coded' version of the original webtest file for the WebDav test. Note: I changed the host and domain names for security reasons.
--------------------------------
'Upload test.txt Text File
Dim request5 As WebTestRequest = New WebTestRequest("http://host.domain.com/atlas_webdav/Trial%20Account%20for%20User/UploadTest" & _
"/test.txt")
request5.Timeout = 60
request5.ResponseTimeGoal = 10.0!
request5.Method = "POST"
request5.Headers.Add(New WebTestRequestHeader("Content-Language", "en-us"))
request5.Headers.Add(New WebTestRequestHeader("Translate", "f"))
request5.Headers.Add(New WebTestRequestHeader("Authorization", Me.Context("AuthorizationID").ToString))
Dim request5Body As StringHttpBody = New StringHttpBody
request5Body.ContentType = "text/plain"
request5Body.BodyString = "Load test test file. Please ignore."
request5.Body = request5Body
MyBase.Send(request5)
paso
However, the issue now is that the body does not contain the binary information necessary to create the file. Unfortunately, Fiddler does not record the original binary info in a way that it can be used to create a webtest script.
Any ideas
Warboy