Changeset 716
- Timestamp:
- 07/20/07 16:44:52 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/branches/exp/kindlund-firefox/bin/StartManager.pl
r709 r716 24 24 # They can however supply multiple urls which will be processed in order 25 25 26 # Change to 'Browser::IE' or 'Browser::FF' 27 my $driver = "Browser::IE"; 26 # Change to 'HoneyClient::Agent::Driver::Browser::IE' or 27 # 'HoneyClient::Agent::Driver::Browser::FF' 28 my $driver = "HoneyClient::Agent::Driver::Browser::IE"; 28 29 my $config = "/vm/master-vms/Agent.Master-23/winXPPro.cfg"; 29 30 my $maxrel = 10; honeyclient/branches/exp/kindlund-firefox/lib/HoneyClient/Agent.pm
r715 r716 113 113 # TODO: Eventually, make this more dynamic, based upon the presence of HoneyClient::Agent::Driver::* elements 114 114 # within the global configuration file. Or, feed the initialization logic through init() as part of the arguments. 115 @DRIVERS = ( 'Browser::IE' ); 115 #@DRIVERS = ( 'HoneyClient::Agent::Driver::Browser::IE', 'HoneyClient::Agent::Driver::Browser::FF' ); 116 @DRIVERS = ( 'HoneyClient::Agent::Driver::Browser::IE' ); 116 117 foreach (@DRIVERS) { 117 eval "use HoneyClient::Agent::Driver::$_";118 eval "use $_"; 118 119 if ($@) { 119 120 Carp::croak "$@"; … … 150 151 use HoneyClient::Util::Config qw(getVar); 151 152 153 # TODO: Include FF 152 154 # Make sure HoneyClient::Agent::Driver::Browser::IE loads. 153 155 BEGIN { use_ok('HoneyClient::Agent::Driver::Browser::IE') or diag("Can't load HoneyClient::Agent::Driver::Browser::IE package. Check to make sure the package library is correctly listed within the path."); } … … 598 600 # Figure out the corresponding driver name. 599 601 my $driverName = ref($driver); 600 $driverName =~ s/HoneyClient::Agent::Driver:://g;601 602 602 603 # Extract the corresponding queue. … … 691 692 my ($class, %args) = @_; 692 693 693 # XXX: Change this to debug, eventually.694 694 # Log resolved arguments. 695 $LOG-> info(sub {695 $LOG->debug(sub { 696 696 # Make Dumper format more terse. 697 697 $Data::Dumper::Terse = 1; … … 732 732 733 733 # XXX: Delete this, eventually. 734 print $driverName . " :Checking TID = " . Dumper($tid) . "\n";734 print $driverName . " - Checking TID = " . Dumper($tid) . "\n"; 735 735 if (defined(threads->object($tid))) { 736 print $driverName . " :Thread defined.\n";736 print $driverName . " - Thread defined.\n"; 737 737 if (threads->object($tid)->is_running()) { 738 print $driverName . " :Thread is running.\n";738 print $driverName . " - Thread is running.\n"; 739 739 } else { 740 print $driverName . " :Thread is NOT running.\n";740 print $driverName . " - Thread is NOT running.\n"; 741 741 } 742 742 } else { 743 print $driverName . " :Thread NOT defined.\n";743 print $driverName . " - Thread NOT defined.\n"; 744 744 } 745 745 … … 756 756 } else { 757 757 # XXX: Remove this, eventually. 758 print $driverName . " :Creating a new run() child thread...\n";758 print $driverName . " - Creating a new run() child thread...\n"; 759 759 } 760 760 … … 790 790 if ($thread->is_running()) { 791 791 # XXX: Debugging, remove eventually. 792 print $driverName . " :Thread ID = " . $thread->tid() . "\n";792 print $driverName . " - Thread ID = " . $thread->tid() . "\n"; 793 793 } else { 794 794 # XXX: Debugging, remove eventually. 795 print $driverName . " :Thread ID = " . $thread->tid() . " (NOT RUNNING)\n";795 print $driverName . " - Thread ID = " . $thread->tid() . " (NOT RUNNING)\n"; 796 796 } 797 797 … … 855 855 # Now, initialize each driver object. 856 856 # Figure out which $driver object to use... 857 my $driverClass = 'HoneyClient::Agent::Driver::' .$driverName;857 my $driverClass = $driverName; 858 858 859 859 if (!defined($data->{$driverName}->{'state'})) { … … 998 998 999 999 # XXX: Debugging, remove eventually. 1000 print $driverName . " :About to return out of child thread.\n";1000 print $driverName . " - About to return out of child thread.\n"; 1001 1001 if (!threads->is_detached()) { 1002 1002 threads->detach(); … … 1092 1092 # Initialize the driver object. 1093 1093 # Figure out which $driver object to use... 1094 my $driverClass = 'HoneyClient::Agent::Driver::' .$driverName;1094 my $driverClass = $driverName; 1095 1095 1096 1096 if (!defined($data->{$driverName}->{'state'})) {
