Mailingliste - Einträge 2006


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [qftestJUI] Using the timestamps on the node within a Jython Script...


  • Subject: Re: [qftestJUI] Using the timestamps on the node within a Jython Script...
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 09 Jun 2006 09:59:43 +0200

Hello Venkat,

indeed, parsing the qrz file is not easily possible outside Java. The
format for the image is a compressed RGB array.

QF-Test version 2 will have an option to store the image as PNG
internally, so all you need to do is base64 decoding.

However, version 2 will also extract the images to PNG files when
creating reports, the XML reports will contain references to those
files and the HTML reports will display the screenshots along with the
error information, so maybe you shouldn't invest the time for this
right now. 

Anyway, the script in the list archive you're referring to was
intended for capturing an image at a specific time, not at the time of
an error.

Best regards,
    Greg

Venkatesh Madurai-Subramanian <vmadurai@?.com> writes:

>    Greetings!
>    I tried out the Jython code mentioned in a previous script at
>    http://www.qfs.de/archive/qftest-list/2004/msg00420.html (Many thanks to
>    Greg and everyone else for that)
>    I think this is a relatively cleaner and simpler option than trying to
>    parse and decode the string in the QRZ reports...
>    We run a lot of tests in batch modes. Is there a way to always run a
>    varation of the Jython code in the link above:
>    a. without having to include the Jython script at each location where
>    we need a screenshot (as we don't know where all could the failures
>    occur)
>    b. use a unique name for each screenshot, for example as
>    timestamp.png, timestamp being the timestamp mentioned in the QRZ
>    file, for the node, where the exception occurs?
>    Regards
>    Venkat

-- 
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876


Videos Downloads Dokumentation Kaufen Gratis Testen