--- Begin Message ---
Subject: |
AW: [sr #103871] Verifying GUI-Testresults with xnee using the Tool "xgrabsc" |
Date: |
Thu, 19 Jan 2006 06:34:54 +0100 |
Hi Veijo,
thanks for your thinking about the xnee-feature to
build.
It's nice to see, that other people are interested in
this feature. So xnee could be a very usefull testing
tool
for X11-applications.
( sorry for my small english. i don't often use this
language for speaking ore writing but most for
reading.)
I think, your are right with your idea, it could
be enough saving the checksum of the picturefiles to the
xnee-session-file.
If allways the reference-checksum is the same to the
taken screenshot while replaying the session, that is ok, but how would verify
errors of your programm,
when the checksums are not identic?
If your are saving the screenshots, so you can verify a
defect of your grafical interface by comparing the reference-screenshot
against
the actual taken screenshot while replaying the
session.
So you can see the differences between the pictures and
verify, what your grafical interface has done.
The reference-screenshot is my requirement for
testing.
Ok. Picturefiles can be very large on filesystem, so
there could be a problem after any time.
Hm.
We could compress them while saving and uncompress
them, if we need to see them.
kind regards and all the best for
you
Dirk Kaplick
Hello,
I am wondering why ImageMagic import screen capture
program works
almost three times more slowly than xwd ? I checked both .xwd
files
with xwud -command and I did not find any visible difference between
them.
(For details, see the end of my message)
Dirk wrote:
"I
think, its neccessary to save the checksum and the coordinates
of the
screenshot while recording a session in the session-file and save the
screenshot under a filename given by user in a soure-directory for
reference-screenshots.
In "Test.dat" you can find only one line like
this:
5#137#34#96
That means: 5 Start at x-coordinate 5
137 Start
at y-coordinate 137
34 End at x+34
96 End at
y+96
"
(http://savannah.gnu.org/support/?func=detailitem&item_id=103871)
According
to /usr/X11R6/include/X11/XWDFile.h xwd file format saves image coordinates
too:
CARD32 window_width
B32; /* Window width
*/
CARD32 window_height
B32; /* Window height
*/
CARD32 window_x
B32; /* Window
upper left X coordinate */
CARD32
window_y B32;
/* Window upper left Y coordinate */
CARD32 window_bdrwidth B32; /* Window border width
*/
Dirk wrote also "I think, its neccessary to save the checksum and
the coordinates of the
screenshot while recording a session in the
session-file and save the screenshot under a
filename given by user in a
soure-directory for reference-screenshots."
I did't understand why
screenshot itself should be saved to the file if the
only usage for this
picture file is to calculate checksum. I think that
checksum should be saved,
not the picture.
How are you planning to calculate checksum ? My choice
was adler32 instead of md5sum
when I did java -program, because Adler32 was
much, much more faster than md5sum.
Adler32 should be inside
/usr/lib/libz.so
# uLong adler32 (uLong adler, const Bytef *buf, uInt
len);
# uLong crc32 (uLong crc, const Bytef *buf, uInt len);
http://www.zlib.net/manual.html#Checksum%20functions
Veijo
On 1/18/06, Henrik
Sandklef <address@hidden>
wrote:
Update
of sr #103871 (project
xnee):
Status:
In Progress =>
Done
Open/Closed: Open
=>
Closed
_______________________________________________________
Follow-up
Comment #5:
I will close this task and open a new one instead. The
reason is I think
using ImageMagick is easier.
/hesa
_______________________________________________________
Reply
to this item at:
<http://savannah.gnu.org/support/?func=detailitem&item_id=103871
>
_______________________________________________
Message
sent via/by Savannah
http://savannah.gnu.org/
--- End Message ---