我有一种情况,我需要连接两个字符串1和2。
Str1: {"CodeName":"service:batch","data":{"prId":${TestId},"filters":[{
Str2: "tallId":
看起来像:
{"CodeName":"service:batch","data":{"prId":${TestId},"filters":[{"tallId":
试过:
Str1 = Str1 + "\"tallId\":";
所以我建议使用Groovy语言重新考虑你的方法,因为它有built-in JSON support,所以你应该能够从JMeter变量创建一个“好”的JSON对象,而不必担心引号,逗号等。