The talk’s titled “The Future of Web App Testing and How to Stop It”. The first part was a brief history of the Selenium project. In the second part, I talked about the canvas tag and canvas based apps.
The punchline is that canvas-tag based apps are untestable using traditional DOM-based introspection techniques. Developers need to be aware to make their canvas-based apps testable in their designs. And yes, canvas is the future of the web, and therefore the future of web testing.
If you happen to find yourself needing to create a GUID for your brand new C# program, a Google search for “Create GUID” is the first reasonable thing you might do. Here’s my summary after doing the same…
First off, in the “Truth in Advertising” department, the best link from the top 10 was “The Quick Guide to GUIDs” at betterexplained.com.
But the rest of the top search results seemed overly complicated. Guidgen.exe is a clunky little program, and I had to do more searching just to find where to download guidgen.exe. I’m using Visual C# Express, and “Create GUID” was not available from my Tools menu, as the MSDN link about guidgen.exe suggests it is. Since the really simple way was not obvious in the top search result (betterexplained.com was seventh), I’m hoping to change that in my own little way with this blog post.
The Simplest Way (as mentioned in the betterexplained.com article above):
A Simple Way with CPython (alluded to in the betterexplained.com article):
Install Python 2.5 if you don’t have it already. ()
Open a command prompt, and run the following:
c:>python
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from uuid import uuid4
>>> print uuid4()
927a36e2-4c9f-4235-a3f3-ebedbadf48c3
>>>
There’s no step 3!
Another Simple Way with IronPython:
IronPython let’s you easily play around with the .Net libraries. If you’re doing .Net development, IronPython is indispensable.
Prerequisite: You already have .Net installed. Consider this “Step Zero”. This is already taken care of if you’re developing with Visual C# Express. (Hey, by the way, Microsoft, thanks for making your compilers free, finally! :-)
Download and unzip the IronPython binaries. (. Latest is 1.1.1 as of 23 April, 2008.)
Open a command prompt, locate ipy.exe and run the following:
C:>applicationsIronPython-1.1.1>ipy.exe
IronPython 1.1.1 (1.1.1) on .NET 2.0.50727.1433
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import System
>>> print System.Guid.NewGuid()
e70e472a-365d-45fc-9bfa-6665e27dc5bd
>>>
I know I read about this on reddit within the last week or so… But I just can’t find it! My Google-fu is failing me! Grrrrr.
There was a general upload text area form where you copy in your code snippet. You then select the language from a drop down, and click submit. In the commentary on reddit about this service, the author talked about all the things he did to keep his machines safe from attack, including using virtual machines, code jails, and refreshing both the host and the VMs frequently.
I can remember a bunch of keywords from the comments, but apparently there is no comment search at reddit! (And a google search with “site:reddit.com” didn’t work either.)
If you remember seeing this, too, let me know!
I’ll be attending the Selenium Users Open Evening this Monday, February 25. The event will be at the Google campus in Mountain View, California. Most of the core Selenium development team will be in attendance, traveling from as far away as Tokyo and London. Here’s a blurb about it from the sign-up page :
With representatives from all the major Selenium projects on hand to present ideas, discuss the future of Selenium and answer audience questions, the Selenium Open Evening is an opportunity to get involved in the future of the project. With Selenium developers from as far apart as London, Tokyo and the US and Lightning Talks on related subjects, this is a great way to meet Selenium users and meet some of the other brightest minds in web testing and Agile development!
And here are the important event details:
Monday, February 25, 2008 6:30PM PST to 9:00PM PST
Google Campus,
1600 Amphitheatre Pky,
Mountain View, California
Upon arriving, please proceed to reception in building 41 and ask for directions to the Selenium Users Open Evening.
Oh, and did I mention free food? And I’ll be signing autographs, too! :-)
If you’ll be in the Silicon Valley on Monday and love or hate all things Selenium, please sign-up now!
posted in selenium by Jason Huggins | Comments Off