vlsi commented on PR #678: URL: https://github.com/apache/jmeter/pull/678#issuecomment-1585130055
I've added `Copy Code` action so users could copy a code draft: <img width="408" alt="Copy Code action in JMeter UI" src="https://github.com/apache/jmeter/assets/213894/fa48982b-aeeb-42d9-917d-9a6fbb96b9b3"> Genenerates the following: ```kotlin org.apache.jmeter.threads.ThreadGroup::class { props { it[guiClass] = "org.apache.jmeter.threads.gui.ThreadGroupGui" it[testClass] = "org.apache.jmeter.threads.ThreadGroup" it[name] = "Thread Group" it[mainController] = org.apache.jmeter.control.LoopController().apply { props { it[name] = "Loop Controller" it[guiClass] = "org.apache.jmeter.control.gui.LoopControlPanel" it[testClass] = "org.apache.jmeter.control.LoopController" it[comments] = "" } setProperty("LoopController.continue_forever", false) setProperty("LoopController.loops", "1") } it[numThreads] = "1" it[rampTime] = "1" it[duration] = "" it[delay] = "" it[comments] = "" } setProperty("ThreadGroup.on_sample_error", "continue") org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy::class { props { it[followRedirects] = true it[useKeepalive] = true it[name] = "HTTP Request" it[guiClass] = "org.apache.jmeter.protocol.http.control.gui.HttpTestSampleGui" it[testClass] = "org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy" it[comments] = "" } setProperty("HTTPsampler.Arguments", org.apache.jmeter.config.Arguments().apply { props { it[name] = "User Defined Variables" it[guiClass] = "org.apache.jmeter.protocol.http.gui.HTTPArgumentsPanel" it[testClass] = "org.apache.jmeter.config.Arguments" it[comments] = "" } setProperty("Arguments.arguments", listOf( org.apache.jmeter.protocol.http.util.HTTPArgument().apply { setProperty("HTTPArgument.always_encode", false) setProperty("Argument.value", "world") setProperty("Argument.metadata", "=") setProperty("HTTPArgument.use_equals", true) setProperty("Argument.name", "hello") }, org.apache.jmeter.protocol.http.util.HTTPArgument().apply { setProperty("HTTPArgument.always_encode", true) setProperty("Argument.value", "asdfa") setProperty("Argument.metadata", "=") setProperty("HTTPArgument.use_equals", true) setProperty("Argument.name", "test") }, )) }) setProperty("HTTPSampler.domain", "") setProperty("HTTPSampler.port", "") setProperty("HTTPSampler.protocol", "") setProperty("HTTPSampler.contentEncoding", "") setProperty("HTTPSampler.path", "") setProperty("HTTPSampler.method", "GET") setProperty("HTTPSampler.auto_redirects", false) setProperty("HTTPSampler.embedded_url_re", "") setProperty("HTTPSampler.connect_timeout", "") setProperty("HTTPSampler.response_timeout", "") org.apache.jmeter.extractor.RegexExtractor::class { props { it[guiClass] = "org.apache.jmeter.extractor.gui.RegexExtractorGui" it[testClass] = "org.apache.jmeter.extractor.RegexExtractor" it[name] = "Regular Expression Extractor" it[comments] = "" } setProperty("RegexExtractor.useHeaders", "false") setProperty("RegexExtractor.refname", "asdf") setProperty("RegexExtractor.regex", "asdf") setProperty("RegexExtractor.template", "asdf") setProperty("RegexExtractor.default", "") setProperty("RegexExtractor.match_number", "") } } org.apache.jmeter.control.LoopController::class { props { it[guiClass] = "org.apache.jmeter.control.gui.LoopControlPanel" it[testClass] = "org.apache.jmeter.control.LoopController" it[name] = "Loop Controller" it[comments] = "" } setProperty("LoopController.continue_forever", true) setProperty("LoopController.loops", "1") } } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org