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
143
144
145
146
147
148
149 |
<?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" />
<!-- NOTE: place a hash infront of all comments that are for inclusion in wiki documentation, so that the hash can be used to extract just those lines -->
<!-- NOTE: make the following substitutions prior to running this test:
* FileSender Test - name of authenticated user
* email1 - email address of authenticated user
* email2 - email address of first file / voucher recipient
* email3 - email address of second file / voucher recipient
* FileSender_testfiles - filepath to directory containing files to upload
-->
<!-- FileSender installation url -->
<link rel="selenium.base" href="https://filesender.surfnet.nl/preview/index.php" />
<!-- Test title = filename; not displayed in Selenium IDE window or html view -->
<title>addrecipient_non-ISO-8859-1_tworecipients_semicolon_customfields</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<!-- Table header = full name of test; displayed in html view -->
<thead>
<tr>
<td rowspan="1" colspan="3">add new recipient, non-ISO-8859-1, two recipients separated by semicolon, custom field contents </td>
</tr>
</thead>
<tbody>
<!-- Test workflow begins here -->
<!-- ## enter over the configured maximum number of recipient email addresses in the "To" field, separated by "; " - message should appear "The maximum number of email addresses allowed is [X]" (where X is the configured maximum) -->
<tr>
<td>verifyText</td>
<td>id=files_to</td>
<td>To:</td>
</tr>
<!-- NOTE: changeable variable -->
<tr>
<td>type</td>
<td>id=fileto</td>
<td>email3, email4, email5</td>
</tr>
<!-- NOTE: changeable variable -->
<tr>
<td>verifyTextPresent</td>
<td>The maximum number of email addresses allowed is 2.</td>
<td></td>
</tr>
<!-- ## enter two recipient email addresses, separated by "; " -->
<tr>
<td>type</td>
<td>id=fileto</td>
<td>email3, email4</td>
</tr>
<!-- ## verify that "From" is auto-populated with sender's email address -->
<tr>
<td>verifyText</td>
<td>id=files_from</td>
<td>From:</td>
</tr>
<!-- NOTE: changeable variable -->
<tr>
<td>verifyText</td>
<td>id=filefrom</td>
<td>email1</td>
</tr>
<!-- ## verify that the default "Subject" and "Message" are the same as original email -->
<tr>
<td>verifyText</td>
<td>id=files_subject</td>
<td>Subject: (optional)</td>
</tr>
<tr>
<td>verifyValue</td>
<td>id=filesubject</td>
<td><tag> žćčđš &amp;"'></?\n'"</td>
</tr>
<tr>
<td>verifyText</td>
<td>id=files_message</td>
<td>Message: (optional)</td>
</tr>
<tr>
<td>verifyValue</td>
<td>id=filemessage</td>
<td><tag> žćčđš &amp;"'></?\n'"</td>
</tr>
<!-- ## select a different expiry date -->
<tr>
<td>verifyText</td>
<td>id=files_expiry</td>
<td>Expiry date:</td>
</tr>
<tr>
<td>click</td>
<td>datepicker</td>
<td></td>
</tr>
<!-- NOTE: modify expiry date if out of current selectable date range -->
<tr>
<td>click</td>
<td>link=20</td>
<td></td>
</tr>
<!-- ## verify that "File to be Redistributed" and "Size" fields are correct -->
<tr>
<td>verifyText</td>
<td>id=files_to_be_resent</td>
<td>File to be redistributed:</td>
</tr>
<tr>
<td>verifyText</td>
<td>id=filename</td>
<td>utf8-latin-extended-a-šřŬŴ-test.txt</td>
</tr>
<tr>
<td>verifyText</td>
<td>id=files_size</td>
<td>Size:</td>
</tr>
<tr>
<td>verifyText</td>
<td>id=filesize</td>
<td>5.81 kB</td>
</tr>
<!-- ## click on "Send" button -->
<tr>
<td>click</td>
<td>id=btn_addrecipientsend</td>
<td></td>
</tr>
<!-- ## message should appear "Message Sent" -->
<tr>
<td>waitForText</td>
<td>id=message</td>
<td>Message Sent.</td>
</tr>
<tr>
<td>verifyText</td>
<td>id=message</td>
<td>Message Sent.</td>
</tr>
<!-- TO DO - verify file is listed in "My Files" table -->
<!-- TO DO - work out how to distinguish duplicate entry from original -->
<!-- test workflow ends here -->
</tbody></table>
</body>
</html> |