3 ms·
Rube Goldberg would be proud. (Sometimes you should take a step back and ask yourself, "is looking for pictures on the screen really the best way to do this"?
by jrockway 17y ago
Rube Goldberg would be proud.
(Sometimes you should take a step back and ask yourself, "is looking for pictures on the screen really the best way to do this"? The example they show on the main page is a one-line "ifconfig" invocation, for example.)
- JabavuAdams 17y agoThis seems like a really compelling tech for automated testing of GUI and games. Sometimes there's a long-term advantage to not doing things in a minimally-complicated way.
- jrockway 17y agoI don't really "get" GUI automation. The only bugs that GUIs can have are "this is ugly", "this is spelled wrong", "this is confusing", and so on. You can't automate that testing away; a human will have to click through and tell you what he thinks. The actual program logic is tested by the usual integration/unit tests, not by clicking buttons in the GUI. (And if you are worried about "what if clicking button foo doesn't run function foo", then you need to write more tests for the GUI generator library, not for your application.)
- liuliu 17y agoThough that's been said, there is much more than clicking button under the GUI. Tons of message passing through/to the window and it triggers a lot of system events which cannot be tested without mimic mouse/keyboard movements. Besides, some tests rely on the visual elements. See the Google Chrome blog for automatic GUI testing: http://blog.chromium.org/2009/02/distributed-reliability-testing.html http://blog.chromium.org/2009/02/distributed-reliability-tes...
- InclinedPlane 17y agoThere are lots of counterexamples, where GUI bugs represent real functionality problems. Such as "option X is disabled under condition YWZ, though it shouldn't be". However, GUI tests should be a small subset of all tests, if not you run into very difficult problems, as most GUI test frameworks are very fragile and require extensive re-baselining after even relatively minor changes.
- m0th87 17y agoTheir example is a bit juvenile. Even so, keep in mind that it is a one-line ifconfig invocation for those that understand the terminal and know about ifconfig, which does not hold for the vast majority of users. This is about making automation more usable. I'm not sure if it is a productive one because my perspective is adulterated by technical knowledge. But at the very least, it is a very interested approach which could prove fruitful for your average user.
- ugh 17y agoI’m not quite average but certainly closer to average than most here on HN, so let me just say that I found this immediately intuitive. I wanted to try it. It’s a Rube Goldberg machine, but playing with those is always fun and intuitive. (By the way, that was all very explicit and non-automatic, would it be possible to do this in some way where you just hit record and then click your way through? You would just have to snap screenshots whenever the user is clicking. Might be a problem with things that change their appearance on mouse-over like drop down menus, but I guess that’s solvable.)
- mquander 17y agoSure, but there's also a precondition for using this: you have to understand that it's actually even possible to automate repetitive tasks on a computer, and have the motivation to do so. Hell, I know programmers who don't do that. How many people fit that description, but will still find this easier than ifconfig? My guess is few. That said, I think this is a neat hack.
- m0th87 17y agoI think its usefulness (or lack thereof) can't accurately be critiqued by anecdotes from technical users, but rather needs to be quantified through usability testing. It's easy to blow this idea off, but the "solve something your users didn't know needed to be solved" advice I occasionally see on HN keeps echoing in my head.
- thwarted 17y agoit is a one-line ifconfig invocation for those that understand the terminal and know about ifconfig, which does not hold for the vast majority of users I know people who are just as much afraid of the terminal as they are of the network settings. And stepping someone through opening the terminal and typing something is approximately the same number of actions (in clicks and keystrokes) as navigating to the settings panel and typing in the info. And while I agree that the example of modifying the network settings is contrived and thus not a good example of the usefulness of this setup, the difference between modifying network settings via the system settings GUI and from the terminal with ifconfig is that one will be remembered after a reboot and one will not be despite both having similar surface complexity to change. This is mainly because the actual settings are buried in some obscure, OSX specific file somewhere that most likely isn't even editable without the GUI (same with Windows (buried in the registry) and with Gnome's Network Manager (buried in ~/.gconf/system/networking/connections)).