Commit 095e9e22 authored by Robert Lyon's avatar Robert Lyon Committed by Aaron Wells

Adding selenium tests for inbox/sent notifications (Bug #1055206)

Tests include:
- Sending a message as admin user to user.one
- Checking sent box as admin that message exists
- Deleting message from sent box
- Checking inbox as user.one to see if message is received
- Deleting message from inbox

Change-Id: I78fa01424ab7364ac1b7673d9f190bcea9b5a2a1
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 3134fe14
<?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="" />
<title>Inbox</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Inbox</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td></td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=img[alt=&quot;Inbox&quot;]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Inbox(tab selected)</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//table[@id='activitylist']/tbody/tr/td[3]/a</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>This is a test message</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
<?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="" />
<title>Inbox_add</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Inbox_add</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td></td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Groups</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Find friends</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//div[@id='friendslist']/div[2]/div/div/div[2]/ul/li[3]/a</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=sendmessage_subject</td>
<td>Hi There</td>
</tr>
<tr>
<td>type</td>
<td>id=sendmessage_message</td>
<td>This is a test message</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=sendmessage_submit</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>css=div.ok</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
<?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="" />
<title>Inbox_delete</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Inbox_delete</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td></td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=img[alt=&quot;Inbox&quot;]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Inbox(tab selected)</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@onclick=&quot;toggleChecked('tocheckdel'); return false;&quot;]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='Delete']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>css=div.ok</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
<?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="" />
<title>Sent</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Sent</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td></td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=img[alt=&quot;Inbox&quot;]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Sent(tab)</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//table[@id='activitylist']/tbody/tr/td[3]/a</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>link=Reply »</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
<?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="" />
<title>Sent_delete</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Sent_delete</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td></td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=img[alt=&quot;Inbox&quot;]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Sent(tab)</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@onclick=&quot;toggleChecked('tocheckdel'); return false;&quot;]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='Delete']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>css=div.ok</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
Login_Admin
institution_one_create
admin_institution_one_create
user_institution_one_create
Inbox_add
Sent
Sent_delete
Logout_User
user_institution_one_login
user_institution_one_setpassword
Inbox
Inbox_delete
generic_logout
Login_Admin
user_institution_one_delete
admin_institution_one_delete
institution_one_delete
Logout_User
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment