https://bz.apache.org/bugzilla/show_bug.cgi?id=69352
Bug ID: 69352 Summary: jmeter function RandomFromMultipleVars() run twice in a request Product: Apache httpd-test Version: unspecified Hardware: PC Status: NEW Severity: normal Priority: P2 Component: framework Assignee: bugs@httpd.apache.org Reporter: 175352...@qq.com Target Milestone: --- Created attachment 39881 --> https://bz.apache.org/bugzilla/attachment.cgi?id=39881&action=edit RandomFromMultipleVars() response datas in log 1. Set the parameters test1, test2, test3, and test4 in a custom function; 2. Use the ${__RandomFromMultipleVars(test1|test2|test3|test4,)} function to randomly select any value from the custom function in JMeter. {"ancd":"abcd", "edf":"edf", "test":"${__RandomFromMultipleVars(test1|test2|test3|test4,)}"} 3) Develop Beanshell, and extract the following body code: import org.apache.jmeter.config.Arguments; Arguments args = sampler.getArguments(); String req_str = args.toString().replace("(", "").replace(")", ""); req_str = req_str.substring(1); vars.put("req_body",req_str); log.info(req_str); 4. Set the "sign" parameter in the request header for signing: ${__digest(MD5,${__digest(MD5,${token},,true,)}${req_body},,true,)} 5. Run JMeter, and observe the execution log of JMeter. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org For additional commands, e-mail: bugs-h...@httpd.apache.org