use Plack::Builder;
use File::ShareDir qw/dist_dir/;
use MyApp;
my $app = MyApp->run;
builder {
mount "/selenium" => builder {
my $dist_dir = dist_dir('TRunner'); # autodie unless installed TRunner
Plack::Util::load_psgi "$dist_dir/app.psgi";
},
mount "/" => $app;
};
$ TRUNNER_CONF=/path/to/trunner.yml plackup -Ilib /path/to/app.psgi
$ dzil build
$ cd TRunner-[VERSION]/
$ perl Makefile.PL
$ make && make install
mount "/selenium" => builder {
my $dist_dir = dist_dir('TRunner'); # autodie unless installed TRunner
Plack::Util::load_psgi "$dist_dir/app.psgi";
},
$ TRUNNER_CONF=/path/to/trunner.yml plackup -Ilib /path/to/app.psgi
http://your-app-url/selenium 으로 접속해서 브라우저 테스트(Selenium Core) 를 수행합니다.
<smolder>
server smolder.example.com
username yourname
password s3cr3t
project_id 3 # just example
</smolder>