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 forgooseandreqwestrustls-tls: use the TLS implemenation provided byrustls
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. - Validate
Builder - Used to build a
Validateobject, necessary to invoke thevalidate_pageorvalidate_and_load_static_assetsfunctions.
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
boolindicating 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
boolindicating whether or not a header contains an expected value. - valid_
text - Returns a
boolindicating whether or not an arbitrary str (case sensitive) is found within the html. - valid_
title - Returns a
boolindicating 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.