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::Test(3) User Contributed Perl Documentation HTTP::WebTest::Test(3)

HTTP::WebTest::Test - Test object class

    use HTTP::WebTest::Test;

    my $test = HTTP::WebTest::Test->new(%params);
    my $test = HTTP::WebTest::Test->convert($raw_test);

    my $value = $test->param($param);
    my $value = $test->params->{$param};

    my $results = $test->results;
    my $result = $test->result->[0];
    $test->result->[0] = $result;
    $test->results([ @results ]);

    my $request = $test->request;
    $test->request($request);
    my $response = $test->response;
    $test->response($response);
    my $response_time = $test->response_time;
    $test->response_time($response_time);

Objects of this class represent tests. They store both test parameters and test results.

Constructor.

Parameters

%params

A hash with test parameters.

Returns

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

Returns

A reference to a hash with all test parameters.

Returns

A value of test parameter named $param.

Can set HTTP::WebTest::TestResult objects for this "HTTP::WebTest::Test" object if an array reference $optional_results is passed.

Returns

A reference to an array that contains HTTP::WebTest::TestResult objects.

If parameter $optional_request is passed, set HTTP::Request object for this "HTTP::WebTest::Test" object.

Returns

A HTTP::Request object.

If parameter $optional_response is passed, set HTTP::Response object for this "HTTP::WebTest::Test" object.

Returns

A HTTP::Response object.

If parameter $optional_response_time is passed, set response time for this "HTTP::WebTest::Test" object.

Returns

A response time.

Tries to convert test definition in some form into "HTTP::WebTest::Test" object. Currenlty supports test defintion in form of "HTTP::WebTest::Test" object (it is just passed through) or in the form of hash reference:

    { test_param1 => test_value1, test_param2 => test_value2 }

Returns

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

Resets test object

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::TestResult

HTTP::Request

HTTP::Response

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.