Kashratul has asked for the wisdom of the Perl Monks concerning the following question:
I have a perl file that uses selenium to open gmail -> log in -> log out.
The code is working correctly.
I have used Test::Harness just for a try.
use Test::Harness (runtests, execute_tests) ; @test_files = qw (gmail_selenium.pl); execute_tests(tests => \@test_files);
This is working correctly.
Now if I modify the code little bit:
All is working correctly but the last line is not getting printed.use Test::Harness (runtests, execute_tests) ; @test_files = qw (gmail_selenium.pl); $total = execute_tests(tests => \@test_files); print $total->{max};
As per the information in CPAN (Test::Harness) => "Returns a list of two values, $total and $failed, describing the results."
I felt $total->{max} will return the total number of test runned (based on the info given in CPAN).
Can some one guide me why this is not getting printed?
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Info about Test::Harness
by Anonymous Monk on Mar 27, 2008 at 09:34 UTC | |
Re: Info about Test::Harness
by leriksen (Curate) on Mar 28, 2008 at 02:17 UTC |