Subject: | wt is sensible to last chariot return at end of wtscript |
On windows XP,
perl, v5.10.0 built for MSWin32-x86-multi-thread
test1.wt has a parsing error of the script, test2.wt has not. The
difference between the two scripts : a \n\r at the end of the script.
Here is what I have on a DOS shell :
C:\src\HTTP\WebTest>wt test1.wt
HTTP::WebTest: wtscript parsing error
Line 4 near 'end_test': Test parameter or end_test is expected
C:\src\HTTP\WebTest>wt test2.wt
Failed Succeeded Test Name
0 2 First page
Test Name: First page
URL: http://www.martynov.org/
STATUS CODE CHECK
Expected '200' and got: 200 OK SUCCEED
REQUIRED TEXT
Ilya Martynov SUCCEED
Total web tests failed: 0 succeeded: 2
C:\src\HTTP\WebTest>
Subject: | test2.wt |
Message body not shown because it is not plain text.
Subject: | test1.wt |
Message body not shown because it is not plain text.