root/workflowtests/selenium_IDE/upload_ASCII_singlerecipient_defaultfields_cancelresume.html

User picture

Author: Wendy Mason

Revision: 1533 («Previous)


File Size: 9.64 KB

(11 May 02:13 UTC) 14 days ago

Updated expiry dates

 
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>upload_ASCII_singlerecipient_defaultfields_cancelresume</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">cancel and restart (Flash) / resume (HTML5) authenticated upload, single recipient, default field contents </td>
</tr>
</thead>
<tbody>

<!-- Test workflow begins here -->
<tr>
	<td>clickAndWait</td>
	<td>css=#topmenu_newupload</td>
	<td></td>
</tr>
<!-- ## verify links across top of page -->
<tr>
	<td>verifyElementPresent</td>
	<td>css=#topmenu_newupload</td>
	<td>Send File</td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>css=#topmenu_vouchers</td>
	<td>Guest Voucher</td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>css=#topmenu_myfiles</td>
	<td>My Files</td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>css=#topmenu_help</td>
	<td>Help</td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>css=#topmenu_about</td>
	<td>About</td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>css=#topmenu_logoff</td>
	<td>Log Off</td>
</tr>
<!-- ## verify that name is displayed in top left corner "Welcome [first name surname]" -->
<!-- NOTE: changeable variable -->
<tr>
	<td>verifyText</td>
	<td>css=div.welcomeuser</td>
	<td>Welcome FileSender Test</td>
</tr>
<!-- ## verify title of panel is "Send a file" -->
<tr>
	<td>verifyText</td>
	<td>id=pageheading</td>
	<td>Send a file</td>
</tr>
<!-- ## enter one recipient email address (only) in the "To" field -->
<tr>
	<td>verifyText</td>
	<td>id=upload_to</td>
	<td>To:</td>
</tr>
<tr>
	<td>type</td>
	<td>id=fileto</td>
	<td>email3</td>
</tr>
<!-- ## verify that "From" is auto-populated with sender's email address -->
<tr>
	<td>verifyText</td>
	<td>id=upload_from</td>
	<td>From:</td>
</tr>
<!-- NOTE: changeable variable -->
<tr>
	<td>verifyTextPresent</td>
	<td>email1</td>
	<td></td>
</tr>
<!-- ## enter custom "Subject" and "Message" fields with <tag> text &amp;"'></?\n'" -->
<tr>
	<td>verifyText</td>
	<td>id=upload_subject</td>
	<td>Subject: (optional)</td>
</tr>
<tr>
	<td>type</td>
	<td>id=filesubject</td>
	<td>&lt;tag&gt; text &amp;amp;&quot;'&gt;&lt;/?\n'&quot;</td>
</tr>
<tr>
	<td>verifyText</td>
	<td>id=upload_message</td>
	<td>Message: (optional)</td>
</tr>
<tr>
	<td>type</td>
	<td>id=filemessage</td>
	<td>&lt;tag&gt; text &amp;amp;&quot;'&gt;&lt;/?\n'&quot;</td>
</tr>
<!-- ## select expiry date as the next calendar day (for testing automatic file deletion) -->
<tr>
	<td>verifyText</td>
	<td>id=upload_expirydate</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=12</td>
	<td></td>
</tr>
<!-- ## click on "Browse" button and select a largish file (~10 MB should be enough) - file size should be displayed, "Send" button should appear -->
<tr>
	<td>verifyText</td>
	<td>id=selectfile</td>
	<td>Select your file:</td>
</tr>
<tr>
	<td>click</td>
	<td>id=fileName</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=fileToUpload</td>
	<td>FileSender_testfiles/10M-random.dat</td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Name: 10M-random.dat</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Size: 10 MB</td>
	<td></td>
</tr>
<tr>
	<td>verifyVisible</td>
	<td>id=uploadbutton</td>
	<td></td>
</tr>
<!-- ## verify that the AuP box remains checked from previous test (only need to check once per FileSender session) (need to check box when using a voucher) -->
<tr>
	<td>verifyText</td>
	<td>id=aup_label</td>
	<td>I accept the terms and conditions of this service. [Show/Hide]</td>
</tr>
<tr>
	<td>verifyChecked</td>
	<td>id=aup</td>
	<td></td>
</tr>
<!-- ## click on "Send" button, but cancel / pause upload (using cancel button) before completion - verify that buttons across top of page reappear for authenticated upload, and that all fields reset -->
<tr>
	<td>click</td>
	<td>link=Send</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Upload progress: 10M-random.dat (10 MB)</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=btn_uploadcancel</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>id=btn_uploadconfirmyes</td>
	<td></td>
</tr>
<!-- ## enter one recipient email address (only) in the "To" field -->
<tr>
	<td>verifyText</td>
	<td>id=upload_to</td>
	<td>To:</td>
</tr>
<tr>
	<td>type</td>
	<td>id=fileto</td>
	<td>email3</td>
</tr>
<!-- ## verify that "From" is auto-populated with sender's email address -->
<tr>
	<td>verifyText</td>
	<td>id=upload_from</td>
	<td>From:</td>
</tr>
<!-- NOTE: changeable variable -->
<tr>
	<td>verifyTextPresent</td>
	<td>email1</td>
	<td></td>
</tr>
<!-- ## enter custom "Subject" and "Message" fields with <tag> text &amp;"'></?\n'" -->
<tr>
	<td>verifyText</td>
	<td>id=upload_subject</td>
	<td>Subject: (optional)</td>
</tr>
<tr>
	<td>type</td>
	<td>id=filesubject</td>
	<td>&lt;tag&gt; text &amp;amp;&quot;'&gt;&lt;/?\n'&quot;</td>
</tr>
<tr>
	<td>verifyText</td>
	<td>id=upload_message</td>
	<td>Message: (optional)</td>
</tr>
<tr>
	<td>type</td>
	<td>id=filemessage</td>
	<td>&lt;tag&gt; text &amp;amp;&quot;'&gt;&lt;/?\n'&quot;</td>
</tr>
<!-- ## select expiry date as the next calendar day (for testing automatic file deletion) -->
<tr>
	<td>verifyText</td>
	<td>id=upload_expirydate</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=12</td>
	<td></td>
</tr>
<!-- ## click on "Browse" button and select a largish file (~10 MB should be enough) - file size should be displayed, "Send" button should appear -->
<tr>
	<td>verifyText</td>
	<td>id=selectfile</td>
	<td>Select your file:</td>
</tr>
<tr>
	<td>click</td>
	<td>id=fileName</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=fileToUpload</td>
	<td>FileSender_testfiles/10M-random.dat</td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Name: 10M-random.dat</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Size: 10 MB</td>
	<td></td>
</tr>
<tr>
	<td>verifyVisible</td>
	<td>id=uploadbutton</td>
	<td></td>
</tr>
<!-- ## verify that the AuP box remains checked from previous test (only need to check once per FileSender session) (need to check box when using a voucher) -->
<tr>
	<td>verifyText</td>
	<td>id=aup_label</td>
	<td>I accept the terms and conditions of this service. [Show/Hide]</td>
</tr>
<tr>
	<td>verifyChecked</td>
	<td>id=aup</td>
	<td></td>
</tr>
<!-- ## click on "Send" button again - progress bar should appear, file upload should start from the beginning for Flash only (0%) or from point where upload was paused for HTML5, when complete new page should be displayed with text "Your file has been uploaded and message sent" -->
<tr>
	<td>click</td>
	<td>link=Send</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Upload progress: 10M-random.dat (10 MB)</td>
	<td></td>
</tr>
<tr>
	<td>waitForText</td>
	<td>id=message</td>
	<td>Your file has been uploaded and message sent.</td>
</tr>
<!-- ## go to "My Files" table, verify title of panel is "My Files", verify table headers and action buttons -->
<tr>
	<td>clickAndWait</td>
	<td>css=#topmenu_myfiles</td>
	<td></td>
</tr>
<tr>
	<td>verifyText</td>
	<td>id=pageheading</td>
	<td>My Files</td>
</tr>
<tr>
	<td>verifyText</td>
	<td>css=#myfiles_header_to</td>
	<td>To</td>
</tr>
<tr>
	<td>verifyText</td>
	<td>css=#myfiles_header_from</td>
	<td>From</td>
</tr>
<tr>
	<td>verifyText</td>
	<td>css=#myfiles_header_filename</td>
	<td>File Name</td>
</tr>
<tr>
	<td>verifyText</td>
	<td>css=#myfiles_header_size</td>
	<td>Size</td>
</tr>
<tr>
	<td>verifyText</td>
	<td>css=#myfiles_header_subject</td>
	<td>Subject</td>
</tr>
<tr>
	<td>verifyText</td>
	<td>css=#myfiles_header_message</td>
	<td>Message</td>
</tr>
<tr>
	<td>verifyText</td>
	<td>css=#myfiles_header_created</td>
	<td>Created</td>
</tr>
<tr>
	<td>verifyText</td>
	<td>css=#myfiles_header_expiry</td>
	<td>Expiry</td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>id=btn_addrecipient_1</td>
	<td></td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>id=btn_resendemail_1</td>
	<td></td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>id=btn_deletevoucher_1</td>
	<td></td>
</tr>
<!-- ## verify file is listed in "My Files" table -->
<tr>
	<td>verifyTextPresent</td>
	<td>&lt;tag&gt; text &amp;amp;&quot;'&gt;&lt;/?\n'&quot;</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>10M-random.dat</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>10 MB</td>
	<td></td>
</tr>
<!-- NOTE: change date if modified expiry date selected above -->
<tr>
	<td>verifyTextPresent</td>
	<td>12/05/2012</td>
	<td></td>
</tr>
<!-- test workflow ends here -->
</tbody></table>
</body>
</html>