Silverlight testing: Watin vs Selenium comparison
Asked Answered
A

5

11

I was wondering how well these web test frameworks (Watin and Selenium) work for Silverlight UI testing.

Have anyone tried it on a project? Are Watin or Selenium well suited for Silverlight?.

Administer answered 19/8, 2009 at 20:13 Comment(0)
A
4

I can't talk to Watin or Selenium with Silverlight, but I have played with White, which is a layer on top of the MS Automation Framework, and I have liked what I have seen thus far:

I should also add that we defer the majority of our UI behavior testing to unit tests using the MVVM pattern. It doesn't test EVERYTHING, but it gets us 95% of the way there.

Functional testing frameworks like Watin/Selenium/White should be used in conjunction to unit tests.

Abroach answered 19/8, 2009 at 20:16 Comment(3)
Sounds interesting, will start taking a look at this.Administer
I've used WatiN in a very basic way to kick off opening Silverlight pages and interacting with them through script, but -not- UIA.Procrustean
Please could you update your answer to provide a link to the 'MVVM framework'?Barmaid
A
2

What about the Silverlight Unit Test Framework included in the Silverlight Toolkit?

Here's Scott Gu's intro

Not sure if this suits your needs, but I always like to check out the solution from the source itself!

Allahabad answered 2/9, 2009 at 1:33 Comment(2)
This framework (yes, I designed and wrote it :-)) is meant more for unit testing and simple functional testing, rather than interactive UI testing.Procrustean
I guess I can take your word for it > DAllahabad
S
1

I've not had the need to use it myself, but I have noticed that there is a Silverlight Selenium project 'Silvernium', which might be of interest to you. http://code.google.com/p/silverlight-selenium/

Sooksoon answered 20/8, 2009 at 7:43 Comment(0)
C
1

I have used WebAii to hook into Silverlight. You can create NUnit/MSTest tests to drive them. I did find a number of bugs in it but they have released a number of versions since so assume they have been fixed.

Chappy answered 20/8, 2009 at 13:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.