aboutsummaryrefslogtreecommitdiffstats
path: root/bin/test-run
diff options
context:
space:
mode:
authormatthew <matthew>2009-09-24 20:41:36 +0000
committermatthew <matthew>2009-09-24 20:41:36 +0000
commit5a157fbfab7df7ad5db33d9c39326073e5702e9e (patch)
tree7a988cae826fd93810b1d014a8cc47bcac4ed7ad /bin/test-run
parenta3e01d551e97c872dd38c786c031f6021210bb9a (diff)
Redirect lat/lon RSS to equivalent OS. Add FAQ about mobile apps.
Diffstat (limited to 'bin/test-run')
-rwxr-xr-xbin/test-run25
1 files changed, 23 insertions, 2 deletions
diff --git a/bin/test-run b/bin/test-run
index ccaf4e319..b7f9c4ce8 100755
--- a/bin/test-run
+++ b/bin/test-run
@@ -19,7 +19,7 @@
# RSS
# Whatever I've missed!
-my $rcsid = ''; $rcsid .= '$Id: test-run,v 1.22 2009-09-24 09:29:27 louise Exp $';
+my $rcsid = ''; $rcsid .= '$Id: test-run,v 1.23 2009-09-24 20:41:36 matthew Exp $';
use strict;
require 5.8.0;
@@ -34,7 +34,7 @@ use File::Find;
use lib "$FindBin::Bin/../perllib";
use Cobrand;
-my @actions = ('report', 'update', 'questionnaire', 'alert', 'static', 'cobrand', 'unit', 'eha_alert', 'import');
+my @actions = ('report', 'update', 'questionnaire', 'alert', 'static', 'cobrand', 'unit', 'eha_alert', 'import', 'rss');
my %actions_desc = (
'report' => 'report a problem',
'update' => 'leave an update on a report',
@@ -45,6 +45,7 @@ my %actions_desc = (
'cobrand' => 'check cobranding',
'unit' => 'run the unit tests',
'import' => 'check the ability to programmatically import a problem',
+ 'rss' => 'check RSS feeds',
);
date_print("Set up web test harness...");
@@ -96,6 +97,7 @@ foreach (@actions) {
do_unit() if $_ eq 'unit';
do_eha_alert() if $_ eq 'eha_alert';
do_import() if $_ eq 'import';
+ do_rss() if $_ eq 'rss';
}
# Check for any unhandled mails or errors
@@ -489,6 +491,25 @@ sub do_static {
$wth->email_get_containing('%This is a test message%');
}
+sub do_rss {
+ $wth->browser_get($base_url . '/rss/l/52.5/-1.9');
+ print $wth->browser_uri() . "\n";
+ $wth->browser_get($base_url . '/rss/2524/1779');
+ print $wth->browser_uri() . "\n";
+ $wth->browser_get($base_url . '/rss/pc/SW1A1AA');
+ print $wth->browser_uri() . "\n";
+ $wth->browser_get($base_url . '/rss/area/Birmingham');
+ print $wth->browser_uri() . "\n";
+ $wth->browser_get($base_url . '/rss/reports/Birmingham');
+ print $wth->browser_uri() . "\n";
+ $wth->browser_get($base_url . '/rss/reports/Birmingham/Lozells');
+ print $wth->browser_uri() . "\n";
+ $wth->browser_get($base_url . '/rss/reports/Gloucestershire');
+ print $wth->browser_uri() . "\n";
+ $wth->browser_get($base_url . '/rss/area/Gloucestershire');
+ print $wth->browser_uri() . "\n";
+}
+
#browser_get(URL)
#browser_follow_link(text_regex => qr//)
#browser_check_contents(qr// | '')