jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From testerinCO <cmola...@comcast.net>
Subject Re: How to get substring function in jMeter
Date Wed, 01 Jun 2011 02:38:35 GMT
Hello

I'm using the time function and get the following string returned: 
currentTime=1306894971042.  I'm interested in only the first 10 digits.  

I tried the following:

${__jexl(Systemclass=log.class.forName("java.lang.System"); 
Stringclass=log.class.forName("java.lang.String"); 
now=Stringclass.valueOf(Systemclass.currentTimeMillis()).substring(2);)} 

The substring doesn't accept  "from" to "to" integers (i.e. 0, 9)

I've tried different iterations of javascript, but can't get jmeter to read
the file and the function within it.

Thank you.

--
View this message in context: http://jmeter.512774.n5.nabble.com/How-to-get-substring-function-in-jMeter-tp526607p4444003.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message