curcuru 01/03/12 16:36:00
Modified: test/java/src/org/apache/qetest QetestUtils.java
Log:
Added createRunId method; needs work to define exactly what a runId should
comprise;
currently used in PerfEverythingTestlet for comparing multiple test runs
Revision Changes Path
1.2 +23 -1
xml-xalan/test/java/src/org/apache/qetest/QetestUtils.java
Index: QetestUtils.java
===================================================================
RCS file:
/home/cvs/xml-xalan/test/java/src/org/apache/qetest/QetestUtils.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- QetestUtils.java 2001/02/23 21:02:08 1.1
+++ QetestUtils.java 2001/03/13 00:35:59 1.2
@@ -64,7 +64,7 @@
* Static utility class for both general-purpose testing methods
* and a few XML-specific methods.
* @author [EMAIL PROTECTED]
- * @version $Id: QetestUtils.java,v 1.1 2001/02/23 21:02:08 curcuru Exp $
+ * @version $Id: QetestUtils.java,v 1.2 2001/03/13 00:35:59 curcuru Exp $
*/
public class QetestUtils
{
@@ -188,6 +188,28 @@
// You can't always get you what you want
return null;
}
+ }
+
+
+ /**
+ * Utility method to create a unique runId.
+ *
+ * This is used to construct a theoretically unique Id for
+ * each run of a test script. It is used later in some results
+ * analysis stylesheets to create comparative charts showing
+ * differences in results and timing data from one run of
+ * a test to another.
+ *
+ * @param String Id base to start with
+ * @return String Id to use; normally will include a timestamp
+ */
+ public static String createRunId(String baseId)
+ {
+ //@todo Hmmm - what do we want in the runId?
+ // For now, just use milliseconds timer and some strings
+ String timeId = Long.toString(System.currentTimeMillis());
+ return "runId;" + baseId + ";" + timeId;
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]