Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Add support for parameterized load test module files #1

Open
pdehaan opened this issue Mar 13, 2017 · 1 comment
Open

Add support for parameterized load test module files #1

pdehaan opened this issue Mar 13, 2017 · 1 comment

Comments

@pdehaan
Copy link

pdehaan commented Mar 13, 2017

Something like this in a Dockerfile:

CMD URL_SERVER=$URL_SERVER molotov -c $VERBOSE -p $TEST_PROCESSES -d $TEST_DURATION -w $TEST_CONNECTIONS ${TEST_MODULE:-loadtest.py}

Re: https://docs.docker.com/engine/reference/builder/#environment-replacement

The ${variable_name} syntax also supports a few of the standard bash modifiers as specified below:

  • ${variable:-word} indicates that if variable is set then the result will be that value. If variable is not set then word will be the result.

So in our case we can pass a custom value for TEST_MODULE if we need it (ie: loadtest-read.py), but by default it will use loadtest.py.

@tarekziade
Copy link
Contributor

you can define all the running options in the top-level molotov.json file in your repo. see http://molotov.readthedocs.io/en/latest/slave/

from there, the cmd docker is running is 'moloslave', which pulls the repo and run the test with the json file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants