(01.12.2011 14:38), Lex Berezhny wrote: > On Thu, Dec 1, 2011 at 3:40 AM, Lukasz Mach<[email protected]> wrote: >> (01.12.2011 02:35), Lex Berezhny wrote: >>> Just curious what people are doing as far as testing their UI code and >>> if anyone could share their setup. >> After months spending on fighting with unittesting GUI of wxWidget >> application, I think that unittesting of GUI has no sense. Unittesting >> of web gui has even less sense. > I have tested GUIs before and found it to be very useful. Why do you > think it doesn't make sense?
Because ... it's hard to do it. I had to write lot of hacks to be able to automatically "launch application, open window, click button1, fill line, click button2, see what has been written to database". In some period, on each small modification of window look/content, I had to spent shitload of time to apply it to unittest too. And even with that, I had lot of false-positives and false-negatives, because programatically triggered actions differed a bit to actions generated by mouse and keyboards. In effect, I resigned from UT of GUI in favour of human-testing after each modification. It's cheaper :). > I find that because Pyjamas uses the DOM it's actually easier and more > pleasant to test than desktop GUI tool kits. Hmm. Once upon the time, I tried to UT web ajax application, and I found it as extremally hard. It was before I got known about pyjamas, and I tried to do it in pure javascript, maybe in pyjs it could be easier. -- pozdrawiam Ćukasz Mach Pagema (http://www.pagema.net)

