Saturday, October 8, 2011

Podcasting!

I'm joining the world of podcasting.  Some of the ideas that I've wanted to express here just wouldn't come across right in wrting.  Sarcasm is much easier to convey through the spoken word.

I'm starting out with some inexpensive equipment.  I can already tell that the microphone I'm using won't cut it for too long.

Check out what I'm up to at http://bitbattle.podbean.com/

Saturday, September 17, 2011

Windows 8

Some days keeping up with new technology can be dangerous.  Today, I'm happy to say that I'm playing with the latest technology and it's absolutely safe without tying up another machine.

Step 1:  Install Oracle's Virtual Box http://www.virtualbox.org/
Step 2: Download Windows 8 Developer Preview http://msdn.microsoft.com/en-us/windows/apps/br229516
Step 3: Install according to the directions http://www.sysprobs.com/guide-install-windows-8-virtualbox
Step 4: Enjoy the next Windows without risking your existing installation.

Sunday, April 10, 2011

Generating c# scripts for Selenium 2.0 from the 1.0.10 Selenium IDE

For more information about why Selenium is now my favorite testing tool listen to this episode of Hanselminutes.

Anyway, I spent days looking for a WebDriver formatter for C# for the Selenium IDE.

Why, you might ask, do I want such a thing? Well, I don't need to set up and run the full Selenium server and client. I can test my ASP.Net applications directly from NUnit, thanks to the new WebDriver interface that has been added to the Selenium 2.0 beta.

When I couldn't find a formatter for the IDE, I started to write my own. As I was doing my research I found a "magical" class call WebDriverBackedSelenium. Hmmm, could this be something useful?

It turns out that not only was it useful, it was what I'd been looking for.

10 minutes later and I was in business.

Here's what you need to do to migrate your generated scripts from Se 1.0 to Se 2.0.

1. Download the Selenium Client Drivers for c# (Selenium WebDriver) from http://SeleniumHQ.org/download/.
2. Extract the drivers to an appropriate directory.
3. Follow the directions at http://seleniumhq.org/docs/appendix_installing_dotnet_driver_client.html with one exception. Include ALL of the .dlls that are in the driver directory.
4. Download and install NUnit http://www.nunit.org/?p=download (I've tested to 2.5.9)
5. Add a reference to the NUnit dll to your project
6. From the Selenium IDE, record your test. Click on the source tab. Select Options-->Format-->C# (Remote Control)
7. Copy the generated code and paste it into your test project.
8. Modify the code as follows
a. Add
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium;
after
using Selenium;


b. replace
private ISelenium selenium;

with
private IWebDriver driver = new FirefoxDriver();
private Selenium.WebDriverBackedSelenium selenium = null;

c. In the SetupTest method, replace
selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://..../");

with
selenium = new WebDriverBackedSelenium(driver, "http://..../");

9. Compile and run through NUnit

Sunday, March 6, 2011

Voice-Over Microphone Choices

I'm starting to create short videos to help users with an application I'm working on. They will be screen-casts with some voice over. (I've found that some people listen better than they read).

In the quest to record audio that is more helpful than distracting, I've realized that my microphone needs to be upgraded. My choices are theAudio-Technica AT2020 USB Condenser USB Microphone, the Samson CO1U USB Condenser Microphone, and the Nady Ultra Dynamic USB Microphone to Computer - USB-1C.

I've checked out numerous sources for reviews and I've found out a few things. Most amateurs doing reviews don't know how to use a side address microphone. Most professionals will throw away the stands the mics come with (or never take it out of the box).

Samson offers the C01U in a kit that includes a good desktop stand, a spider mount, the microphone, and a hard-side carrying case.

--EDIT--
Now the Audio Technica ATR2500-USB Cardioid Dynamic USB Microphone is available and calling my name.  More to follow.