So, first day of GTAC is over – I’m back in my hotel room, now doing some extra-work especially for you, after having had a workday of twelve hours. I’ll give you a short overview of the talks we had.
But let’s start with the most important things: Office standard and food (dedicated to Alex, just in case he reads this ;-)). Even though I thought, the Google office in Seattle could not be topped, I have to admit: I was wrong! This office in Zurich is so unbelievable, guys. They have base camp capsules from South Pole as telephone cabins, a library furnitured in Old-English style, an indoor jungle (sic!), a massage room, fitness center, gaming zone, … and amazing food (mostly organic). Wow, congrats to Google, you managed to impress me (against my will).
Ok, back to the conference: The first and main difference compared to the event in Seattle is that this a very small, intimate convention: They selected just 100 people from those who wanted to attend – 40 Googlers and 60 Non-Googlers. All the more I appreciate being here. And in order to prove me a liar (see my last posting): During his opening remarks Jürgen Allgayer, Director of Engineering Productivity EMEA, explained in detail the criteria of the attendee selection process.
The keynote was held by Prof. Niklaus Wirth, creator of some programming languages. Here’s something of what he said:
– Theoretically, tests should tend to zero, because testing is always about finding bugs, not about preventing them
– Programmers should have a very, very deep knowledge of software design and systems
– Programs shouldn’t be dependent on underlying structures
– Universities actually don’t provide what a programmer really needs (mostly because professors stopped coding years ago)
My personal opinion concerning the last point: But companies mostly neither do! So, if they both don’t – what could be the solution?
The first regular talk was called “Precondition satisfaction by Smart Object Selection in Random Testing”, by Yi Wei and Serge Gebhardt from ETH University Zurich. It was on Random Testing, evaluated academically. They compared an “or” strategy vs. a “ps” strategy. “or” uses objects randomly to feed methods under test. The problem is that this produces many failures, because many objects don’t match the test case’s preconditions. In the “ps” strategy, there is a check if created object match the preconditions, and if yes, the predicate validation pool will be updated. They closed with a recommendation of using both strategies combined.
The next talk was on “Fighting layout bugs” by Michael Tamm, optivo GmbH. This is the talk I’ve enjoyed the most so far. He demonstrated very clearly a proof of concept, live demo included, on testing the layout of a web page. He suggested three ways of doing that:
1. Integrate HTML validation into your Continuous Integration environment (I preferred the suggestion of writing a seperate test for that). Use the W3C validation service, which is downloadable for free, so you can maintain your own validation server.
2. Also make use of the W3C CSS validation server (same way like HTML). To achieve this, styles must be written in a *.css file (I think you generally should do this!). If you start them with * html, the service is also able to deal with CSS hacks.
3. Use the fighting-layout-bugs library, which is actually a PoC, but as I mentioned, Michael did very impressing live demos.
Example: Too long texts overlapping some edges.
1. use a jQuery expression, make all text on a page black, capture a screenshot.
2. use a jQuery expression, make all text on a page white, capture a screenshot.
3. Everything what differs on these screenshot, is text.
4. Let the text disappear, find out where on the page the edges are, take a screenshot.
5. Compare these screenshots, then you know if there are any overlaps. If they are, you have a layout bug.
6. Mark the layout bug with a red circle.
Please keep in mind: All this is done automatically.
Michael demonstrated the same thing with low-contrast-bugs.
It was really quite impressive, so much that the audience gave spontaneous applause to his live demo.
If you are interested in learning more, have a look at:
Then came a Googler: Nicolas Wettstein on “Lessons learned from testing GWT Applications”. First he showed that the massive use of web apps has introduced new challenges into programming and testing, because you have to re-invent all the tools you already have for desktop apps: IDEs, Debugger, Testing tools, etc.
Then he shortly explained what GWT (pronounced “GWIT”) is – In brief: AJAX apps, written in Java.
This has the advantage of being
– strongly typed
– i18n ready
– able to handle browser incompatibilities
Nicolas mentioned 5 Pitfalls related to testing GWT apps:
1. Complex asynchronous callbacks
2. direct DOM operation within the code (because Java cannot handle it)
4. static / global access (oh, yes, the tester’s alltime favourite!)
5. no separation of concerns (mixing up domain logic, with services, views, etc.). He suggested an MVP solution instead of using the wide-spread MVC pattern. MVP means Model-View-Presenter. He also suggested to separate the services from the presenter logic in order to make things very clearly. In this case, the view communicates with the presenter level (not directly with a model, as in MVC). I hope I have written it down correctly – otherwise please give me a hint!
Furthermore, he mentioned a remarkable sentence:
“Software testing is not about writing tests, it’s about writing software that can be tested.”
Another talk (yes, pretty much stuff for just one day! :-)) was “Automatic workaround for web applications” by Alessandra Gorla and Mauro Pezzè (University of Lugano, Italy).
Here’s what they said:
– Assuming you make use of an external application on your own web page.
– When the external app has a bug, the classical approach is: Find the bug, report it, wait for bug being fixed, wait for a new version being released
– That costs much time, in the meantime your web site and your customer have to live with the bug!
– The new approach: Runtime fixing.
– Automatically finding a workaround by using e.g. intrinsic code redundancy or equivalent sequencies.
– They provided a live demo, based on user feedback.
I liked the idea of using workarounds, even though it’s very academical at this time). But I’m wondering why they combined it with user feedback whether a workaround would be useful or not – instead of having an automated frontend test, which could check if a workaround is valid. In my opinion this would decrease the rate of false positives and would not mix two different problems.
The regular talks closed with Mark Micallef’s “Achieving Web Test Automation with a Mixed-Skills Team”. That was quite interesting because this was a talk very close to daily business. In fact, it was a case study on BBC’s web site creation and testing.
What Mark told us is also my own experience: Test Analysts have a completely different skill set and motivation than Test Engineers – and this is a good thing!
The more technical it is, the more a Test Engineer’s motivation will increase – and vice versa.
Beyond this, he described what actions he performed with his mixed-skills team:
1. Define Success (and failure)
2. Utilize Abstraction
3. Unify technologies (worth to remark that they have many technologies in their production environment: .Net, PHP, Perl, Java, Flash, … – but they decided to use just one common language for any automated testing activity: Ruby / RoR, with Cucumber as Behaviour Driven Testing Tool. That allowed them to write tests in good plain English. Something also Test Analysts and Product Owner can make use of).
4. Think about process – on a basis of the four testing quadrants (I think it was Lisa Crispin’s model).
I chatted with Mike during lunch and we had an interesting conversation about ATDD / BDD, DSLs and this stuff. Thanks a lot, Mike, it was a pleasure :-)
Last but not least in the evening there was an opportunity to give some lightning talks, just 5 minutes for each. There were eight slots, and I took this as a chance for curing myself of my most-favourite mindf***: Well, to be honest, it’s my fear of talking “officially” in English. Yes, it’s ridiculous, but it’s true: When I chat with other people in English, I really enjoy it and I don’t care if I make mistakes (neither when I write blog articles). But in some situations which tend to be formal, I’m convinced that I am not able to speak English – so this was a good challenge for me… ;-D And though I was nervous like hell and everybody in the room could hardly ignore it, I eventually managed talking about “5 ways to improve your developers’ sense of quality” (in Agile environments), in front of the audience. I hope it was not recorded. Now I’m convinced that, after a few more talks, I’ll love giving talks in English nearly as well as I already do in German. I can forget my fear – I’m over it, looking for a new one.
Slides will be published here – tomorrow, hopefully.
Well, these were Christiane’s adventures from GTAC 2009, day 1 – please stay tuned, more to follow!