Test case for testing of web pages. Allows fetching of pages, parsing of HTML and submitting forms.
Located in /libraries/pear/simpletest/web_tester.php (line 24)
RunnableTest | --SimpleTestCase | --WebTestCase
Class | Description |
---|---|
![]() |
Test case for testing of web pages. Allows fetching of pages, parsing of HTML and submitting forms. |
![]() |
Test case for testing of web pages. Allows fetching of pages, parsing of HTML and submitting forms. |
![]() |
Test case for testing of web pages. Allows fetching of pages, parsing of HTML and submitting forms. |
![]() |
Test case for testing of web pages. Allows fetching of pages, parsing of HTML and submitting forms. |
![]() |
Test case for testing of web pages. Allows fetching of pages, parsing of HTML and submitting forms. |
![]() |
Test case for testing of web pages. Allows fetching of pages, parsing of HTML and submitting forms. |
![]() |
Test case for testing of web pages. Allows fetching of pages, parsing of HTML and submitting forms. |
![]() |
Test case for testing of web pages. Allows fetching of pages, parsing of HTML and submitting forms. |
![]() |
Test case for testing of web pages. Allows fetching of pages, parsing of HTML and submitting forms. |
![]() |
Test case for testing of web pages. Allows fetching of pages, parsing of HTML and submitting forms. |
Inherited from SimpleTestCase
SimpleTestCase::$_reporter
Inherited from RunnableTest
RunnableTest::$_label
Creates an empty test case. Should be subclassed with test methods for a functional test case.
Adds a header to every fetch.
Moves cookie expiry times back into the past.
Useful for testing timeouts and expiries.
Attempt to match the authentication type within the security realm we are currently matching.
Checks that a cookie is set for the current page and optionally checks the value.
Confirms that the form element is currently set to the expected value. A missing form will always fail. If no value is given then only the existence of the field is checked.
Confirms that the form element is currently set to the expected value. A missing form will always fail. If no ID is given then only the existence of the field is checked.
Tests for the presence of a link label. Match is case insensitive with normalised space.
Tests for the presence of a link id attribute.
Checks the mime type against a list of possible values.
Checks that no authentication is necessary to view the desired page.
Checks that no cookie is present or that it has been successfully cleared.
Will trigger a pass if the perl regex pattern is not present in raw content.
Attempts to match the current security realm.
Checks the response code against a list of possible values.
Tests the text between the title tags.
Will trigger a pass if the Perl regex pattern is found in the raw content.
Retries a request after setting the authentication for the current realm.
Equivalent to hitting the back button on the browser.
Clears the frame focus. All frames will be searched for content.
Clicks the submit image by some kind of label. Usually
the alt tag or the nearest equivalent. The owning form will be submitted by this. Clicking outside of the boundary of the coordinates will result in a failure.
Clicks the submit image by ID attribute. The owning form will be submitted by this. Clicking outside of the boundary of the coordinates will result in a failure.
Clicks the submit image by the name. Usually
the alt tag or the nearest equivalent. The owning form will be submitted by this. Clicking outside of the boundary of the coordinates will result in a failure.
Follows a link by name. Will click the first link found with this link text by default, or a later one if an index is given. Match is case insensitive with normalised space.
Follows a link by id attribute.
Clicks the submit button by label. The owning form will be submitted by this.
Clicks the submit button by ID attribute. The owning form will be submitted by this.
Clicks the submit button by name attribute. The owning form will be submitted by this.
Creates a new default web browser object.
Will be cleared at the end of the test method.
Equivalent to hitting the forward button on the browser.
Fetches a page into the page buffer. If there is no base for the URL then the current base URL is used. After the fetch the base URL reflects the new location.
Gets a current browser reference for setting special expectations or for detailed examination of page fetches.
Accessor for current frame focus. Will be false if no frame has focus.
Gets the last response error.
Does a HTTP HEAD fetch, fetching only the page headers. The current base URL is unchanged by this.
Disables frames support. Frames will not be fetched and the frameset page will be used instead.
Sets up a browser for the start of each test method.
Fetches a page by POST into the page buffer.
If there is no base for the URL then the current base URL is used. After the fetch the base URL reflects the new location.
Simulates the closing and reopening of the browser.
Temporary cookies will be discarded and timed cookies will be expired if later than the specified time.
Equivalent to hitting the retry button on the browser. Will attempt to repeat the page fetch.
Sets the socket timeout for opening a connection and receiving at least one byte of information.
Sets a cookie in the current browser.
Sets all form fields with that name.
Sets all form fields with that name.
Sets the focus by name.
Sets the focus by index. The integer index starts from 1.
Sets the maximum number of redirects before the web page is loaded regardless.
Dumps the current HTTP headers for debugging.
Dumps the current request for debugging.
Dumps the current HTML source for debugging.
Submits a form by the ID.
Sets proxy to use on all requests for when testing from behind a firewall. Set URL to false to disable.
Inherited From SimpleTestCase
SimpleTestCase::SimpleTestCase()
SimpleTestCase::assertExpectation()
SimpleTestCase::assertFalse()
SimpleTestCase::assertTrue()
SimpleTestCase::dump()
SimpleTestCase::error()
SimpleTestCase::fail()
SimpleTestCase::getAssertionLine()
SimpleTestCase::invoke()
SimpleTestCase::pass()
SimpleTestCase::run()
SimpleTestCase::sendMessage()
SimpleTestCase::setUp()
SimpleTestCase::signal()
SimpleTestCase::swallowErrors()
SimpleTestCase::tearDown()
SimpleTestCase::_createRunner()
SimpleTestCase::_isConstructor()
SimpleTestCase::_isTest()
Inherited From RunnableTest
RunnableTest::RunnableTest()
RunnableTest::getLabel()
RunnableTest::getSize()
RunnableTest::run()
Documentation generated on Fri, 10 Dec 2004 18:26:58 +0000 by phpDocumentor 1.3.0RC3