Monday, April 18, 2011

TWiST #41 - with Michael Larsen




Sorry for the delay in getting this up, had a busy Friday and weekend. Besides, I always feel a little funny talking about myself when I do an interview.


One thing I will share, though, is that when you listen to yourself off script, you notice some interesting ticks. Whereas I said in the past I don’t typically say “um or ah”, that’s not to say that I don’t have my own verbal idiosyncrasies. The one that I noticed most tellingly this time through for me is that, when I feel anxious or unprepared, I tend to “double speak”. No I don’t mean I’m evasive with answers, I mean that I tend to say things twice. It’s the old “I’m going to tell you something, tell you, and then tell you what I told you. That may be effective in a classroom or in a talk, but it’s annoying in an interview. Needless to say, I was brutal with the editing because of this, so if you hear what feels like stutters in the interview, I figured you’d be more willing to deal with that then me repeating myself ad nauseum (LOL!).


This week’s interview was originally recorded on April 1st, and because of that, we decided it would be fun to mess with the format a bit, including the theme song. Some of you may know this, but for those who don’t we change the theme song every 20 shows. Since this was show 41, we were going to change the song anyway, but Matt thought it would be funny for this show to inject Rebecca Black’s viral YouTube track “Friday” into the mix. We figured if anyone could roll with it and not feel like they were being made fun of, it would be me (and they would be right ;) ). Next week wee will have a different theme, and that will run us out for the next 19 episodes.


This week I talked a bit about my transition from a traditional development environment to an Agile one, and some of the interesting challenges that entails. I also talked a biot about some of the interesting quality environments and expectations with certain products (such as video games, especially before the auto-update abilities of more recent systems), and I also talked a bit about Weekend Testing in the Americas. If you’d like to hear the interview, listen to Episode #41.

Standard disclaimer:


Each TWiST podcast is free for 30 days, but you have to be a basic member to access it. After 30 days, you have to have a Pro Membership to access it, so either head on over quickly (depending on when you see this) or consider upgrading to a Pro membership so that you can get to the podcasts and the entire library whenever you want to :). In addition, Pro membership allows you to access and download to the entire archive of Software Test and Quality Assurance Magazine, and its issues under its former name, Software Test and Performance.


TWiST-Plus is all extra material, and as such is not hosted behind STP’s site model. There is no limitation to accessing TWiST-Plus material, just click the link to download and listen.


Again, my thanks to STP for hosting the podcasts and storing the archive. We hope you enjoy listening to them as much as we enjoy making them :).

Wednesday, April 13, 2011

Book Review: The Book of Audacity

There are times when a book reviewer reviews a book because it’s something they have a passing interest in, or it is something they know they should be doing and want to learn more. Then there are those books that relate to something so familiar and so every day, that it’s easy to build an expectation for the title. For me, audio editing on behalf of the TWiST podcast is a nearly daily thing (at least five days a week), and Audacity is my tool of choice for doing audio editing, partly by chance but more recently by familiarity. Is there a book out there that would keep my interest on the subject?


I’m happy to say that “The Book of Audacity”, written by Carla Schroeder, and published by No-Starch Press, is just such a book. You don’t have to be a computer aficionado, but it certainly helps. You don’t have to be a musician, but it certainly helps there, too. You don’t have to be someone who enjoys a witty and sometimes mildly sarcastic writing style, but again, it certainly helps. If you are the special geek that fits all three of these categories just mentioned, then this book is a gem!


The Book of Audacity is platform agnostic, but shows a number of approaches to using it on a number of platforms (with a special section specifically focusing on Linux). Audacity is free and cross platform, and the author spends plenty of time trying to make the users feel comfortable tackling the various topics.


Many books are written to describe the process of recording and producing music, but they often devolve into an impenetrable treatise on sound theory and issues of interest to professional audio and signal processing engineers, leaving many of us everyday folks interested in recording behind. Carla is careful to not do that here. Often her tone is irreverent, humorous, and at times downright snarky, proving this isn’t your typical audio recording book, and that’s all for the better.


The Book of Audacity uses multiple projects to help the user get the most out of the program and appreciate many of the finer details the application provides. Some of the projects will have varying amounts of interest, but the chapter long focus on many of these projects allows the reader to get in-depth enough if they want to focus on that particular aspect, or skip to the next chapter if they are not.


AUDACITY FROM START TO FINISH

This section gives a good overview of the program and how to get a quick understanding of many key features. It’s not an in-depth tutorial, but the first time user will feel comfortable after perusing this chapter.


BUILDING A GOOD DIGITAL SOUND STUDIO ON THE CHEAP

Think that you will have to break the bank to create a “recording rig”? In many cases, it’s as simple as using the hardware already in your computer. If you want to get more involved, there are additional items that can be used, and I appreciate the level of personal detail Carla provides in showing the equipment that she personally likes using, including audio interfaces, microphones and digital recording devices.


TRANSFERRING VINYL LPs (AND OTHER LEGACY MEDIA) TO CD

This chapter may be skipped if this project isn’t relevant to you, but there’s a lot of good information in here regarding how to get external audio into your computer and then work with the audio to create master CD’s. Topics like dynamic range, recording levels, fixing pops and clicks, dealing with clipping, dealing with separate tracks, creating fade-ins and fade-outs, and mixing down and creating the final audio CD are covered.


CREATING AND EDITING LIVE TRACKS FOR CD

If you have an interest in recording live music, especially if you use a modern flash based digital recording device, then this section is for you. It covers the technical details of recording a live performance, whether that be using the digital recorder to record the live room or getting a feed from the board directly. It also covers such things as how to interact with the sound crew and generally be a net positive in the experience (these are the little things that set this book apart from many other audio books, in that it covers some of the finer personal interactions, not just using an audio tool). Methods for dealing with recordings made at different times and different places are covered so that the end result sounds as consistent as possible.


AUTHORING A COMPILATION CD

This section covers taking audio from multiple audio sources and creating a compilation CD (or for those of us of an older generation, a digital “mix tape”). Using multiple audio formats, ripping from CD’s and DVD’s are covered, converting MP3s to uncompressed WAV files, and covering the details needed to get the tracks to a consistent sound level, determining track order, and creating a seamless production so that the final product can be mixed down and burned to a Red Book format CD are discussed.


AUTHORING SUPER HIGH-FIDELITY AUDIO DVDs

DVD audio is a high end sound approach that takes advantage of the space a DVD allows to let the person doing the recording use even higher quality audio samples and audio formats (uncompressed WAV, AIFF, FLAC, etc.) This section walks the user through the process of producing an audio DVD and highlights tools that will help the process go smoothly.


CREATING PODCASTS

So far, most of the projects have been dealing with single track (mono or stereo) sequences. This is the first section that gets into multi-track recording and covers my bread-and-butter topic, podcasting. You’ll learn how to mix multiple parts together, including using intro music, creating a duck down track for theme music and having it drop when the announcer speaks, cleaning up verbal ticks (how to deal with “ums” and "ahs” and the like), as well as exporting to a format that is high enough quality for listening purposes but minimizes the size requirements for easier downloading.


BECOMING AN ONLINE STAR

So you have gone to great lengths to produce audio for various purposes. Now what do you want to do with it/. In this chapter, the topic of getting your work out into the public space is covered. Ever wondered what it would be like to be a signed musician, Do you even want to go that route? Do you need to? Can you forge your own path? This section answers those questions as well as how to go about developing an online presence, how to get your work out to those who want to listen to it, whether or not you should use Digital Rights Management on your files (personal choice, I generally say “don’t”, but your mileage may vary), and dealing with the issues surrounding copyright and fair use.


MULTITRACK RECORDING

While the section for podcasting goes into the basics of multi-track recordings, this is a deep dive into how Audacity allows for multiple channels to be recorded (and the equipment necessary if you want to do it “live”), dealing with and ordering multiple tracks, getting the levels right, using the internal mixer and equalization tools, labeling tracks to keep track of what’s happening and where, how to move various tracks around and group them together, as well as how to construct custom mix downs so that instruments are panned and ordered in the mix the way you want them to be.


MAKING YOUR OWN RINGTONES

If you are tired of paying for ring-tones for your cellular phone, or just want to know how to make them for the fun of it, this section is for you. It discusses creating a short recording, using dynamic range compression so that the recording can be optimized for the small speaker inside a phone, and then converted to the file format that your phone will support and allow you to upload it and use it as a ring tone. Again, it’s an example of a project that shows how Audacity can be used for a range of audio options.


AUDACITY PLUG-INS FOR SPECIAL EFFECTS

One of the great advances Audacity and other audio tools provides is the ability to use effects that used to require lots of outboard gear. Signal processing allows for very basic details such as dynamic range compression and signal leveling, but also lets the user go to town with interesting effects such as reverb, digital delay, tremolo, phase shifting, distortion, etc. Using these effects effectively is more challenging than just setting an effect and applying it. Many effects on a given track will cause additive effects and knowing how to deal with them is important. It’s also possible to use the effects to create electronic drum sounds and other approaches (there’s an entire effects language called NyQuist that is covered a bit in here as well).


FIX-ITS AND CLEANUPS

Ideally, we will do the best we can to get clean and focused audio recording, but sometimes the source material is not perfect or we have little control over some of the issues that arise in the recording process (live interviews, noisy rooms, sudden volume changes, etc). This section deals with the ways to handle the inevitable “clean-up” jobs we will face from time to time. Simple tasks like cutting out sections or trimming silence are covered, as well as more advanced topics like splitting audio tracks, performing noise removal (and dealing with the effects of that), how to effectively use leveling and normalization, waveform repair using the draw tool, modifying tempo and performing pitch correction, and using compression effectively are all covered here.


CONFIGURING LINUX FOR BEST AUDIO QUALITY

For those who are using Windows or a Mac, this section will probably not be relevant. For those using Linux distributions, though, there is a gold mine of information in here for maximizing your system’s abilities.


CONFIGURING WINDOWS FOR BEST AUDIO QUALITY

Windows also has a number of quirks and areas that can be adjusted so that the system performs smoothly and integrates that various options for sound input and output together. With the number of available devices that leverage USB 2.0, FireWire and other media formats, even laptop users with limited options for on-board configurability can branch out and experience high quality interfaces and how to tweak them for best use.


CUSTOMIZING AUDACITY

There are lots of preference options that will allow the user to tailor the experience to the things that they do best or wish to take advantage of, and this section covers all of them. This section also covers default file formats, setting up batch jobs (chains) that can be used for automating many of the routine tasks, exporting to a default file format, enabling or disabling effect, and other helpful options so that you can focus on your projects and not dealing with the system that supports it.


APPENDIX

The last section is a reference guide to audio recording equipment, topics and terms, recording myths and explanations that will help demystify the process of audio recording and help present the truth about such ideas as “equipment burn-in” (myth, it’s not needed), the superiority of tubes over solid state (99.9% of listeners won’t be able to tell the difference), and the need for specialty cables (in most cases, nope. You want properly made cables, yes, but gold plating is not necessary).


BOTTOM LINE

There is truly something in here for everybody that deals with audio recording of any stripe, and Audacity can be used for both simple and all-encompassing projects. The style of the book takes into account that not everyone has the same goals, and the book is structured in a way where a complete read-through is not necessary. The basic techniques are covered multiple times in the book so that mastery can be developed but also so that the project that interests the user can be the primary focus.


Most of all, the book gets out of the way to let you work on the projects you want to work on in the way you want to work. It also strikes a balance between technical discussion and everyday reality, with a tone that is both engaging and entertaining (yes, technical books can be entertaining, too, it is possible). For those looking to go beyond the basics, and want to use Audacity as their tool of choice, The Book of Audacity would be a good title to help get the most out of that decision.

The Book of Audacity: Record, Edit, Mix, and Master with the Free Audio Editor

Saturday, April 9, 2011

EWT39 - Optical Recognition. A Weekend Testing Follow-Up

I was pleasantly surprised this past week when I saw that there was going to be the 39th European Weekend Testing event. Much of the action for EWT has been covered by the group meeting on weeknights, which for me is right in the middle of my workday. Hence, I'm not able to make those. So I was happy to see that we were going to have a session that would allow me to attend, even if somewhat early (start time of 8:00 AM for those of us on the West Coast of the US, but 4:00 PM GMT/UTC).

Today I'd like to welcome Eusebiu Blindu as European Weekend Testing's newest facilitator. I think he did an excellent job and I look forward to future interactions with him at the helm of EWT's sessions.

The mission today was as follows:

Compare the following image to text converters:

     http://www.free-ocr.com/
     http://www.onlineocr.net/default.aspx
     https://docs.google.com/DocAction?action=updoc&hl=en
          
by:

1)file size capability
2)speed of conversion
3)quality of conversion (defined by the tester)
4)find other aspects that can be a relevant metric and point out the observations



From here, we split off and presented the findings of our tests. I wanted to try some things that I normally have to deal with when it comes to documents that I'd like to convert to other things. These included:

  • tables of data
  • checklists
  • phone lists

I have literally dozens of these in PDF format, many of them flat images that have been scanned or emailed to me. Oh how it would be nice to see this data liberated and usable in other capacities. These apps are designed to help do that. From this premise, I used one of my favorite approaches to testing, which I call (and so do lots of other people, it's not my idea ;) ) "persona based testing". Persona based testing is where we take on the role of a person looking to accomplish a task, and put ourselves in their shoes. By doing this, we try our best to forget the technology (especially if we know it) and try to experience the situation from the perspective of another person. My goal was to see if, with the three document types I described (all three flat PDF files) if I could get them to be viewable and in a usable manner.

All three applications could deal well with straight text, say, from a letter or a short story on a page. The ability of the applications started to diverge and break down and we added more complexity to the tasks. The Free-OCR application took my phone list and separated their four columns into one long column, one listed right after the other (not useful for its intended purpose). Online OCR, was able to scan it is with no line breaks, but preserving the line order, so that was a little more useful. Google Doc conversion maintained the format of the original file including line breaks. The toughest test was to see how it handled a table of data with cell borders (visible lines) between the data. The fact is, noe of them handled it well. All of the "scanners" broke up the text into random batches and none of them corresponded with another.

We discussed the various methods that we could put into play to test these applications,and here's where the true value of Weekend testing comes in... no matter how much you think you know about an application, no matter how much experience you have in testing, someone else is going to provide another idea for you to consider that you didn't. In a short time period, something has to give. None of us tested all aspects on all three tools (whether or not it was because we didn't have time, or figured someone else was going to test the particular item is open to interpretation). We also had an interesting discussion comparing the claims of the product vs the realities, both in what it was able to do and what it wasn't (interesting find, though one of the apps stops you at 15 uploads an hour, if you clear your cookie cache and history, and then go back to the site, you can continue to upload files).

So my thanks to the testers that participated in today's session. Each one of these helps us develop our skills and approaches to testing, and more to the point, help us think just a little differently. I'll argue that I think the latter is the more important of the group, but any practice adds value, so I'm again happy for the chance to keep improving with a little help from my friends.

Friday, April 8, 2011

TWiST #40 -- with Fiona Charles


So this was a challenging week to edit a podcast, all things considered. The Selenium conference was in town, and I was an attendee (see my past three entries for my live notes from the various sessions that I attended).


Normally, I use the spare time that I get in the various times of the day to edit these details, but the conference left me few times where I would be able to do that, so that left me with early morning or late at night (and those who follow the blog know that I'm next to useless late at night, so early morning it was). I was actually able to get the podcast done early this week, and therefore it's been up for a day already (that doesn't usually happen, but I hope the early treat was enjoyed by you all out there :) ).


This week's interview is with Fiona Charles. Fiona is a consultant who's specialty is test management for large scale companies and organizations, both private as well as public/government projects.  Fiona is the principal consultant with QualityIntelligence. Her  blog and twitter details are in the links.


Fiona takes on a number of topics related to large projects, dealing with the challenges and issues that those projects face, including project and corporate politics and the roles of testers in that big mix. But why listen to me prattle on about it, go check out Episode #40 for yourself :).


Standard disclaimer:


Each TWiST podcast is free for 30 days, but you have to be a basic member to access it. After 30 days, you have to have a Pro Membership to access it, so either head on over quickly (depending on when you see this) or consider upgrading to a Pro membership so that you can get to the podcasts and the entire library whenever you want to :). In addition, Pro membership allows you to access and download to the entire archive of Software Test and Quality Assurance Magazine, and its issues under its former name, Software Test and Performance.


TWiST-Plus is all extra material, and as such is not hosted behind STP’s site model. There is no limitation to accessing TWiST-Plus material, just click the link to download and listen.


Again, my thanks to STP for hosting the podcasts and storing the archive. We hope you enjoy listening to them as much as we enjoy making them :).

Wednesday, April 6, 2011

Selenium Conference, Day 3

Day 3 got underway with an early arrival to set up, check the sound board and make sure that we could get more recording done (I have approximately 30 pieces of audio to go through, so it might take awhile to parse through and massage all of it). David Burns was kind enough to sit down and give me an interview discussing his involvement as a committer and his views of both the present tech and future of Selenium and his involvement with it. also, for those interested, David Burns is the Author of the Selenium 1.0 Testing Tools Beginners Guide that is the subject of my Practicum section of my blog :) ).


Wednesday morning's keynote was given by Bret Pettichord, he of the legendary cowboy hat and the Watir evangelism, among other things :). Bret lead a tour-de-force performance championing science and eschewing the drugs that are record and playback. The dark ages of test tools actually had gag orders; you couldn't criticize the tool vendor if your system didn't work. Much discussion of Watir and Selenium and the key quote that I found very valuable, and it seems a lot of others did, too: "Watir was made to help make testers better developers. Selenium was made to help make developers better testers". Again, Bret followed on with the example from Jason Huggins yesterday, and did his whole talk without any visual aids. It seems a lot of people appreciated this approach as well. The key takeaway is that the story we are telling about Selenium does not match the reality of what we are experiencing. If we look at the Selenium site, it's all about the Selenium IDE and recording tests. If we look at the people here at the conference, almost nobody is using the IDE. Our story does not match the science. We need to change the story, and help testers realize they must make the step from tester to programmer. They don't have to be brilliant programmers, but they need to know some underlying concepts and not be afraid of writing test programs.


Andreas Tolfsen followed on with a talk about how Opera is using Automated testing in their organization, and shared that they generated anywhere between 1,000,000 and 6,000,000 test results *EVERY DAY*! Another interesting statistic? Their developer to tester ratio is 2 to 1! While I had a chance to catch a few of the comments from this talk, I was mostly engaged interviewing Ashley Wilson for the podcast. For the record, everyone at this conference owes Ashley a huge vote of thanks! She has very much been the "wizard behind the curtain" for this conference. Most of the moving parts and actions that have been going on to make this work have been primarily handled by her and a troop of volunteers, so if you see Ashley, definitely say "thank you" for what has been a terrific few days.


Eran Messeri followed on with what has vexed and interested me for some time... how can we test in virtual environments better? Google has a huge initiative regarding how to run well over 1 million test cases on a variety of platforms. Their answer is a heavy focus on using virtual machines that they can spin up and down, as well as massive parallelism of test execution, using what Google refers to as "Test Shards". Not only are tests run on multiple configurations, but test suites are literally split up to run over dozens or even hundreds of virtual machines. Eran insists this is not a holy grain by any means, there's a number of drawbacks to this approach, not the least of which is a continuous need to maintain many very large disk images and update the applications on a regular basis. Still, even with that, the benefits outweigh the disadvantages considerably.


Francois Reynaud and Kevin Menard discussed the changes and the opportunities for testers with Selenium 2.0 Grid. There are some exciting changes in play with Grid 2.0. The most interesting one off the bat is that it's just one jar file now, and therefore it is now easier to install and set up. Additionally, Grid 2.0 can also act as either a node or as a switch, it also has a lot of customization options. Oh, and the demo looked really, really cool :). What's more, Watir users will be able to leverage Grid 2.0 to extend their tests across multiple machines via watir-webdriver. The load balancer in Grid 2.0 allows the user to customize which requests are sent to which nodes. Also, Grid 2.0 is not bound to Selenium. Excited? Alas, we'll have to wait until Selenium 2.0 beta 4 is released, but beta 4 is practically all about Grid 2.0. Can't wait :)!!!


Andy Tinkham followed up with a talk about using Selenium and Cucumber to demonstrate a case study of how his Health Services company is structuring their test cases. They are doing as much as possible to separate the data from the tests, using random test data to increase the odds of finding bugs, and using Cucumber to help construct the tests in plain text while still making the underlying framework effective for those using it. The Cucumber tests and features are constructed with QA, Dev, BA's and Product managers to create the initial stories. They use just enough source code so that they can translate plain text into test calls. Nice example of a case surrounding patients with allergies and notifying users that this is the case. The scenario as described (given, when, then) is well constructed and sensible to anyone who reads it (as is the promise of Cucumber, generally speaking :) ). Seriously, this is an impressive real world example and while some of this is over my head, it's looking to be less over my head. Additionally, I like seeing the references and comments to meta-programming using Ruby (since the company I work with is heavily Ruby, I like hearing more and more about success stories of Ruby working well with Selenium and Cucumber. It gives me hope :).


Following lunch, Joel Klabo talked about "Flex Piloting". First thing to note, Joel is a 1st time speaker, and I want to offer my congratulations to him for stepping up to speak. as he said when he forwarded his talk for consideration "you have to start somewhere". Flex Pilot is an add-on that can be run in both selenium IDE and Selenium RC. it's an add-on to both, and allows for an additional series of commands top be added to both. Demo looked interesting and it has sparked my interest :).


Next up was the ADD portion of the program... that's right, Lightning Talks. Seriously, I'm not going to do this in real time, I just don't type that fast (LOL!), but suffice it to say that the presenters are both entertaining and covering a broad variety of topics (Selenium Tips in poem form? whoa!). Also, as I was watching the 2nd talk I noticed that Devon Smith was delivering it... I had no idea she was here! Devon, stop by and say "Hi", I'd love to finally meet you in person! Amazing and broad litany of talks presented and only a couple of buzzes. thank you all for giving me my "shiny fix/short attention span theater" for the day!

During the break, I finally cornered Jason Huggins and got an interview (seriously, I've been trying to get this interview for three day, so I'm a little psyched :) ). Following the break, Adam Christian gave a talk about Automation Battle Scars. The most memorable opening slide ever... "Automation Prison Rule 1: Punch a developer in the face!" No, not really, but don't be a pansy. Get in, make your case, make your stand and get to it. Earn the respect of the development team. Stop trying to take shortcuts. Learn how to code. You don't have to be an expert, but you'll be well positioned to do better testing and better automation work if you learn some of the basics. Please note, much of the tone of the talk is tongue in cheek. All in all a great and entertaining talk.

Simon Stewart is the final speaker, and it brings us back to why we are all hear... what was the easiest way to control a browser. It was a good goal once upon a time, but the ambition has changed. There's way more to the web than there was 7 years ago. So what's next? We need to desroy the project to make the world a better place. We need to make the effort to reinvent and redevelop Selenium for the future. We are going to be the ones to help do that, and browser vendors are stepping up to help make their part of that happen. We need good high quality bug reports, but much more important, we need good quality patches. the future lookks amazing, the watir project is going to be based on webdriver, so is selenium. The browser community is getting in on the game, and helping us get to the point where standards are set. We're getting speed and performance increases, and we are getting a heck of a combined community. there's a lot that we will be able to do in the future, but note the point, it's what WE will be able to do in the future. The beauty of open source projects is the WE. the community needs us, all of us. Let's all commit to doing something to make Selenium and watir and web Driver and [fillInTheBlank] even more incredible than it is today.

My thanks to everyone for a tremendous program and an amazing three days. It's been an amazing experience. Here's hoping I can bring this all home and put it into practice in a meaningful way, and be one of those WE's that the community needs. Now I'm hoping that we will have some fun this evening in the closing hours, and I'll talk about that in another post.


Afternote: Some have wondered why I haven't posted a review yet for Selenium Simplified, Alan Richardson's book. The answer is, I have, but it's in a different place. You'll find my review for Selenium Simplified in The Testing Planet, the journal published by the Software Testing Club. Paper copies just went out this week, so those who purchase the paper version are getting first crack at it, but I am willing to bet the electronic version will be available by the end of the week, and then you can see my review there.

Tuesday, April 5, 2011

Selenium Conference, Day 2

So here we are once again, after a fun night of celebrating with the kickoff party at the Cigar Bar and Grill (great food, snacks, an open bar, and 300 of your closest geek friends, how could you possibly go wrong ;)?). The #tableoftrouble decided to go together and I walked us all through Chinatown to get to Jackson Square, and on the way we stopped by my favorite Sweet Shop in Chinatown, with every conceivable delicacy you could imagine (black candied ginger and spicy cuttlefish FTW).

From there, we spent some time schmoozing with the attendees, and I was able to get a few interviews, including a really cool one with Patrick Wilson-Welsh, where he turned the tables on me and started interviewing *me* :). I had fun talking with Bret Pettichord, and there's a picture floating around out there of the "Testers with Hats" :). Elizabeth Hendrickson came out to hang with us for a bit, and a bunch of us went for late Mexican food down near Yerba Buena gardens (good food, great conversation, had to be rolled out of the restaurant, really sleepy but very happy). My thanks to Dawn Cannan, Marlena Compton, Bret Pettichord, Andy Tinkham, Elizabeth Hendrickson, John Medlong and Patrick Wilson-Welsh for a great evening.

Tuesday morning fired up with the introductory keynote from Jason Huggins, and an explanation for where Selenium came from, how it got its name, what it was meant to do and how the state of technology keeps having Selenium up its game to keep up and move ahead. One of my favorite quotes from the talk was the idea that "elephants aren't meant to dance, but if you can make an elephant dance, that's really cool!" What was also noteworthy of Jason's keynote was the fact that he did the whole thing without a single slide. Every word was to be heard by everyone without support, and he did a masterful job of that. Also, while it's well known, it was quite fun to reiterate that "Selenium is the cure for Mercury poisoning" (LOL!).


Dave Hunt and Andy Smith followed up with an engaging demo of a game with a flying helicopter, and automating the game. The intent is to show that Selenium can automate Canvas application (canvas being a new tag in the HTML 5 specification). To see an example of a Canvas application, check out http://pirateslovedaisies.com/. The approach for testing canvas applications w/ the Selenium suite is to create Testing Requirements, write Auto Hooks, consider Visual Feedback, Work Together & Create Tests. Sounds like good advice all the way across the board.


The next talk focused on Selenium and Cucumber. One of the main points of this talk was that, if you are a lone tester, you have two choices, you can do manual testing, or you can do automated testing. You cannot do both,or at least you can't do both well; it's too much for one person to handle. For solid automation to take place, it needs to be a dedicated function and role. From here, the talk veered into Cucumber and how, after the automation framework is in place, it can go a long way towards documenting and describing tests in language that real people understand. Some controversy was raised with the comments that the testers should do testing in the language the application was written. On the surface I agree, but I also see that the tests may require unique aspects that the development language won't specifically cover.


Following on just before lunch was a much anticipated and what promised to be an entertaining talk, and Adam Goucher did not disappoint. In short, the talk was titled "YOU'RE DOING IT WRONG!" and was dedicated to all of the steps that contribute to brittle, unmaintainable, and unmanageable tests. For those who want to have some fun, I encourage you to do a search on twitter for @adamgoucher and #yourdoingitwrong, you'll find a lot of good practices and ideas.

As if Adam Goucher/Man of Steel wasn't busy enough, he followed on after lunch with another talk, this time focusing on the creation and maintaining and overall desirability of Selenium IDE plug ins. In this talk, Adam let slip an interesting irony alert... while Adam is the maintainer of the Selenium IDE project, and does a lions share of development on it, he's actively engaged in encouraging people to actually not use it. He'd much prefer that tests be exported out to a real programming language and leverage Selenium-RC or WebDriver going forward. However, since Selenium IDE is still used, the goal is to make the experience as painless as possible for those who are using it. To this end, and to help encourage more robust and less error prone IDE development, Adam actively encourages the development of plug-ins and the benefits that come with the plug-in approach. Also, for those wondering, the development for the Firefox 4 plug-in isn't lagging, it's broken. They are not ignoring you, they just have some things that have to be fixed before it can be released. So now you know :).

Dante Briones presented a talk directed to going "Beyond Page Objects" and making a case for developing Page Components. I have to admit I felt that this talk spent a little too much time focusing on saving keystrokes inside of IntelliJ as opposed to focusing on the main idea of the talk, which is creating smaller and more dynamic page components. Why would we care about that? Because today's pages are not at all the monolithic static pages of yesteryear, there's a lot of small elements that we interact with, so being able to focus on the components is a good idea and interesting. For the record, I am not anti-IDE, although I much prefer using vim when I write what code I do write. I find that relying too much on the IDE adds too many layers of abstraction, and cause me to be a user of an app rather than a writer of code. Anyway, just my opinion on that little segue, overall I think the ideas of being able to target and utilize smaller elements of the page to be of value. 

Of note, I also want to say that there are a number of talks being given in the Track B session (Adam's talk about "You're Doing It Wrong" being a shining example, so if you notice I'm not talking about many of those, well, I can't be in two places at the same time :) ).

As an almost cosmically comical juxtaposition, Dealing With Test Results with Mikeal Rogers went for ultra simplicity. His presentation was made in TextMate...  no, seriously, the entire presentation was done in TextMate... he even made large line breaks as though they were slide separations. Of course, that's no the point of his talk, but I found it amusing to see the comparison of the two talks side by side. Mikhael gets to the point quickly; use CouchDB and query it. We can use html and JavaScript to query the data that's entered into the database. the key takeaway is that, to deal with test results, we need to store the results, and then we need to query for the details. Which database is irrelevant, just make sure it get in there! Also, for the record, Mikhael gets my vote for the most freewheeling talk/presentation/demo... the dude's got style :)!

The group of Watir and Selenium contributors and maintainers took the stage to discuss the details about various burning topics of controversy, such as:

  • Is Grid necessary ("YES")
  • Why are there both selenium-webdriver and watir-webdriver (both are considered to be at different layers, and both handle different API's. Why two gems instead of one? Small gems with clear purposes are easier to maintain, and easier to scope). 
  • Will there be support for load testing (No, not the target or focus of Selenium, in fact Jason said "No, No, a thousand times no!"). 
  • What's the value for having a headless implementation of something like HTMLunit (it's really fast, for one!). 
  • Should tests depend on data generated/established by other tests ("NO!"). 
  • Are they considering moving to github ("NO!", lots of binary artifacts make that really hard). 
  • How about running their own git server ("Discuss over beer later!"). 
  • What are some useful things you can do with an on the fly profile (Client side profiling, creating HAR files, using custom extensions, etc. Benefits are that you don't have to copy multiple profile files to run tests like in Selenium 1). 
  • Will there be user extensions in Selenium 2.0? ("NO!", more to the point, they have a very low usage percentage, and there are other ways to do it that are better and more easily maintainable). 
  • NO really, will there be user extensions in Selenium 2.0? ("How many people use user extensions in Se 1? Um, 6... out of 250. Will it be in Se 2? YeeeeeeeNO"). 
  • Can we inject headers in Selenium 2? If not, why? ("Selenium 1 add headers, but then cannot remove them. Selenium is a browser automation framework, it is not a "monkeying around with the web" tool. Out of scope."). 
  • Will there be tools to automate mobile apps? ("There are some that focus on the WebDriver APIs to allow users to drive native applications" They have a proof of concept for Android already." Otherwise, use Selenium 2). 
  • Watir vs Selenium? ("Different markets, it's a taste thing for many, plenty of room for both"). 
  • What's the level of browser support in Selenium 2? ("Selenium does not support all browsers equally. Opera in WebDriver has excellent support because Opera rolled their own browser support. Chrome is getting better, focus on standardization of browser support".). 
  • Can Selenium deal with Client Side certificates ("Custom profile helps deal with this"). 
Overall a great discussion.
Tuesday's Closing Keynote with Patrick Lightbody was titled "Selenium: Seven Years in the Making". Patrick talked about when he first got involved in Selenium. From an email quote: "too bad this didn't exist when we were setting up the test environment at Spoke". Selenium started as a small project, but with the advent of Selenium IDE, it really picked up considerably. It's exciting to see how each of the parts came into being, and how webDriver and Selenium 2.0 has been incubating for nearly three years. It really helps to put into perspective the level of work and commitment that it has taken to make this an ongoing concern. With the possibility of overtaking QTP in the marketplace, the Open Source Ecosystem that contributes to and drives Selenium is very healthy and thriving (thinhk Capybara, Webrat, Watir, HTMLUnit) as well as corporate interests like SauceLabs, Twist, PushToTest, dynaTrace, etc.). While there have been many great successes, there's a lot that they still want to do:
  • Better searchability for documentation 
  • better answers and solutions for issues
  • making it easier for contributors to build the system and give back to the project.
  • Also, the fate of selenium IDE is not as clear cut as some would say. 
Patrick is encouraging everyone to participate in the process of helping define what Selenium IDE is and can be. So how do we get involved then?
  1. Answer questions on selenium users list. 
  2. Join the Selenium Mailing list. 
  3. Join the IRC chat. 
  4. Build the app. 
  5. Submit patches. 
  6. Improve documentation. 
  7. Educate your peers.  
  8. Help maintain our build system. 
There's a lot that all of us can do to make a quick and big difference. We may not all be able to do everything, but we can all do something! The Future? Selenium IDE is the driver for bringing on new users, it needs to be maintained and enhanced. Selenium WebDriver for direct automation, Grid replacing SeleniumRC and who knows what else? It looks like an exciting seven years could be in our future.
It's a shame that I have to bolt immediately afterwards, as I'd love to talk more with my fellow Selenium fans, but thanks to all of the support staff who help make this conference a success. Today was terrific, really looking forward to tomorrow and the bittersweet fact that this will be over tomorrow night! I've learned a great deal and hope to learn even more Wednesday. Also, if anyone would like to be interviewed, I'll be sticking around Wednesday after the conference and would love to talk to anyone that would like to be part of a future podcast. Just look for the bald guy in the Sinatra hat :).




Afternote: So one of the funniest outcomes of this conference is that "we've become a hashtag!". Simon Stewart posted this morning that he hoped "the #tableoftrouble" would keep providing color commentary, and we of course said we would. What's funny is that we have been referred to as #tableoftrouble ever since. I've always aspired to do something worthy of being hash-tagged, so thank you all, we're enjoying the experience, too.

Monday, April 4, 2011

Selenium Conference: Day 1

 
 
 
 
 
from seleniumconf import *
tweet("#SeConf is awesome! http://tryselenium.org")


Greeting and welcome from the First* Selenium Conference (the asterisk is because this was the first "planned" one, but some enterprising Selenium nerds in Kiev apparently held one before this one was scheduled to go live).


The conference is totally sold out, there's not an empty seat anywhere, and that's even for Monday which is the "workshop day". Note, at most conferences, attendees pay extra for the workshops, and because of that, there's usually a much lower attendance. Selenium Conference offered their workshops as part of the conference payment, so everyone who wanted to attend the conferences could do so.


What happens when you offer free workshops to all conference attendees? All conference attendees attend the workshops, which is an otherwise unheard of proposition. Don't get me wrong, I think it's great to see so many people here, but so many users definitely overloads the network! Downloading the files needed has been a challenge for several of the workshops, but if you are quick, you can get them before the rush :). In addition, I had wonderful company by having Marlena Compton, Dawn Cannan and Patrick Wilson-Welsh sitting with me; during the day we received the nick name of the "table of trouble"or as we referred to ourselves, the MST 3000 of SE Conf ;).

The first workshop covered creating and modifying Selenium IDE plug-ins. There were several examples offered, and the examples ranged from very basic to significantly advanced enough to be interesting to a few coders in the audience. Another cool thing is that the sample version of Selenium IDE used works with Firefox 4 (whereas the official released version does not, so as a bonus, I now have a working version of selenium IDE for Firefox 4. Nice :)!

The second workshop  dealt with FlexPilot. From the GitHub description, " FlexPilot is a library for doing easy testing automation of Flash and Flex applications. Includes a locator/lookup mechanism, eventing, and an AS3 test-runner". Again, this is a application that works with the Selenum IDE as well, so that users who want to get familiar with the tools can do so easily by using the Selenium IDE.

The third workshop talk covered creation and coding of page object models. Adam Goucher and Patrick Wilson-Welsh covered the strange and unusual world where transactions are getting ever more strange and requiring more details (such as jQuery and CSS as a way to avoid having to use Xpath) which goes way beyond the expected HTTP transactions of yore. This was an engaging and entertaining talk, but as has been observed by a number of people, the potted plant behind them fell over, prompting them to quote that "their talk was so boring that the potted plants went to sleep"... it's not true, it was actually an engaging conversation and helped by the fact that two people were covering it.  The tweet stream for the conference has been active and varied, and has been well covered under the #SeConf hash tag. If you go there, you will see several links to the source code used in the workshops.


After lunch, we focused a bit of attention on watir-webdriver with  Jari Bakken (he's also the maintainer of the Ruby plug-in for Selenium). It's interesting to compare the syntax and the implementations for selenium-webdriver and watir-webdriver. As the implementations are comparing Java to Ruby, the watir-webdriver code displayed is more terse and more compact. the examples displayed looked interesting, but were hindered by the fact that the network was working overtime to support the number of conections. Jari waled through the examples for us to watch but the "table of trouble" had some additional ideas (I'll let Marlena Compton say what we all said ;) ):

Marlena Compton
At the table of trouble we've decided to use the Selenium Conference website as example for the workshop.
We had a chance to focus on the webdriver API with Eran Messeri, and the details provided gave us a good feel how to make calls to the Selenium API. OF course, there are some challenges, too, and needless to say, the Table of Trouble figured out where and what at times:

Dawn Cannan
Table of Trouble is harsh! RT @: If you provide 20 ways to shave a yak, expect badly-shaved yaks.
Be that as it may, it was helpful to see some concrete examples of how to use the API in the wild (note: update this section with the link of the actual slides and source code when it is posted).

Simon Stewart kept the ball rolling with more WebDriver focus and updating to WebDriver. The internet issues had become so much of an issue, both internal and external, that the workshops became more along the line of peer demos, with the explanation of the tests, the tech behind them and a Q&A to go along with it. While there is of course a lot of attention focused on WebDriver, since it is the next generation of Selenium, there also seems to be a feeling of unease as to what WebDriver is missing, and that, while the technology is impressive, it's missing enough to not be seen yet as a complete replacement for Selenium. From my perspective, I don't have enough invested in WebDriver yet to really say one way or another.


The final talk of the day was given by David Burns, and focused on client-side profiling testing. This was also related to Selenium 2,  and this demo was approached from the idea of piecing a number of things together. Client-side profiling means basically looking at everything a user would download in the process of their user experience. Lots of steps come together to get a clear picture of how much stuff is being downloaded for each transaction or page view. PageSpeed and Yslow are some of the (manual) tools for looking at performance data at client side that can help to build a profile and effetively build up scripts to help gather data an report data.


Lots of great information today, and lots of interesting new ideas and avenues to explore. Glad I was able to attend today... even with the technical hiccups (cool thing is, 'm going to be able to say years in the future "yep ,I was there at the very beginning of Selenium Conference, when the organizers expected 50 for workshop day and 300+ came!)

As a final note... You all may be wondering what that little snippet of code at the top of my screen is. It's a challenge that was made to encourage people to post to twitter using a Selenium or WebDriver script. Many people made similar posts, but someone went a little overboard (or perhaps that was the whole point...):



is awesome x 59! @-WebDriver is even more awesome!
(note, the times 59 is a reference to how many individual tweets the script made. Hey I appreciate enthusiasm as much as anyone, but  59 times?!)

Now it's off to the Cigar Bar in Jackson Square for the official "kickoff" of the conference. I won't have Internet access there, so I'll have to tell you more tomorrow about hoe that all goes, but I'm looking forward to seeing what the "Table of Trouble" gets into after hours (LOL!). All in all a good start to what promises to be an enlightening few days.

WTA09 - Bugs in Your Pocket? A Weekend Testing Follow-Up

On Saturday, I had the opportunity to participate in and help facilitate another interesting and fulfilling session of Weekend Testers Americas.

This was our 9th gathering since forming in November of 2010, and the mix of participants was varied and multi-national. It was, however, notable in the absence of a few long term participants by virtue of the fact that it was the same day as the cricket World Cup, and by virtue of the fact that India was one of the finalist teams, we had a much lower percentage of Indian participants, not just from India but from elsewhere around the globe. I mention this because I find it amusing that a Cricket match could have such an impact on an Americas testing event, but it goes to show just how far ranging our participants are and from how many countries they participate.

So this weekend, we focused on an idea from a new cast related to how the newer credit card and passport documents that use RFID chips can open up a whole new range of issues related to the ability to steal information without individuals having any idea that it happened. If we have an RFID credit card, the idea is that we just touch it to a sensor and we can generate a transaction. While I do not have an credit cards with this technology (currently), I do carry a train pass and a parking pass that use this technology, so I'm just as vulnerable. The key point of the newscast was to show that, with some specific pieces of equipment (a touch-point card reader, a cable and a net-book computer), an enterprising thief could walk up to someone, pass the reader hidden in a carrying case next to someone's pocket, and effectively read the card, capturing information that could be used fraudulently.

The group that gathered had varying levels of experience with testing, and with a few exceptions, almost nobody in the group had any real experience with RFID technology. What made this interesting was that it showed that, even if the technology was foreign or unusual, we still as a group could come up with a lot of testing ideas and methods. Additionally, ideas from one tester would spawn thoughts and ideas from another tester, which made for a dynamic discussion.

We posed a number of questions to the group:

  • Who might our testing be considered valuable to?
  • What risks are we looking at with this device?
  • Do the Potential risks outweigh the Actual risks?
  • Where could we find out more details about this?
  • What might the bug(s) be in this instance?
  •  How could we develop tests around this technology, even though we may know little about it?

The group as a whole gamely stepped up to the plate and kept the discussion going, with lots of details and lots of interesting specific approaches we could apply. We focused a good amount of attention to the fact that the potential risks, while significant, had to be measured against the actual risk of such thefts occurring.


Each of these sessions gives us an opportunity to "think differently" or to explore other methods of thinking. In some ways, I consider that to be just as important, if not more important, than developing testing specific skills. Our ability to approach unique problems and find interesting solutions for them, coupled with an ability to go "off script" and examine products and projects that we may have limited familiarity with can be an excellent advantage to a tester. At the same time, it's important to de-focus and realize that an expert's advice is invaluable. Much of the discussion, while interesting, was entirely speculative. If an RFID engineer with deep expertise in the field were to participate, it's likely that many of our ideas, theories and approaches would be found to either be wanting or completely irrelevant.


Each Weekend Testing event is a chance to try something different, and see where those sessions lead us. Very often, our best laid plans can get scuttled by the approach the group(s) choose to attack, and there has to be a certain amount of willingness to deal with that ambiguity. Very often, it seems, charters, missions and strategy can be envisioned as one way, only to turn out a totally different way at the end of the session. In some ways that can be unnerving, but it's also fun in that thinking gets challenged, ideas that were set one way can be considered with new information, and often ideas we were sure of become less sure and obvious with new information. Overall, though, these sessions stretch my perceptions and ideas, and I'll encourage that any time!

Saturday, April 2, 2011

Time Management and the Value of Context

As I was listening to the most recent "Back to Work" podcast this week (that's the one that Dan Benjamin and Merlin Mann do over at 5by5), they discussed the various things that help you find inspiration, and that inspiration, while nice, doesn't really create anything all by itself. it's spending time and attention on things that actually matter that gets you to the point where you are creating great stuff.


During the discussion, they ventured of into understanding what you actually spend your time doing. If you could get a handle on all of the things you do, and were honest with your interaction with them, you would discover a lot about what really matters to you. There's a phrase that gets bandied about a lot that says "you are what you think". I disagree, I think the more appropriate measure is "you are what you do", because your thinking is encapsulated in your actions. I may say or think that I want to be come a solid Ruby programmer (as an example), but when I sit down and see what I spend my days doing, it's clear that programming in Ruby is not high on the list.


What if you could actually see what you do during the day, to the minute and second, and get a granular breakdown of the things you really do the most, and categorize them? Well, there's nothing outside of the brain and a notepad that can do that for you when you are off the computer, but for the time you are actually sitting at the computer, there are ways to do this. the one that Merlin an Dan discussed is a program called RescueTime, and it is set up to monitor all of the things that you do on your computer and break down the activities into categories, with a rough scoring for the activity, ranging from highly productive, productive, neutral, distracting, and very distracting. I installed this program, and decided to run with is default parameters.


Wow, was my report interesting the first time I ran it (LOL!).


According to the system, I did a terrible job. I was very distracted 7 hours out of the day, and according to the system, I should be fired immediately... except that the system in its default state doesn't know me or the context of what I do. Here's the thing... I'm a tester for a company called SideReel. SideReel tracks and allows users to connect to Internet Television, Movies and WebTV content. Therefore, the vast majority of my work involves checking the SideReel site and peripheral components to make sure that we can get to the sites that store the content, and verify that the shows that appear are the actual shows we link to. If you didn't know that, you would look at my time management report and say "wow, this dude is a total slacker! All he does all day is watch TV on the Internet", but understanding the company, you realize "OK, this dude is doing his job and is very focused on it!"


This reminds me of the value of context, and as a fan of the context-driven school of software testing, this should come as no surprise. Were this tool to just leave me with the default listings, it would be of little benefit to me, because it is misreading my reality. It may make sense in other areas, but it doesn't make sense in mine. For a bank, someone watching Internet television is spending time on entertainment and is therefore wasting company time. For me, watching television on the Internet is a source of business intelligence, and therefore is the most productive thing I can be doing. Actually, let me rephrase that, my confirming the episode should be where it is and can actually play is business intelligence. Going much beyond that, and actually watching the whole show, is not business intelligence. It then becomes entertainment and would definitely be a hindrance to my job... unless the whole point is to verify that the tools we have built can play an entire show... context is everything.


The cool thing about RescueTime is that each of the categories allows the user to determine what activities are valuable and which ones aren't. In this case, it helps to be very honest with yourself and realistically apply categories and ratings that make sense. Also, it's important to know that what's important and productive actually varies from day to day. Email to me is a distraction, but if I don't actually answer it or reply to it, it can build up to a point where it becomes very important, and then slugging through it becomes a very productive activity (compared to the consequences of ignoring it entirely). Facebook is generally considered a"very distracting" activity, unless I'm actually testing interactions with Facebook that day. At that point, Facebook becomes a power tool and the most important focus of my day.


My point is, tools like this can be really cool and they can show you what you really think is important, but keep two things in mind. First, it's a snapshot of what you actually do, which can be very telling. Second, all things have a context, and it's up to you to be totally honest about that context and how they are actually applied. If you are willing to be honest with yourself, you can learn a lot about what really matters to you, and then adjust accordingly so that those things that "should" matter to you can get more floor time.

Friday, April 1, 2011

TWiST #39 - with Kristin Dukic & Peter Walen





So this week's show was interesting to say the least. The content was interesting, but more to the point, I havd to figure out how to chunk a talk that was an hour long down to 25 minutes. Matt went to the Grand Rapids Testers Users group and brought his audio recorder. The presentation was ffrom Kristin Dukic and Peter Walen, then of ISD Corporation (which has recently been purchased by ACI Worldwide.

If you would like to know more about the full talk they gave at STPCon Spring in Nashville, check out - "No Box Mixes: Building a QA Team From Scratch."  If you were there, you may already have heard it. If not, you can now her the cliff notes version that is Episode #39.


Standard disclaimer:


Each TWiST podcast is free for 30 days, but you have to be a basic member to access it. After 30 days, you have to have a Pro Membership to access it, so either head on over quickly (depending on when you see this) or consider upgrading to a Pro membership so that you can get to the podcasts and the entire library whenever you want to :). In addition, Pro membership allows you to access and download to the entire archive of Software Test and Quality Assurance Magazine, and its issues under its former name, Software Test and Performance.



TWiST-Plus is all extra material, and as such is not hosted behind STP’s site model. There is no limitation to accessing TWiST-Plus material, just click the link to download and listen.



Again, my thanks to STP for hosting the podcasts and storing the archive. We hope you enjoy listening to them as much as we enjoy making them :).