-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_project_bad
More file actions
142 lines (141 loc) · 2.78 KB
/
create_project_bad
File metadata and controls
142 lines (141 loc) · 2.78 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="https://cog-cu-dev.colorado.edu/projects/cog/" />
<title>create_project_bad</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">creat_project_bad</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/projects/cog/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Register a New Project</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=id_short_name</td>
<td>name contains spaces</td>
</tr>
<tr>
<td>type</td>
<td>id=id_long_name</td>
<td>test bad characters</td>
</tr>
<tr>
<td>type</td>
<td>id=id_description</td>
<td>testing for bad characters using selenium</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=input[type="submit"]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=ul.errorlist</td>
<td>Project short name contains invalid characters</td>
</tr>
<tr>
<td>type</td>
<td>id=id_short_name</td>
<td>name_non_ascii_£</td>
</tr>
<tr>
<td>assertText</td>
<td>css=ul.errorlist</td>
<td>Project short name contains invalid characters</td>
</tr>
<tr>
<td>goBackAndWait</td>
<td></td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>3000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Register a New Project</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=id_short_name</td>
<td>good_short_name</td>
</tr>
<tr>
<td>type</td>
<td>id=id_long_name</td>
<td>test quotation marks"</td>
</tr>
<tr>
<td>type</td>
<td>id=id_description</td>
<td>testing for bad characters using selenium</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=input[type="submit"]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=ul.errorlist</td>
<td>Quotation characters are not allowed in project long name</td>
</tr>
<tr>
<td>goBackAndWait</td>
<td></td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>3000</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Register a New Project</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=id_short_name</td>
<td>good_short_name</td>
</tr>
<tr>
<td>type</td>
<td>id=id_long_name</td>
<td>test long name with non-ascii µ</td>
</tr>
<tr>
<td>type</td>
<td>id=id_description</td>
<td>testing for bad characters using selenium</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=input[type="submit"]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=ul.errorlist</td>
<td>Project long name contains invalid non-ASCII characters</td>
</tr>
</tbody></table>
</body>
</html>