Commit 34a0504c authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Update selenium tests

parent cacf2200
......@@ -18,7 +18,6 @@
<tr><td><a href="profile/./Edit_Profile.html">Edit Profile</a></td></tr>
<tr><td><a href="profile/./Edit_Profile_Defaults.html">Edit Profile - Reset To Defaults</a></td></tr>
<tr><td><a href="profile/./Edit_Resume.html">Edit Resume</a></td></tr>
<tr><td><a href="profile/./Profile_Icon.html">Profile Icon</a></td></tr>
<tr><td><a href="profile/../shared/Logout_User.html">Log Administrator Out</a></td></tr>
<tr><td><a href="sanity/./Login_Logout.html">Log In/Out</a></td></tr>
<tr><td><a href="sanity/../shared/Login_Admin.html">Log in as Administrator</a></td></tr>
......
......@@ -18,11 +18,6 @@
<td>link=Groups</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Groups I Own</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Add new group</td>
......
......@@ -154,6 +154,11 @@
<td>Processing...</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Profile</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Profile saved successfully</td>
......
......@@ -103,11 +103,6 @@
<td>//div[5]/div/form/table/tbody/tr[2]/td/a/img</td>
<td></td>
</tr>
<tr>
<td>assertAlert</td>
<td>Date/Time Selector<br />(c) dynarch.com 2002-2005 / Author: Mihai Bazon<br />Distributed under GNU LGPL.&nbsp;&nbsp;See http://gnu.org/licenses/lgpl.html for details.<br /><br />Date selection:<br />- Use the «, » buttons to select year<br />- Use the ‹, › buttons to select month<br />- Hold mouse button on any of the above buttons for faster selection.</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[5]/div/form/table/tbody/tr[4]/td/a/img</td>
......
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Profile Icon</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Profile Icon</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Profile</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Profile Icons</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload_file</td>
<td>C:\Documents and Settings\cristina\My Documents\My Pictures\General Templates\linuxforgirls.png</td>
</tr>
<tr>
<td>type</td>
<td>upload_title</td>
<td>icon</td>
</tr>
<tr>
<td>click</td>
<td>upload_submit</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>upload_file</td>
<td>C:\Documents and Settings\cristina\My Documents\My Pictures\Houses drafts for Propertystuff\crilogo.jpg</td>
</tr>
<tr>
<td>type</td>
<td>upload_title</td>
<td>icon</td>
</tr>
<tr>
<td>click</td>
<td>upload_submit</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
......@@ -13,7 +13,6 @@
<tr><td><a href="./Edit_Profile.html">Edit Profile</a></td></tr>
<tr><td><a href="./Edit_Profile_Defaults.html">Edit Profile - Reset To Defaults</a></td></tr>
<tr><td><a href="./Edit_Resume.html">Edit Resume</a></td></tr>
<tr><td><a href="./Profile_Icon.html">Profile Icon</a></td></tr>
<tr><td><a href="../shared/Logout_User.html">Log Administrator Out</a></td></tr>
</tbody>
</table>
......
#!/usr/bin/perl -w
use strict;
use File::Find;
use File::Slurp qw/slurp/;
my $reverse = $ARGV[0] eq '--reverse';
sub process_file
{
my $filename = shift;
my $directory = $File::Find::dir;
my $oldfiledata = slurp $filename;
my $filedata = $oldfiledata;
if ($reverse) {
# Turn the paths back into absolute ones.
$filedata =~ s|(<td>open</td>\s+<td>)([^/])|$1/$2|gs;
} else {
$filedata =~ s|(<td>open</td>\s+<td>)/|$1|gs;
}
if ($filedata ne $oldfiledata) {
print "editing $directory/$filename\n";
open OUTPUT, ">$filename" or die "Cannot open $filename as output.";
print OUTPUT $filedata;
close OUTPUT;
}
}
File::Find::find sub { /^.*\.(html)$/s && process_file($_) }, '.';
......@@ -38,21 +38,6 @@
<td>link=Groups</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Groups I Own</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Groups I'm In</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Groups I Own</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Settings</td>
......@@ -120,12 +105,12 @@
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Staff Users</td>
<td>link=Site Staff</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Admin Users</td>
<td>link=Site Admins</td>
<td></td>
</tr>
<tr>
......@@ -135,7 +120,7 @@
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Institutions</td>
<td>link=Add User</td>
<td></td>
</tr>
<tr>
......@@ -148,6 +133,31 @@
<td>link=User Search</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Manage Institutions</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Institutions</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Institution Members</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Institution Staff</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Institution Administrators</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Administer Extensions</td>
......
......@@ -98,26 +98,6 @@
<td>//ul[@id='sitemenu']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//form[@id='friendscontrol']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Groups I'm In</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//ul[@id='sitemenu']</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//form[@id='friendscontrol']</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Settings</td>
......
......@@ -33,11 +33,6 @@
<td>editview_submit</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>Edit blocks - Mahara</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//input[@value='Back']</td>
......
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