bot_army v1.0.0 mix bots.load_test View Source
Task to run the bots. Can call with various flags. Opens an interactive window to control the bots, and prints a nice summary at the end.
Supported arguments:
n
number of bots, defaults to 10tree
- [required] The full name of the module defining the test tree (must be in scope). Must expose the functiontree/0
. Ex: "MyService.Workflow.Simple"bot
- [optional] A custom callback module implementingBotArmy.Bot
, otherwise usesBotArmy.Bot.Default
custom
- [optional] Configs for your custom domain. You must specify these in quotes as an Elixir map or keyword list (ex: --custom '[host: "dev"]'). Each key/value pair will be placed intoBotArmy.SharedData
for access in your actions, and other custom code.disable-log-file
- [optional] Disables file-based logging.format-json-logs
- [optional] BotArmy will output JSON-formatted log entries.
Link to this section Summary
Link to this section Functions
Link to this function
run(args) View Source
A task needs to implement run
which receives
a list of command line args.
Callback implementation for Mix.Task.run/1
.