root/workflowtests/selenium_IDE/voucher_issue_singleandmultiplerecipients_colonandsemicolon.html

User picture

Author: Wendy Mason

Revision: 1533 («Previous)


File Size: 6.84 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>voucher_issue_singleandmultiplerecipients_colonandsemicolon</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">Issue vouchers, single and multiple recipients separated by colon / semicolon</td>
</tr>
</thead>
<tbody>

<!-- Test workflow begins here -->
<!-- ## click on "Guest Voucher" button -->
<tr>
	<td>clickAndWait</td>
	<td>css=#topmenu_vouchers</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 table headers and action buttons -->
<tr>
	<td>verifyElementPresent</td>
	<td>css=#vouchers_header_to</td>
	<td>To</td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>css=#vouchers_header_created</td>
	<td>Created</td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>css=#vouchers_header_expiry</td>
	<td>Expiry</td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>There are currently no vouchers available</td>
	<td></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 "Guest Voucher" -->
<tr>
	<td>verifyText</td>
	<td>id=pageheading</td>
	<td>Guest Voucher</td>
</tr>
<!-- ## verify that explanatory text about how to use Vouchers is present -->
<tr>
	<td>verifyText</td>
	<td>id=invite_text</td>
	<td>A Voucher allows someone to send you a file.<br /> To create a voucher, enter an email address then select Send Voucher.<br /> An email will be sent to the recipient with a link to use the Voucher.</td>
</tr>
<!-- ## verify but leave "To" field blank -->
<!-- TO DO - verify tooltip "Multiple email addresses can be entered separated by comma or semi-colon (, or ;)" -->
<tr>
	<td>verifyText</td>
	<td>id=vouchers_to</td>
	<td>Send Vouchers to:</td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>id=fileto</td>
	<td></td>
</tr>
<!-- ## verify expiry date field, but leave as default to verify in email -->
<tr>
	<td>verifyText</td>
	<td>id=vouchers_expirydate</td>
	<td>Expiry date:</td>
</tr>
<tr>
	<td>verifyValue</td>
	<td>id=datepicker</td>
	<td>31/05/2012</td>
</tr>
<!-- ## click on "Send Voucher" button - prompt should appear "Invalid or missing email" -->
<tr>
	<td>click</td>
	<td>css=#btn_sendvoucher</td>
	<td></td>
</tr>
<tr>
	<td>verifyText</td>
	<td>id=fileto_msg</td>
	<td>Invalid or missing email</td>
</tr>
<!-- ## in the "Send Vouchers to:" field, enter recipient email address - warning should disappear -->
<!-- NOTE: changeable variable -->
<tr>
	<td>type</td>
	<td>id=fileto</td>
	<td>email2</td>
</tr>
<!-- ## click on "Send Voucher" button again - prompt should appear "Voucher Sent" -->
<tr>
	<td>clickAndWait</td>
	<td>css=#btn_sendvoucher</td>
	<td></td>
</tr>
<tr>
	<td>verifyText</td>
	<td>id=message</td>
	<td>Voucher Sent</td>
</tr>
<tr>
	<td>verifyNotText</td>
	<td>id=fileto_msg</td>
	<td>Invalid or missing email</td>
</tr>
<!-- ## verify that issued voucher is now listed in Vouchers table -->
<tr>
	<td>verifyTextPresent</td>
	<td>email2</td>
	<td></td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>id=btn_deletevoucher_1</td>
	<td></td>
</tr>
<!-- ## issue another two vouchers with single recipient and default expiry date -->
<tr>
	<td>type</td>
	<td>id=fileto</td>
	<td>email2</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=#btn_sendvoucher</td>
	<td></td>
</tr>
<tr>
	<td>verifyText</td>
	<td>id=message</td>
	<td>Voucher Sent</td>
</tr>
<tr>
	<td>type</td>
	<td>id=fileto</td>
	<td>email2</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=#btn_sendvoucher</td>
	<td></td>
</tr>
<tr>
	<td>verifyText</td>
	<td>id=message</td>
	<td>Voucher Sent</td>
</tr>
<!-- ## repeat with two recipients separated by a comma, using custom expiry date -->
<!-- NOTE: changeable variable -->
<tr>
	<td>type</td>
	<td>id=fileto</td>
	<td>email2, email3</td>
</tr>
<tr>
	<td>click</td>
	<td>id=datepicker</td>
	<td></td>
</tr>
<!-- NOTE: changeable variable -->
<tr>
	<td>click</td>
	<td>link=20</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=#btn_sendvoucher</td>
	<td></td>
</tr>
<tr>
	<td>verifyText</td>
	<td>id=message</td>
	<td>Voucher Sent</td>
</tr>
<!-- ## repeat with two recipients separated by a semicolon, using custom expiry date -->
<!-- NOTE: changeable variable -->
<tr>
	<td>type</td>
	<td>id=fileto</td>
	<td>email2; email3</td>
</tr>
<tr>
	<td>click</td>
	<td>id=datepicker</td>
	<td></td>
</tr>
<!-- NOTE: changeable variable -->
<tr>
	<td>click</td>
	<td>link=20</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=#btn_sendvoucher</td>
	<td></td>
</tr>
<tr>
	<td>verifyText</td>
	<td>id=message</td>
	<td>Voucher Sent</td>
</tr>
<!-- ## repeat with one recipient, with expiry date as the next calendar day (for testing automatic voucher deletion) -->
<!-- NOTE: changeable variable -->
<tr>
	<td>type</td>
	<td>id=fileto</td>
	<td>email2</td>
</tr>
<tr>
	<td>click</td>
	<td>id=datepicker</td>
	<td></td>
</tr>
<!-- NOTE: changeable variable -->
<tr>
	<td>click</td>
	<td>link=12</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=#btn_sendvoucher</td>
	<td></td>
</tr>
<tr>
	<td>verifyText</td>
	<td>id=message</td>
	<td>Voucher Sent</td>
</tr>
<!-- test workflow ends here -->
</tbody></table>
</body>
</html>