Parse::Selenese::TestCase - A Selenese Test Case
version 0.006
use Parse::Selenese::TestCase; my $testcase = Parse::Selenese::TestCase->new(filename => $some_file_name); my $testcase = Parse::Selenese::TestCase->new(content => $string); $testcase->as_perl; # Turn the case into Perl. warn "Has an open" if grep { $_->name } @{ $testcase->commands };
Parse::Selenese::TestCase is a representation of a Selenium Selenese Test Case.
BUILD
Moose method that runs after object initialization and attempts to parse whatever content was provided.
as_html
Return the test case in HTML (Selenese) format.
as_HTML
An alias to as_html
as_perl
Return the test case as a string of Perl.
save([file_name])
Save the test case.
short_name
The file name of the test case.
parse
Parse the test case from the file name or content that was previously set
Parse::Selenese::TestCase
Theodore Robert Campbell Jr <trcjr@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This software is copyright (c) 2011 by Theodore Robert Campbell Jr.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Parse::Selenese, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::Selenese
CPAN shell
perl -MCPAN -e shell install Parse::Selenese
For more information on module installation, please visit the detailed CPAN module installation guide.