I'm trying to build a beanshell assertion that writes detailed error
information to a file, including the start time of the sample with the
error.
I managed to get the starttime, using SampleResult.getStartTime(),
which gives me the starttime as Long.
How do I format this in a more readable format?
Being unexperienced in Beanshell and Java-programming I found and
tried "sampleResult.getStartTime().SimpleDateFormat()", but that gives
an error message that the beanshell interpreter couldn't find the
class:
        "Error in method invocation: Method SimpleDateFormat() not
found in class'bsh.Primitive'"
Do I need to import the SimpleDateFormat class first?
Do I need to convert the getStartTime-result to a Java-date-object to
be able to format it using SimpleDateFormat?
Or should I do it in a complete different way?

Your help is very much appreciated!
--
Michel Duijvestijn
Rotterdam University

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to