jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: How to get subString with Split function.
Date Fri, 06 Nov 2009 06:59:20 GMT
hi
${__split(${string},subString,=)}
You can always use a debug sampler(with view results tree listener) to check
what values your variables have, also you should check jmeter logs
regards
deepak

2009/11/5 Cynthia Li <cynthia.li@icebreakersoftware.com>

> hi,
> Anyone could help me to resolve this problem??Thanks
> --------------------
> My JMeter Version is 2.3.2
> I have a string like string="wap/test.do?n=123&testName=test2" ,and I want
> to get the substring and split with character '='
> My define a variable as subString= ${__split(${string},subString),=}
> subString_1=wap/test.do?n
> subString_2=123&testName
> subString_3=test2
> I think it is right ,but System will return a null subString when I try to
> get value of  ${subString_3}.Where is wrong??
>
> --
> Best Regards,
> Cynthia Lee
> Ice Breaker China, Inc.
> Tel:  86-10-82800942-815
> Fax: 86-10-82800941
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message