Overview

Classes

  • LoadTestingPageResponse
  • LoadTestingSession
  • LoadTestingSinglePage
  • LoadTestingTest

Exceptions

  • LoadTestingTestException

Functions

  • recordDownloadSize
  • recordError
  • recordPageTime
  • recordProgress
  • recordURLPageLoad
  • recordUserStart
  • recordUserStop
  • sendMessage
  • Overview
  • Class

Class LoadTestingPageResponse

Load Testing Page Response

Located at LoadTestingPageResponse.class.php
Methods summary
public
# setInfo( string $info )

Set the curl info for the page

Set the curl info for the page

Parameters

$info
info
public string
# getInfo( )

Get the curl info for the page

Get the curl info for the page

Returns

string
Curl info
public
# setContent( string $content, string $contentType = null )

Set the page content.

Set the page content.

Parameters

$content
content
$contentType

Optional content type. If not detected as HTML, it wil not be loaded.

public string
# getContent( )

Get the page content.

Get the page content.

Returns

string
Page content
public integer
# getHttpStatus( )

Get HTTP status code

Get HTTP status code

Returns

integer
HTTP status code
public boolean
# hasError( )

Check if there was an error

Check if there was an error

Returns

boolean
True if this looks like there was an error
public string
# getUserErrorMessage( )

Get error message returned to user

Get error message returned to user

Returns

string
Error message returned to the user
public boolean
# isPlausibleSuccessfulPost( )

Check if the page appears as though a POST form submission succeeded

Check if the page appears as though a POST form submission succeeded

Returns

boolean
True if this looks like a POST form successful submission
public string
# getCurrentUrl( )

Get current URL

Get current URL

Returns

string
Current URL
public float
# getTotalTime( )

Get total time to load page

Get total time to load page

Returns

float
Total time to load page
public DOMDocument
# getHtmlDoc( )

Parse the HTML content.

Parse the HTML content.

Returns

DOMDocument
public string
# getRelativeBase( )

Get base URL

Get base URL

Returns

string
Base URL
public string
# getPageProtocol( )

Get page protocol (e.g. http or https)

Get page protocol (e.g. http or https)

Returns

string
Protocol
public string
# getAbsoluteBase( )

Get base host

Get base host

Returns

string
Base URL
public array
# getLinks( )

Get list of links on the page.

Get list of links on the page.

Returns

array
List of unique links
public array
# getFormElems( )

Get form elements.

Get form elements.

Returns

array
Array of form elements
public array
# getFormElemNames( )

Get form elements names.

Get form elements names.

Returns

array
Array of form element names.
public array
# getSubmitButtonTexts( )

Get submit button texts

Get submit button texts

Returns

array
Array of submit button texts
public string
# selectDropdownValue( DomElement $elem )

Randomly select an option from a select box

Randomly select an option from a select box

Parameters

$elem
Select box

Returns

string
Value
public array
# getCssHrefs( )

Get list of css hrefs on the page.

Get list of css hrefs on the page.

Returns

array
List of unique css hrefs
public array
# getImageHrefs( )

Get list of image href on the page.

Get list of image href on the page.

Returns

array
List of unique image hrefs
public array
# getJavascriptSrcs( )

Get list of javascript srcs on the page.

Get list of javascript srcs on the page.

Returns

array
List of unique javascript srcs
RedLine13 Documentation API documentation generated by ApiGen