... Taking "Best Practice" terms seriously is a Best Practice. ... That's called a "golden copy" unit test. Just byte-compare the two files. Then get ready for...
... Uncompressed, unencrypted PDF isn't too bad, it's just text. If you can test PostScript, I would have thought you could test raw PDF. It's only when you...
... Are parsers for PDF available? - decompress if necessary - parse and spot-check - convert to XML - generically parse that? Note this is all test-last, not...
... GhostScript can read PDF. ... Agreed. The only time I can imagine wanting to test PDF output directly in a Test-First scenario is when testing the PDF...
I've got a question about the GetFontFromUser() method... So you don't actually test that do you? You just mock it to avoid the dialog, right? I've been...
Hi Rob, ... [...] ... I think its because CC.Net runs as a service. The service has no desktop, so NUnitForms can't open any form. Sincerely, Stefan Lieser...
This raises a curious question. Sometimes your GUI tests must display a little GUI. Either you can't or shouldn't turn it off. Maybe the test depends on the...
... That's correct and we just discovered a workaround. [Aside: I believe this also requires that we override the UseHidden property: public override bool...
... You are probably not writing the entire pipeline from logical data, to vector commands (draw a square!), to the raster commands in your driver layer. You...
A long time ago I promised to several people on a couple of lists that I'd write up my approach to doing user interface unit testing with the Cocoa framework...
... Do your test cases have an optional reveal() function? Ask if you don't know what that means! -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!...
... The following is extracted from the Web chapter of a forthcoming book on test-first for GUIs. It cites /Extreme Programming for Web Projects/: The great...
... Not directly, but I have done similar things. Here are some guidelines: - use the "Gold Master Test" technique for a cheap way to detect changes in a...
I just discovered this group and thought you might be interested to now that I've release WatiN 0.8 on http://watin.sourceforge.net. "WatiN (pronounced...
... I forgot the 3rd technique: - make the renderer interface pluggable. That means you have two modules - the one that decides what to print, and the one that...
GUI testers: David has asked how to start using Watir to drive a website and test it. To the David: Read a book about Ruby ASAP! To the Ruby users: Where's the...
... Note that's the inverse of the reveal() technique I suggested. How would that look in Watir code? The two techniques could reinforce each other! -- Phlip ...
... Can you do that "first"? Can you write a failing test that forces you to upgrade the code to pass the test the correct way? ... One JB Rainsberger calls...
... Note you can use ImageMagick or GraphicsMagick to do nearly all of that, from a batch file. (That's also how I polish ZeekLand, but I'm not sure what the ...
Phlip wrote: DALY, S. 1993. The Visible Differences Predictor: An algorithm for the assessment of image fidelity. In Digital Images and Human Vision, A. B....
... What if that story were too big? If you split the story into a low- and high-value part, usability must survive that split. You can't put addresses in the...
From: "Adrian Howard" ... Ruby's Webrick makes that absurdly simple. You could even go Webrick -> CGI -> your application in your language. My MiniRubyWiki...
... Tip: Pass a testing object into the thread, and let that throw a semaphore. Then block on the semaphore here. However, in general, Dialogs often block as a...
I would create a modeless window given a choice. But I don't have a choice. Perhaps you are suggesting that I use a modeless window for testing, even if the...
... That's just a specification. Just match it, and ensure the code behaves like your customers need. ... Yes. Like I said, for windows, a modal window is...
Kelly, A modeless window and a modal window are the same thing. the only difference is calling Show() or ShowDialog(). In your tests call Show() and in the...
... The next only difference, if I recall my Win32 SDK correctly, is one kind must end with EndDialog() and the other ends with something else. So then you...