From 92b7463a9db2fbf9bebaf18ad731e659983958b0 Mon Sep 17 00:00:00 2001 From: Daniel Maldonado Date: Wed, 18 Jul 2012 10:37:30 -0400 Subject: [PATCH] added install parameter --- selenium/test.pl | 56 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 52 insertions(+), 4 deletions(-) diff --git a/selenium/test.pl b/selenium/test.pl index ce5df814a..758b59558 100644 --- a/selenium/test.pl +++ b/selenium/test.pl @@ -1,5 +1,5 @@ #!/usr/bin/perl -use Test::More tests => 159; +use Test::More tests => 355; use Test::WWW::Selenium; use Test::WWW::Selenium::HTML; use WebGUI::Paths -inc; @@ -42,9 +42,17 @@ my $selh = Test::WWW::Selenium::HTML->new( $sel ); $selh->diag_body_text_on_failure(0); #------------------------- Run All Tests here ----------------------- +if ( $ARGV[0] eq 'install' ){ + ok(1, "Setup initial WebGUI test site."); + $selh->run(path => "webguiInitialSetup.html"); + +}else{ + ok(1, "Login test"); + $selh->run(path => "login.html"); + +} + # Test basic interface links -ok(1, "Login test"); -$selh->run(path => "login.html"); ok(1, "Turn On Admin test"); $selh->run(path => "turnOnAdmin.html"); ok(1, "Admin Console tests"); @@ -68,7 +76,7 @@ $selh->run(path => "newContentShop.html"); ok(1, "New Content->Utilities tests"); $selh->run(path => "newContentUtilities.html"); -# +# Frameless admin functions ok(1, "FRAMELESS->Active Sessions"); $selh->run(path => "frameless/activeSessions.html"); ok(1, "FRAMELESS->Addons"); @@ -81,3 +89,43 @@ ok(1, "FRAMELESS->Cache"); $selh->run(path => "frameless/cache.html"); ok(1, "FRAMELESS->Clipboard"); $selh->run(path => "frameless/clipboard.html"); +ok(1, "FRAMELESS->Content Filters"); +$selh->run(path => "frameless/contentFilters.html"); +ok(1, "FRAMELESS->Content Profiling"); +$selh->run(path => "frameless/contentProfiling.html"); +ok(1, "FRAMELESS->Databases"); +$selh->run(path => "frameless/databases.html"); +ok(1, "FRAMELESS->File Pump"); +$selh->run(path => "frameless/filePump.html"); +ok(1, "FRAMELESS->Graphics"); +$selh->run(path => "frameless/graphics.html"); +ok(1, "FRAMELESS->Groups"); +$selh->run(path => "frameless/groups.html"); +ok(1, "FRAMELESS->Inbox"); +$selh->run(path => "frameless/inbox.html"); +ok(1, "FRAMELESS->LDAP Connections"); +$selh->run(path => "frameless/ldapLinks.html"); +ok(1, "FRAMELESS->Login History"); +$selh->run(path => "frameless/loginHistory.html"); +ok(1, "FRAMELESS->Passive Analytics"); +$selh->run(path => "frameless/passiveAnalytics.html"); +ok(1, "FRAMELESS->Scheduler"); +$selh->run(path => "frameless/scheduler.html"); +ok(1, "FRAMELESS->Settings"); +$selh->run(path => "frameless/settings.html"); +ok(1, "FRAMELESS->Shop"); +$selh->run(path => "frameless/shop.html"); +ok(1, "FRAMELESS->Spectre"); +$selh->run(path => "frameless/spectre.html"); +ok(1, "FRAMELESS->Template Help"); +$selh->run(path => "frameless/templateHelp.html"); +ok(1, "FRAMELESS->Trash"); +$selh->run(path => "frameless/trash.html"); +ok(1, "FRAMELESS->User Profiling"); +$selh->run(path => "frameless/userProfiling.html"); +ok(1, "FRAMELESS->Users"); +$selh->run(path => "frameless/users.html"); +ok(1, "FRAMELESS->Version Tags"); +$selh->run(path => "frameless/versionTags.html"); +ok(1, "FRAMELESS->Workflow"); +$selh->run(path => "frameless/workflow.html");