Edward Fancher > HTTP-WebTest-Plugin-TagAttTest-1.00 > HTTP::WebTest::Plugin::TagAttTest

Download:
HTTP-WebTest-Plugin-TagAttTest-1.00.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.00   Source  

NAME ^

HTTP::WebTest::Plugin::TagAttTest - Test by tag and attribute existence

SYNOPSIS ^

Not Applicable

DESCRIPTION ^

This plugin allows to forbid or require tags and/or attributes in a web page.

TEST PARAMETERS ^

ignore_case

Determines if case is important.

Allowed values

yes,no

Default value

no

tag_require

A required tag. This is an array of hashs such as require_tag => [{tag=>"script", tag_text=>"spam", attr=>"language",attr_text=>"javascript"}]

See also the "TAG HASH" for a more detailed explaination.

Allowed values

list of hashes

Default value

None (will generate a failed test)

forbid_tag

A forbidden tag. This is an array of hashs such as forbid_tag => [{tag=>"script",attr=>"language",attr_text=>"javascript"}]

See also the "TAG HASH" for a more detailed explaination.

Allowed values

list of hashes

Default value

None (will generate a failed test)

TAG HASH ^

tag

tag to forbid

attr

attribute to forbid

attr_text

regular expression or text. If text, will do a substring search.

tag_text

regular expression or text. If text, will do a substring search.

Note that if an element is missing, it will not be considered. So something like require_tag = [{tag=>"title"}]> will assure that a page has a title tag, but the title tag could be blank.

COPYRIGHT ^

Copyright (c) 2003-2004 Edward Fancher. All rights reserved.

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

SEE ALSO ^

HTTP::WebTest

HTTP::WebTest::API

HTTP::WebTest::Plugin

HTTP::WebTest::Plugins

HTTP::WebTest::Plugins

syntax highlighting: