Microsoft Lightweight Test Automation Framework- Fixing window.open errors
Published on Mar 22, 2009I have been playing with the Microsoft Lightweight Test Automation Framework, that’s a mouthful for the Microsoft’s Web testing framework.
I think that (in general) looks like a nice alternative to some of the other frameworks around (like Watir or Selenium). I will try to give a quick overview of what I have been using so far and what I like and don’t like.
For more information on the framework, take a look at the Forum.
What I like.
- Open Source (you can download the source from Codeplex).
- A first sample is included
- Since the library is written in c# you can write the test in your language of choice inside VS. This may encourage to write the UI test first. This can be even written by the same developer that is implementing the UI.
- Nice API, providing methods, properties and objects that represent an HTML page and help to navigate the DOM.
- No problem handling JavaScript’s alert and confirm dialogs.
- Look’s to been able to handle asynchronous Ajax calls (I haven’t tried it yet).
- Cross browser, cross platform.
What I think needs improvement.
- Documentation (*).
- Some internal objects should be public, like the BrowserInfo. (*)
- Setup, Teardown attributes (not very high on my list, but may be useful). (*)
- Provide a way to attach to a new window, or even Assert that a new window was open. (The JavaScript engine already contains a collection of newly opened windows, so this should be easy to implement).
- . The Roadmap document mention these issues as forthcoming or in consideration.
In following posts I will try to find solutions to some of these issues.