我正在使用denvazh/gatling容器,并且一切正常,除了我尝试通过这样的模拟列表的一件事:

Attaching to gatling
gatling_1 | GATLING_HOME is set to /opt/gatling
gatling_1 | Choose a simulation number:
gatling_1 |      [0] AppsPods
gatling_1 |      [1] ServerSimulation
gatling_1 |      [2] computerdatabase.BasicSimulation
gatling_1 |      [3] computerdatabase.advanced.AdvancedSimulationStep01
gatling_1 |      [4] computerdatabase.advanced.AdvancedSimulationStep02
gatling_1 |      [5] computerdatabase.advanced.AdvancedSimulationStep03

我写这样的命令:
docker run -it --rm -v /home/core/gatling/conf:/opt/gatling/conf \
-v /home/core/gatling/user-files:/opt/gatling/user-files \
-v /home/core/gatling/results:/opt/gatling/results \
denvazh/gatling -s AdvancedSimulationStep01

但是没有任何意义再次显示模拟列表,我需要从列表中选择测试以开始模拟。所以有可能只运行我指定启动docker run命令的那个测试女巫吗???

最佳答案

您需要提供完全合格的类名,即
docker run -it --rm -v /home/core/gatling/conf:/opt/gatling/conf \ -v /home/core/gatling/user-files:/opt/gatling/user-files \ -v /home/core/gatling/results:/opt/gatling/results \ denvazh/gatling -s computerdatabase.advanced.AdvancedSimulationStep01

关于docker - 从容器运行加特林,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/39596260/

10-16 16:35