Crate goose_eggs

Crate goose_eggs 

Source
Expand description

Goose Eggs are helpful in writing Goose load tests.

§Example

The Umami example included with Goose has been converted to use the Goose Eggs library and serves as a useful example on how to leverage it when writing load tests.

§Feature flags

  • default: use the native TLS implementation for goose and reqwest
  • rustls-tls: use the TLS implemenation provided by rustls

Modules§

drupal
Functionality that’s specific to Drupal.
text
Functionality for efficiently generating random text.

Structs§

Validate
Define one or more items to be validated in a web page response. For complete documentation, refer to ValidateBuilder.
ValidateBuilder
Used to build a Validate object, necessary to invoke the validate_page or validate_and_load_static_assets functions.

Functions§

get_css_elements
Extract all local css elements defined with a href= tag from the the provided html.
get_html_header
Use a regular expression to get the HTML header from the web page.
get_src_elements
Extract all local static elements defined with a src= tag from the the provided html.
get_title
Use a regular expression to get the web page title.
header_is_set
Returns a bool indicating whether or not a header was set in the server Response.
load_static_elements
Extract and load all local static elements from the the provided html.
valid_header_value
Returns a bool indicating whether or not a header contains an expected value.
valid_text
Returns a bool indicating whether or not an arbitrary str (case sensitive) is found within the html.
valid_title
Returns a bool indicating whether or not the title (case insensitive) on the webpage contains the provided string.
validate_and_load_static_assets
Validate the HTML response, extract and load all static elements on the page, and return the HTML body.
validate_page
Validate the HTML response and return the HTML body.