added install parameter

This commit is contained in:
Daniel Maldonado 2012-07-18 10:37:30 -04:00 committed by Scott Walters
parent d0d5298103
commit 92b7463a9d

View file

@ -1,5 +1,5 @@
#!/usr/bin/perl #!/usr/bin/perl
use Test::More tests => 159; use Test::More tests => 355;
use Test::WWW::Selenium; use Test::WWW::Selenium;
use Test::WWW::Selenium::HTML; use Test::WWW::Selenium::HTML;
use WebGUI::Paths -inc; use WebGUI::Paths -inc;
@ -42,9 +42,17 @@ my $selh = Test::WWW::Selenium::HTML->new( $sel );
$selh->diag_body_text_on_failure(0); $selh->diag_body_text_on_failure(0);
#------------------------- Run All Tests here ----------------------- #------------------------- 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 # Test basic interface links
ok(1, "Login test");
$selh->run(path => "login.html");
ok(1, "Turn On Admin test"); ok(1, "Turn On Admin test");
$selh->run(path => "turnOnAdmin.html"); $selh->run(path => "turnOnAdmin.html");
ok(1, "Admin Console tests"); ok(1, "Admin Console tests");
@ -68,7 +76,7 @@ $selh->run(path => "newContentShop.html");
ok(1, "New Content->Utilities tests"); ok(1, "New Content->Utilities tests");
$selh->run(path => "newContentUtilities.html"); $selh->run(path => "newContentUtilities.html");
# # Frameless admin functions
ok(1, "FRAMELESS->Active Sessions"); ok(1, "FRAMELESS->Active Sessions");
$selh->run(path => "frameless/activeSessions.html"); $selh->run(path => "frameless/activeSessions.html");
ok(1, "FRAMELESS->Addons"); ok(1, "FRAMELESS->Addons");
@ -81,3 +89,43 @@ ok(1, "FRAMELESS->Cache");
$selh->run(path => "frameless/cache.html"); $selh->run(path => "frameless/cache.html");
ok(1, "FRAMELESS->Clipboard"); ok(1, "FRAMELESS->Clipboard");
$selh->run(path => "frameless/clipboard.html"); $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");