jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "BAZLEY, Sebastian" <sebastian.baz...@atosorigin.com>
Subject RE: Current date and time
Date Fri, 30 Apr 2004 10:29:01 GMT
In the UK, we use dd/MM/yy[yy]; AFAIK they use MM/dd/yy[yy] in the US and
Canada.
So is 01/02/2005 January or February?

To make the date unambiguous, you could use the form

yyyy.MM.dd HH:mm:ss
or
yyyy/MM/dd HH:mm:ss

Of course, this might not matter for your case.

The XSLT code should presumably still work, as it does not appear to be
interpreting the contents of the field - but I don't know much XSLT...

S.
-----Original Message-----
From: icq@cauni.de [mailto:icq@cauni.de]
Sent: 30 April 2004 06:49
To: jmeter-user@jakarta.apache.org
Subject: Re: Current date and time


Hi,

first of all, my english isn't the best, :-), but i try to answer your
question:

The first thing is, to go into the jmeter.properties and add this line:
 jmeter.save.saveservice.timestamp_format=dd.MM.yyyy HH:mm:ss

Adding this line takes effect, that jmeter generate a "normal" timestamp
in the result XML file.

Now you must change the jmeter-results-report.xsl. Perhaps you can do this
like my way:

<h1>Date: <xsl:value-of
select="substring(/testResults/sampleResult/@timeStamp,1,11)"/></h1>
	<h1>Time: <xsl:value-of
select="substring(/testResults/sampleResult/@timeStamp,11)"/></h1>
Insert this into the body of the xslt File, so you in the result html file
the time and date inserted.

Best regards,
Carsten
> Hi,
>
>
>
> I am using the jmeter-results-report.xsl for 2.0 and have tried to find
> a way to insert the date and time when in the generated HTML report.  I
> found some information on doing this using EXSLT but it doesn't seem to
> work with my configuration.  I also wrote a javascript function that
> will generate the date, but it seems that calling new Date() in my
> javascript function causes the date displayed to change everytime the
> HTML report is opened.  I need to include the date and time that the
> report was generated since this would be close to when the test was run.
>
>
>
> Does anyone know of a way either via XSL or JMeter to generate a
> timestamp for the generated HTML report?
>
> Thanks,
> Jacqui
>
>


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


___________________________________________________________________________

This e-mail and the documents attached are confidential and intended solely
for the addressee; it may also be privileged. If you receive this e-mail in
error, please notify the sender immediately and destroy it. As its integrity
cannot be secured on the Internet, the Atos Origin group liability cannot be
triggered for the message content. Although the sender endeavours to maintain
a computer virus-free network, the sender does not warrant that this
transmission is virus-free and will not be liable for any damages resulting
from any virus transmitted. 
___________________________________________________________________________


---------------------------------------------------------------------
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