GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
HTTP::WebTest::TestResult(3) User Contributed Perl Documentation HTTP::WebTest::TestResult(3)

HTTP::WebTest::TestResult - Test results class

    use HTTP::WebTest::TestResult;

    my $result = HTTP::WebTest::TestResult;

    my $bool = $result->ok;
    $result->ok($bool);
    my $comment = $result->comment;
    $result->comment($comment);

    if($result) { ... }

Objects of this class represent test results. Test results are basicly "ok"/"not ok" and some attached commentary.

This class overloads "bool" operation so it can be directly used in statements that require boolean values.

    if($result) { ... }

is equivalent to

    if($result->ok) { ... }

Constructor

Returns

A new "HTTP::WebTest::TestResult" object.

If $optional_ok is passed, Defines whether or not test is successful.

Returns

True if test is successful. False otherwise.

If $optional_comment is passed, sets test result comment.

Returns

A test result comment.

Copyright (c) 2001-2003 Ilya Martynov. All rights reserved.

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

HTTP::WebTest

HTTP::WebTest::API

HTTP::WebTest::Test

2003-03-02 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.