Is it possible to generate UUID v1 with JMeter? -
i read jmeter's manual , saw there __uuid() function jmeter. allows generate uuid type 4 jmeter tests. possible generate uuidv1 in jmeter or maybe plugin exists.
i recommend taking following steps:
- download jug library (for example here) , drop .jar somewhere jmeter classpath
- restart jmeter pick .jar up
once done should able generate uuidv1 using jsr223 test elements , groovy language like:
import com.fasterxml.uuid.ethernetaddress import com.fasterxml.uuid.generators import com.fasterxml.uuid.impl.timebasedgenerator def addr = ethernetaddress.frominterface() def gen = generators.timebasedgenerator(addr) def v1uuid = gen.generate() log.info(v1uuid.tostring())
demo:
references:
Comments
Post a Comment