GATLING 测试 - 存储不同的环境变量并在不同的测试/开发环境中运行相同的 gatling 测试

问题描述 投票:0回答:0

想在不同的环境(测试和开发环境等)中运行相同的 gatling 测试,如何从不同的环境中获取 url 并使用它来运行相同的 gatling 测试

    like env.qa - store all qa urls
         env.dev - store all dev urls
         env.prod  - store all prod urls
    
    
    Pass env as a run time variable that should go and run the gatling in test in that particular environment
    and ./gradlew clean gatlingRun -DGATLING_ENV="dev"
    ./gradlew clean gatlingRun -DGATLING_ENV="qa"
    ./gradlew clean gatlingRun -DGATLING_ENV="prod"

something like this.
environment-variables gatling
© www.soinside.com 2019 - 2024. All rights reserved.