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:

  1. download jug library (for example here) , drop .jar somewhere jmeter classpath
  2. restart jmeter pick .jar up
  3. 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:

jmeter generate uuidv1

references:


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -