If you have more than one Thread Group, make sure you use different names for different values, as UDVs are shared between Thread Groups. Also, the variables are not available for use until after the element has been processed, so you cannot reference variables that are defined in the same element. You can reference variables defined in earlier UDVs or on the Test Plan.
以上为官方文档内容,可见用户定义变量重名后会覆盖的,可以用其他方式生成,比如在 JSR223 PreProcessor 之类的组件里 (是否全部类似组件都支持没考证过) 里提交变量。
Class JMeterVariables
Class which defines JMeter variables. These are similar to properties, but they are local to a single thread.
脚本里提交的属于所在线程,所以多线程之间重名也不会互相影响。
感谢付出,更感谢分享的精神~
#80 楼 @Lihuazhang 好的,今晚回去改下。
今天加班,明天开工~
如果能每个人拆的更细点,那我就报名翻译;
如果按现在这个分完,那我就报名 review~
早早的就报名了,然而到现在都没有电话~比我报名晚的几个朋友都已经被通知了,我却还在苦等~想买火车票想订酒店却不敢下手~
哎,还没有接到电话确认,好忧伤~
昨晚报名了,期待电话呢~