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 forgoose
andreqwest
rustls-tls
: use the TLS implemenation provided byrustls
Modules
- Functionality that’s specific to Drupal.
- Functionality for efficiently generating random text.
Structs
- Define one or more items to be validated in a web page response. For complete documentation, refer to
ValidateBuilder
. - Used to build a
Validate
object, necessary to invoke thevalidate_page
orvalidate_and_load_static_assets
functions.
Functions
- Extract all local css elements defined with a
href=
tag from the the provided html. - Use a regular expression to get the HTML header from the web page.
- Extract all local static elements defined with a
src=
tag from the the provided html. - Use a regular expression to get the web page title.
- Returns a
bool
indicating whether or not a header was set in the server Response. - Extract and load all local static elements from the the provided html.
- Returns a
bool
indicating whether or not a header contains an expected value. - Returns a
bool
indicating whether or not an arbitrary str (case sensitive) is found within the html. - Returns a
bool
indicating whether or not the title (case insensitive) on the webpage contains the provided string. - Validate the HTML response, extract and load all static elements on the page, and return the HTML body.
- Validate the HTML response and return the HTML body.