Version: 1.0
Environment
ENV
#
A subset of process.env
available to this test. It is of type FloodProcessEnv.
FloodProcessEnv
#
Properties
BROWSER_ID
number
FLOOD_GRID_INDEX
number
FLOOD_GRID_NODE_SEQUENCE_ID
number
FLOOD_GRID_REGION
string
FLOOD_GRID_SEQUENCE_ID
number
FLOOD_GRID_SQEUENCE_ID
number
FLOOD_LOAD_TEST
boolean
true
when running as a load test on https://flood.iofalse
otherwiseThis can be useful for changing settings based on whether you're testing your script locally or running it as a fully fledged load test.FLOOD_NODE_INDEX
number
FLOOD_PROJECT_ID
number
FLOOD_SEQUENCE_ID
number
SEQUENCE
number
Globally unique sequence number for this browser instance.
StepOptions
#
Specifies the available options which can be supplied to a step to override global settings.
Example:
Properties
- waitTimeout?
number
(Optional) Timeout in seconds for all wait and navigation operations within this step.
StepFunction
#
The StepFunction
type represents a function to be called as a Test step.
browser
Browser the browserdata
<T
> (Optional) a row of test data of type <T
>. Only available when the test is set up using suite.
Example:
step(name, fn)
#
Declares each step in your test. This must go within your main test expression.
Example:
Parameters
- name
string
Step Name - fn
StepFunction
Actual implementation of step - returns:
void
step(name, options, fn)
#
step
can also be called with an overridden subset of Test settings (options
) valid for just this step.
Parameters
- name
string
- options
StepOptions
- fn
StepFunction
- returns:
void
suite
#
Defines a test suite of steps to run.
Example: