jmeter组件-前置处理器-BeanShell preprocessor 嵌套循环(三)
在数组 test1=[{"id":"123","name":"jop"},{"id":"456","name":"tom"}] 中,有些请求body中不允许以数组的方式发,只能{"id":"123","name":"jop"},{"id":"456","name":"tom"}发,则需要去掉[],在前置处理器中,已经生成的数组是无法通过replace("[","").replace("]","")来去掉[],具体要怎么去掉[],需要按照如下的方式解决
原创
2021-11-18 22:33:48 ·
664 阅读 ·
0 评论