Using Variable for Thread group Ramp up time

后端 未结 3 929
挽巷
挽巷 2020-12-16 06:46

how to configure the thread group ramp up time with a jmeter variable, I tried for both number of threads and ramp up time. No of threads is working fine, but ramp up time t

3条回答
  •  抹茶落季
    2020-12-16 07:33

    There is no reason why it works for # of threads but doesn't work for ramp-up time. I've been using configurable properties for both with success.

    1 is the default value in JMeter if variable can't be resolved properly. You likely made a typo. To investigate the problem, you may want to use 'Property Display' element (right-click WorkBench / Add / Non-Test Element / Property Display).

    If this doesn't help, please post link to the screenshot of thread group, and relevant part of your config where you define the ramp-up time variable.

    EDIT : example

    This is the way I usually work with configurable properties stored in external files (and it works for ramp-up as well):

    • define user defined variable on test plan level, e.g. someVarName is ${__P(someVarName)}
    • then use this var e.g. in ramp-up as ${someVarName}

提交回复
热议问题