How to define own sample name #83
Answered
by
AntonioSun
AntonioSun
asked this question in
Q&A
-
Found it. @GrabConfig(systemClassLoader=true)
@Grab('net.simonix.scripts:groovy-jmeter')
@groovy.transform.BaseScript net.simonix.dsl.jmeter.TestScript script
start {
plan {
defaults(protocol: 'https', domain: 'www.example.com', port: 443)
group {
http 'GET https://www.example.com'
// to define own sample name you must use long version
http name: 'Custom Name 1', protocol: 'http', domain: 'localhost', path: '/', method: 'GET'
http (name: 'Custom Name 2', path: '/', method: 'GET')
}
// optional element, shows execution progress
summary(file: 'log.jtl')
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
AntonioSun
Jun 10, 2022
Replies: 1 comment
-
Found it. OP updated. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AntonioSun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found it. OP updated.