1

is there any why to increment Alphanumeric like

A01,A02---A99,B01-----Z99.

like this way, we used to work counter config element for increment numbers but this time we need along with alphabets.

Thanks in advance!

SNR
  • 11
  • 2

1 Answers1

1

You could do it using a suitable JSR223 Test Element and some Groovy code like:

for (char letter = 'A'; letter <= ('Z' as Character); letter++) {
    1.upto(99,{number ->
        def format = new java.text.DecimalFormat('00')
        log.info(letter as String + format.format(number));
    })
}

Demo:

enter image description here

Dmitri T
  • 159,985
  • 5
  • 83
  • 133