NAME

Parse::Selenese::TestCase - A Selenese Test Case

VERSION

version 0.004

SYNOPSIS

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 };

DESCRIPTION

Parse::Selenese::TestCase is a representation of a Selenium Selenese Test Case.

Functions

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

NAME

Parse::Selenese::TestCase

AUTHOR

Theodore Robert Campbell Jr <trcjr@cpan.org>

SEE ALSO

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Theodore Robert Campbell Jr <trcjr@cpan.org>

COPYRIGHT AND LICENSE

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.