-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathTestCases.data
65 lines (52 loc) · 1.68 KB
/
TestCases.data
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# TestCases.data
# This file is used by Testing/Main.py
# Each line describes a test case.
# Lines that are blank or begin with '#' are ignored.
# Good URLs
/ \
/Welcome \
/Welcome.py \
/Examples/Welcome \
/Examples/ \
/Examples/Welcome.py --> Show /Examples/Welcome
/Admin/ \
/Admin/Main --> Show admin pages
# Redirects
--> Redirect to /
/Admin --> Redirect to /Admin/
/Examples --> Redirect to /Examples/
# Display files
/Testing/Dir/File.html --> Display the file
/Testing/Dir \
/Testing/Dir/ --> Display the index file
# Bad: Slashes after files
/Welcome/ \
/Examples/Welcome/ --> Error 404: Not Found<br>if ExtraPathInfo is not set
# Bad: Unknown URLs (wrong name, slashes after files)
/BadURL \
/BadURL/ \
/Examples/BadURL \
/Examples/BadURL/ \
/Examples/BadURL/MoreBad \
/File.badext \
/Examples/File.badext --> Error 404: Not Found<br>or if ExtraPathInfo is set, then<br>the Examples/Welcome page<br>displays extra path info.
# Embedded Servlets
/Testing/Servlet/ \
/Testing/Servlet/Extra/Path/Info \
/Testing/Servlet/Extra/Path/Info/ \
/Testing/Servlet/More/Info? --> Error 404: Not Found<br>if ExtraPathInfo is not set,<br>otherwise the test servlet<br>displays extra path info.
# Including
/Testing/IncludeURLTest --> IncludeURLTest test
/Testing/Dir/IncludeURLTest2 --> lower level IncludeURLTest test
# Forwarding
/Testing/Forward1 --> Forward1Target
/Testing/Forward2 --> Dir/Forward2Target
/Testing/Dir/Forward3 --> Forward3Target
# Fields
/Testing/FieldStorage --> Test of WebUtils.FieldStorage
# Cookies
/Testing/SetCookie --> Test of HTTPResponse.setCookie
# If-Modified-Since
/Testing/TestIMS --> TestIMS passed
# Servlet import details
/Testing/ServletImport --> Servlet import test passed