Archive for March, 2006

Toggle SWEA controls on and off on the fly


When testing dynamic pages using SWEA the IsOptional property must be used. If the property is set to true it allows the Scene to be validated without that control being part of it.

The other day I automated a page that had 3 dynamic levels to it. In other words, when control 1 was present, control 2 and 3 were not; when 2 was present, 1 and 3 were not; when 3 was present, 1 and 2 were not. In order to successfully automate the page I had to toggle the IsOptional property on the fly. In the past I’ve used IsOptional as it was defined during my recording and present in my SWEA htp file, but I never had to modify the property in the middle of a test so that the Scene could successfully load. This is how I did it:

//Input a friendly name and submit the form
((HtmlInputText)(myBrowser.Scene[“FriendlyName”])).Value = userID;
//Set the IsOptional property to false for the new control
//that appears on the postback and the previous controls
//that are no longer present to true
//Wait for the Scene to load
//For some reason if I don’t run the RunIdentifcation() method
//before I click the link a chained COM exception occurs.
// So here I run the method
//Now I can click the link
//Now the link is no longer part of the page so I set IsOptional
//to true before I do anything with the new controls

My new SAPPHIRE Radeon X850XT


After a year of himming and hawing I finally broke down and purchased myself a video card to go with my P4-3.4Ghz PC that I purchased around XMAS 2004. This is how cheap I am: Since I purchased my top of the line PC in 2004 I’ve been running a 16MB PCI video card on it. A brand new system with a piece of crap video card. Kind of defeats the purpose eh?Yeah…I’m cheap. I was holding out for something that would do video-in (for video editing) as well as have a top of the line chipset that could handle the latest game, all for under $200….Rrrrrrright.

I gave up on the video-in, since there are so many external solutions that you can purchase for under $100, and decided to go shopping for the best that money can buy with $200. Co-worker Mr. Alex Scoble pointed me to the massive selections out at and we filtered our way down to what I considered the best for my needs, the SAPPHIRE Radeon X850XT. The best thing about the 850XT is that I satisfied my cheap “habit” with the low, low price of $164.00. Check out these specifications:

Chipset Manufacturer: ATI
GPU Radeon: X850XT
Core clock: 520MHz
PixelPipelines: 16
Memory Clock:1080MHz
Memory Size: 256MB
Memory Interface: 256-bit
Memory Type: GDDR3

The specs are really impressive for less than $200! We couldn’t find any NVidia cards that could compete in the price range that had 256MB memory, 16 pipelines, and have an interface of 256-bit. Sure the clock speed is not the fastest, but for my gaming needs I choose shading over speed which resulted in this card.

I received the card today and proceeded to install it as soon as I got home. Installation was quick and painless. In little to no time I had my long awaited dual monitors set up and was playing Call of Duty 2. With the game defaults I didn’t see one pause on the first level. For the 2nd level I turned the dial from default to maximum EVERYTHING at 1024×768 which only caused occasional, very tiny pauses.

I’m happy. The SAPPHIRE Radeon X850XT from has so far proven to be a good decision.

Super Mario Brothers race in the Olympics?


I somehow find this Super Mario Brothers race more fun and exciting than the 2006 Winter Olympics. What’s wrong with me? I think I find it more interesting because I can relate to it. Think about it, the typical IT guy competes to survive using mouse clicks, response times and wit. I just can’t get into figure skating. For the 2012 IT Olympics I’d like to see the following events:

  • Double click: “athletes” compete to double click the fastest (left, middle, and right click). Athletes are judged on speed and technique.

  • Inbox filing: “athletes” compete to file the contents of an inbox into junk, delete, postpone, and act now. Judges score on filing decisions and the possible impact of those decisions on the virtual business.

  • Windows Installation: “athletes” compete to install Window Vista the fastest (no install scripts allowed). Athletes are judged on install time and ability to multitask during long waits.

What IT events would you like to see in 2012?

Oh, I almost forgot… When I was a kid my cousin was so good at Super Mario Brothers that he could complete the first level with his eyes shut. It was pretty cool to watch. Now that’s what I call skill.

Removing services from Server 2000 and 2003


Recently a corrupt SilkPerformer uninstall kept me from re-installing due to the Segue Launcher Service still being present. I’ve never had to uninstall a Windows Service before, but there is a first time for everything. Perusing through the options that the MMC provided me, I saw no clear-cut way to uninstall the problematic service. I had to resort to Googling for it which yielded the following article from WinGuides. Their suggested fix worked well for me, on Server 2003; I was able to successfully uninstall the service. The magic is this:

  1. Stop the service
  2. Open the registry and navigate to:[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services]
  3. Delete the appropriate subkey

Functional Testing Tools Roundup and OSTA


Scott Hanselman recently posted a great Podcast titled “Functional Testing Tools Roundup” which focuses on practical tools for functional Web testing. In the Podcast he talks about the technical aspects, benefits, and downfalls of the following tools:

If you are looking for a tool to test Web applications (UI not SOA) this Podcast is for you.

Take a second and look at the list above. Notice that the list is pretty much composed of open source, free, and/or ultra cheap tools. The demand for cheap and smart Web application UI testing tools is high and organizations are starting to push away from the big dogs like Segue and Mercury (i.e. Corillian pretty much uses Ruby/Watir and SWEA/C# for automating UI testing now). This is an awesome, awesome movement if you ask me. There are a lot of different types of solutions out there now and most are cleaner, smaller, less complex and targeted toward a specific crowd. If you spend the time reviewing the different tools you are most likely going to come up with a solution that will fit your need and will save you a lot of money in the long run with things such as tool cost, learning curves and training (take SWEA and me for example).

In the spirit of beatin’ down the big dog, a great paper was recently submitted by Babu M. Narayanan to StickyMinds that outlines the benefits of Open-Source Test Automation (OSTA) in the industry. This is must read if you are skeptical about going with an open-source tool.

Man, I love this stuff! It’s exciting to see so many people and great apps out there making testing easier and faster. 

Take Google Maps to the next level


Google Earth and Google Maps have given us a whole new way to express ourselves using their satellite imagery. People are going crazy showing us their art, graffiti, and advertising from the bird’s eye view. I wonder how long it will take before somebody figures out the photographic path and schedule of the satellites. Just think how much graffiti some young, punk, geek could do if he knew when and where the next picture was being taken. Want to make a bet on when the first wedding proposal happens? How can she say “no” to such geekiness?

See Target’s new form of advertising here. See modern day tagging with profanity here. Recently I got in on the craze and put a little advertisement for on the roof of my house (see blog post picture).

Google has an awesome technology here, but let’s kick it up one more notch. Here’s my challenge to you Google:

  • Allow registration of land coordinates to the land owner. Require meta-data input such as address, URL, rent or own. Lease city and utility meta-data to corporations: cable, phone, public sewer, FIOS, etc…
  • Allow people to click on registered coordinates. Clicking directs the user to URL specified by land owner.
  • Allow the meta-data to be searched and graphed. Imagine the power for house buying, rental search, track the creeping FIOS installation across town…

View textbox maxlength with one click


I love playing around with the DOM and DHTML. I’m old school like that… Don’t make fun of me, you recently started poking around with AJAX which makes you no better than me! 🙂

I find it REALLY cool to be able to manipulate Web pages from the browser URL bar using JavaScript and the DOM. In the past I posted about displaying the site’s cookies by simply clicking a Internet Explorer Favorites link that contained JavaScript to display the cookies. Now days, we have cool tools such as the IE Developer Tool Bar, FireFox Web Developer extension, and Site Inspector which all report the same data to you via the same method (DOM and DHTML).

Here at Corillian, we have a test case for every form textbox to check that it has a defined maxlength.. We test for this to help with usability and most importantly to provide the first line of defense in form input. Sometimes something as simple as checking for textbox maxlength is not worth opening a tool and digging through it’s data, but on the other hand digging through the HTML can suck too. How often do you find yourself not wanting to do either, but instead count the characters as you type them into the textbox to figure out what that maxlength is? Stop it, stop it, stop it! Stop wasting time! You can do this with JavaScript from the URL bar in the browser. For example, post the Javascript below into the URL bar of your browser and hit the enter key:

javascript:var x=document.getElementsByTagName(‘input’);myVals=”;for (var i=0;i<x.length;i++){z=x[i].getAttribute(‘type’);if(z==’text’ || z==’password’)myVals=myVals+’ID attribute: ‘+x.item(i).id+’\n’+’Name attribute: ‘+x.item(i).name+’\n’+’Maxlength: ‘+x[i].getAttribute(‘maxlength’)+(‘\n\n’)};alert(myVals)

Bam! Nice eh? This script dumps the maxlength for each HTML input tag that has a type attribute equal to text or password to a JavaScript alert. Since some sites use the attribute of name and some use id I dump both to help you figure out what textbox the maxlength applies to.

Add the script above to your Favorites by right clicking this link and selecting “Add to Favorites” in IE or “Bookmark this link” in FireFox. If you add it to your Links toolbar (IE) then it’s only a click away on each page where you need to see the maxlength of textboxes. Look at you now, you one click tester! Happy testing.

HTTPWatch vs. IEWatch


Perusing through the latest MSDN Magazine today, I saw an article about another HTTP/HTTPS analysis tool called IEWatch. Tonight I’ve installed the tool and compared the features of IEWatch against my old favorite HTTPWatch (which I previously posted about here). With a brief run through of all the features I found a few cool points and features that HTTPWatch doesn’t have:

  • Price. IEWatch is $89 (HTTPWatch is $249)
  • HTML Analysis

    • Grouping of all the links, images, scripts, and forms on the page. Clicking of the individual items gives details in the Explorer bar as well as highlights the object in the actual Web page.
    • Show HTML object in code. Each object can be right clicked on and the actual HTML code for that HTML object will be shown.

  • HTML spotlight: Click on HTML objects in the actual page to view the code for that object.

Although these are pretty cool features I wouldn’t switch from HTTPWatch. The reason being is that IEWatch is lacking key QA testing features that HTTPWatch has. These are important features that help with my Web application testing. The biggest items that stick out are the easy viewing of:

  • Cookies
  • Cache
  • Query string
  • Post data
  • Content stream

If all you care about is viewing the HTTP headers and getting a WSYWIG view of a page then IEWatch is for you. If you want to see more details of the HTTP/HTTPS traffic and find all the defects that I describe in my prior post, then in my humble opinion I feel that HTTPWatch is a better fit. Who am I kidding? I’m not humble. Just pay a little more and get more with HTTPWatch. HTTPWatch simply wins the throw-down.

Post navigation