root/workflowtests/selenium_IDE/addrecipient_non-ISO-8859-1_tworecipients_semicolon_customfields.html

User picture

Author: Wendy Mason

Revision: 1533 («Previous)


File Size: 4.13 KB

(10 May 09:15 UTC) 14 days ago

Replaced authname to "FileSender Test"; changed recipient(s) to email3 (email4 and email5); updated expiry dates; tweaked check for "Message Sent."

 
Show/hide line numbers
<?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>&lt;tag&gt; žćčđš &amp;amp;&quot;'&gt;&lt;/?\n'&quot;</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>&lt;tag&gt; žćčđš &amp;amp;&quot;'&gt;&lt;/?\n'&quot;</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>