Ah found it.
I was replacing the null with "", but this resulted in:
/var s0={};var s1="John Allen";s0.firstnames=s1;*var s2=*;s0.prefix=s2;var
s3="Doe";s0.lastname=s3;
DWREngine._handleResponse('97_1420006799508', s0);/
So s2 does now not have a value at all.
What I should have done is:
(new Function(prev.getResponseDataAsString().replaceAll("null","\"\""))())
--
View this message in context:
http://jmeter.512774.n5.nabble.com/How-do-I-replacing-null-in-beanshell-by-empty-string-tp5721570p5721573.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]