sub stop_app_server {
my($self) = @_;
- $self->{app_server_proc}->complete || $self->{app_server_proc}->kill(9);
+ $self->{app_server_proc}->complete || $self->{app_server_proc}->kill("KILL");
}
sub test_directory {
my ($self, $dir) = @_;
+ if($self->{selenium_rc}{start} && !$self->{selenium_rc}{selenium_server_proc}) {
+ $self->start_selenium_server;
+ }
my @tests = File::Find::Rule->file()->name('*.html')->in($dir);
for my $test (@tests) {
- $self->start_server;
$self->run_tests_for($test);
- $self->stop_server;
}
}
$self->{selenium_rc}{selenium_server_proc}->complete ||
$self->{selenium_rc}{selenium_server_proc}->kill("KILL");
}
+ $self->stop_app_server;
}
1;