This test ensures we can download the target of links.
script | mock xml server setup | ||
add response | <html> <body> <a href="/FitNesseMock/mytest.txt">my test <img id="smile" src="/FitNesseMock/smiley.gif" alt="Smiley face"></a> <img src="/FitNesseMock/sad.gif" alt="Sad face"> </body> </html> |
||
add response | Hallo | for | GET: /FitNesseMock/mytest.txt |
add response | Smile | for | GET: /FitNesseMock/smiley.gif |
add response | Sad | for | GET: /FitNesseMock/sad.gif |
$url<-[http://127.0.0.1:8000/FitNesseMock] | get mock server url |
script | browser test | |
open | $url->[http://127.0.0.1:8000/FitNesseMock] | |
$file<-[mytest.txt] | download | my test |
$file2<-[smiley.gif] | download | id=smile |
$file3<-[mytest_1.txt] | download | Smiley face |
$file4<-[sad.gif] | download | Sad face |
$file5<-[sad_1.gif] | download | Sad |
script | file fixture | ||
check | text in | $file->[mytest.txt] | Hallo |
check | text in | $file2->[smiley.gif] | Smile |
check | text in | $file3->[mytest_1.txt] | Hallo |
check | text in | $file4->[sad.gif] | Sad |
check | text in | $file5->[sad_1.gif] | Sad |
script | mock xml server setup |
stop |