You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2008/04/18 15:07:25 UTC

svn commit: r649517 - in /jakarta/jmeter/trunk: docs/ docs/usermanual/ src/core/org/apache/jmeter/threads/ xdocs/ xdocs/usermanual/

Author: sebb
Date: Fri Apr 18 06:07:23 2008
New Revision: 649517

URL: http://svn.apache.org/viewvc?rev=649517&view=rev
Log:
Added TESTSTART.MS property / variable = test start time in milliseconds

Modified:
    jakarta/jmeter/trunk/docs/changes.html
    jakarta/jmeter/trunk/docs/usermanual/functions.html
    jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContextService.java
    jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterVariables.java
    jakarta/jmeter/trunk/xdocs/changes.xml
    jakarta/jmeter/trunk/xdocs/usermanual/functions.xml

Modified: jakarta/jmeter/trunk/docs/changes.html
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/docs/changes.html?rev=649517&r1=649516&r2=649517&view=diff
==============================================================================
--- jakarta/jmeter/trunk/docs/changes.html (original)
+++ jakarta/jmeter/trunk/docs/changes.html Fri Apr 18 06:07:23 2008
@@ -533,6 +533,11 @@
 						</li>
 									
 
+												<li	>
+								Added TESTSTART.MS property / variable = test start time in milliseconds
+						</li>
+									
+
 						</ul>
 							  									 				<h4	>
 								Non-functional changes

Modified: jakarta/jmeter/trunk/docs/usermanual/functions.html
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/docs/usermanual/functions.html?rev=649517&r1=649516&r2=649517&view=diff
==============================================================================
--- jakarta/jmeter/trunk/docs/usermanual/functions.html (original)
+++ jakarta/jmeter/trunk/docs/usermanual/functions.html Fri Apr 18 06:07:23 2008
@@ -3051,21 +3051,32 @@
 								
 
 												<li	>
-								START.MS - start time in milliseconds
+								START.MS - JMeter start time in milliseconds
 						</li>
 									
 
 												<li	>
-								START.YMD - start time as yyyyMMdd
+								START.YMD - JMeter start time as yyyyMMdd
 						</li>
 									
 
 												<li	>
-								START.HMS - start time as HHmmss
+								START.HMS - JMeter start time as HHmmss
+						</li>
+									
+
+												<li	>
+								TESTSTART.MS - test start time in milliseconds
 						</li>
 									
 
 						</ul>
+							  									 				<p	>
+								
+Please note that the START variables / properties represent JMeter startup time, not the test start time.
+They are mainly intended for use in file names etc.
+
+						</p>
 							  		  </blockquote>
 		</td></tr>
 		<tr><td><br></td></tr>

Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContextService.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContextService.java?rev=649517&r1=649516&r2=649517&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContextService.java (original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterContextService.java Fri Apr 18 06:07:23 2008
@@ -18,6 +18,8 @@
 
 package org.apache.jmeter.threads;
 
+import org.apache.jmeter.util.JMeterUtils;
+
 /**
  * Provides context service for JMeter threads.
  * Keeps track of active and total thread counts.
@@ -49,6 +51,8 @@
 		if (testStart == 0) {
 			numberOfActiveThreads = 0;
 			testStart = System.currentTimeMillis();
+            JMeterUtils.setProperty("TESTSTART.MS",Long.toString(testStart));// $NON-NLS-1$
+			
 			threadContext = new ThreadLocal() {
 				public Object initialValue() {
 					return new JMeterContext();

Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterVariables.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterVariables.java?rev=649517&r1=649516&r2=649517&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterVariables.java (original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterVariables.java Fri Apr 18 06:07:23 2008
@@ -37,7 +37,10 @@
     
     // Property names to preload into JMeter variables:
     private static final String [] PRE_LOAD = {
-      "START.MS", "START.YMD", "START.HMS"  //$NON-NLS-1$ $NON-NLS-2$ $NON-NLS-3$
+      "START.MS",     // $NON-NLS-1$
+      "START.YMD",    // $NON-NLS-1$
+      "START.HMS",    //$NON-NLS-1$
+      "TESTSTART.MS", // $NON-NLS-1$
     };
 
 	public JMeterVariables() {

Modified: jakarta/jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/changes.xml?rev=649517&r1=649516&r2=649517&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/changes.xml (original)
+++ jakarta/jmeter/trunk/xdocs/changes.xml Fri Apr 18 06:07:23 2008
@@ -159,6 +159,7 @@
 <li>Remove HTML Parameter Mask,HTTP User Parameter Modifier from menus as they are deprecated</li>
 <li>Bug 44807 - allow session ids to be terminated by backslash</li>
 <li>Bug 44784 - allow for broken server returning additional charset</li>
+<li>Added TESTSTART.MS property / variable = test start time in milliseconds</li>
 </ul>
 
 <h4>Non-functional changes</h4>

Modified: jakarta/jmeter/trunk/xdocs/usermanual/functions.xml
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/usermanual/functions.xml?rev=649517&r1=649516&r2=649517&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/usermanual/functions.xml (original)
+++ jakarta/jmeter/trunk/xdocs/usermanual/functions.xml Fri Apr 18 06:07:23 2008
@@ -962,10 +962,15 @@
 For convenience, the START properties are also copied to variables with the same names.
 </p>
 <ul>
-<li>START.MS - start time in milliseconds</li>
-<li>START.YMD - start time as yyyyMMdd</li>
-<li>START.HMS - start time as HHmmss</li>
+<li>START.MS - JMeter start time in milliseconds</li>
+<li>START.YMD - JMeter start time as yyyyMMdd</li>
+<li>START.HMS - JMeter start time as HHmmss</li>
+<li>TESTSTART.MS - test start time in milliseconds</li>
 </ul>
+<p>
+Please note that the START variables / properties represent JMeter startup time, not the test start time.
+They are mainly intended for use in file names etc.
+</p>
 </subsection>
 </section>
 



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