HsacAcceptanceTests.SlimTests.HttpTest.HttpGetFileTest


script mock xml server setup
add response Downloaded text
$url<-[http://127.0.0.1:8000/FitNesseMock] get mock server url

script http test
$file<-[FitNesseMock.txt] get file from $url->[http://127.0.0.1:8000/FitNesseMock].txt
check response status 200
check response RG93bmxvYWRlZCB0ZXh0

script file fixture
check base name of $file->[FitNesseMock.txt] FitNesseMock
check extension of $file->[FitNesseMock.txt] txt
check text in $file->[FitNesseMock.txt] Downloaded text
delete $file->[FitNesseMock.txt]

table: Mock Server Message Report
Expected and received 1 requests
1

request

GET: /FitNesseMock.txt

response

Downloaded text

script mock xml server setup
stop