javascript - Remove dash(-) from uuid generated by funciton __UUID in jmeter -


i new jmeter , calling $(__uuid) function in jmeter uuid. uuid generated this

14c5f969-ba57-4493-b4ba-01f1c8b6908d

how remove dashes final result uuid 14c5f969-a574493b4ba01f1c8b6908d

i calling $(__uuid) function "http request defaults" samples in jmeter path textfield set

/end/fa7dbe2de11f4f08b3c941ff8b5b4c08/now/${__uuid}/

if i'm correctly getting question , want remove dashes path can done via beanshell pre processor.

add child of http request(s) replacement required , put like

string path = sampler.getpath(); sampler.setpath(path.replaceall("-","")); 

to "script" area.

this code replace occurrences of dash symbols in http request path.

see how use beanshell: jmeter's favorite built-in component guide more information regarding beanshell scripting in apache jmeter , kind of beanshell cookbook.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -