----------------------------------------
> From: ghady.d...@live.com
> To: itext-questions@lists.sourceforge.net
> Date: Fri, 15 Jan 2010 04:53:12 +0200
> Subject: [iText-questions] Functional testing
>
> Hey,
>
> First, thanks for your replies concerning unit testing. I understand it's not 
> easy to do unit tests for PDF creation, but what about profiling? Did you 
> guys do any tests to check the performance of some of the methods (execution 
> time, memory usage...). Same for functional tests.

Did you see my earlier post? If you can define something well enough to code 
and you believe that
computer can automate data processing, not just make pictures, then you can 
find some way to test it.
Even people who do auto and video have devised clever figures-of-merit or 
various statistics to get
some idea if something works without having someone look at each result. The 
output of just about anything
can be either inverted ( see if you go back what you started with up to the 
limits of your transform ) 
or at least tested with simple statistics. I suggested getting an open source 
viewer to render each result to
pages and make measurements on pixels- you can compare blocks to known good 
results or just look at statistics
and then of course get a human to spot check page images visually. Others have 
mentioned PDF parsing
tools, if anyone wants to get specific on pdf dumping tools that may be helpful 
to everyone here .

I'm not sure what you are after in terms of performance measurement. You have 
the source code and can
call System.currentTimeMillis() where ever you want. Is there something you 
want here that would
be specific to itext and not more generally applicable to any java profiling? 
Note of course
that java is quite limiting in this regard but presumably you are talking about 
rather gross
features such as bottelenecks. 


In any case, I think everyone agrees it is more difficult to "test" images than 
character data due to 
simple volume and the number of arbitrary ( meaningless to most computer uses) 
pixels due to 
things like font details etc- computer vision, OCR, image indexing, etc are all 
difficult problems in general and
PDF generally goes in the other direction of these efforts. When you find 
perceptually meaningless stuff in audio or video, you
throw it out to compress it.  Here, the objective seems to be to retain it. I'm 
being facteious
somewhat as many document users view the font details as "perceptible"  but not 
entirely, clearly turning a character string into a pixel array and dropping 
logical
structure reduces the versatility of future applications and clutters the 
important parts as far as a computer
is concerned. Human and computer perceptions can differ and testing does 
highlight the fact that even people
creating files for human consumption need to insure that the computer can 
understand them simply for quality control.



>
> Thanks again.
>
> Respectfully,
> Ghady DIAB
>
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Check the site with examples before you ask questions: 
> http://www.1t3xt.info/examples/
> You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
                                          
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
http://clk.atdmt.com/GBL/go/196390706/direct/01/
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to