Search the web
Sign In
New User? Sign Up
TestFirstUserInterfaces
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Test-driving ASP.NET   Message List  
Reply | Forward Message #1000 of 1052 |
Re: [TFUI] Test-driving ASP.NET

Hi Rob,
> On the agile-testing list, I've been gathering info WRT acceptance
> tests for this and comparing WatiR, WatiN, Selenium, etc...
>
> So now I've noticed that our WatiN tests are very slow. (We have some
> NUnitAsp tests too which are worse.) We have 100s+ tests in FitNesse
> that take about 80s to run. And <10 in WatiN that take about 80s to
> run.
Yes, UI tests are very slow, whether it's web-based or GUI. That's one
of the big problems with them. Sometimes you're forced to decide on
timeout periods, and so have to balance speed against spurious fails.
The other problem is that the UI tests are verbose and tend to be
fragile under changes to the UI (I'm working on solving this problem).
>
> So I'm theorizing that Fit tests are really going to be the stronger
> set. It'll be 1 layer down, but as long as we do some sort of MVC/MVP
> or simple command pattern, we only won't be testing the client-side
> validation. I'm debating whether or not those tests are even worth
> writing? Especially if for example, we submit some form and the server
> side validates fields as well.
I recommend using Fit for testing below the UI layer. Then have some
UI-based tests that verify end-to-end behavior, so that pages are
'wired" together correctly, etc.

If the UI tests are too slow, you can run a two-stage build process,
with fast feedback from Fit storytests. I've also had success with
running lots of Selenium tests in parallel.
>
> Furthermore, for reuse of the validation logic, I'm leaning towards
> less JavaScript in the page for AJAX calls that get their results from
> the server.
That's a tricky one, as Fit is only good for validating logic on the
server. I'd use Javascript unit tests for testing the AJAX and
validation logic in Javascript. And, again, have some UI tests to check
end-to-end.

Cheers, Rick

PS, if GWT was used, the Java code intended for translation to
Javascript could be tested with Fit
>
> Thoughts?
> Comments?
>
> .rob.





Wed Nov 7, 2007 8:52 pm

rickmugridge
Offline Offline
Send Email Send Email

Forward
Message #1000 of 1052 |
Expand Messages Author Sort by Date

On the agile-testing list, I've been gathering info WRT acceptance tests for this and comparing WatiR, WatiN, Selenium, etc... So now I've noticed that our...
Rob Park
rpark68
Offline Send Email
Nov 7, 2007
7:38 pm

Hi Rob, ... Yes, UI tests are very slow, whether it's web-based or GUI. That's one of the big problems with them. Sometimes you're forced to decide on timeout...
Rick Mugridge
rickmugridge
Offline Send Email
Nov 7, 2007
8:53 pm

Thanks! .rob. ... [Non-text portions of this message have been removed]...
Rob Park
rpark68
Offline Send Email
Nov 7, 2007
9:55 pm

Hi Rick, Have you written Fit tests for GWT? If so, did your tests require one of the fake hosted mode browsers to run to handle widgets or deferred binding? ...
Daniel Wellman
etl_dan
Offline Send Email
Nov 8, 2007
4:20 am

Hi Dan, No, I haven't, but I've been keen to try out GWT for some time. I really like the way they manage Javascript. I've been waiting for the widget set to...
Rick Mugridge
rickmugridge
Offline Send Email
Nov 8, 2007
8:50 am

GWT code looks like regular Java code except in a few conditions: it can inline native JavaScript within your Java source, or it can use a compile-time...
Daniel Wellman
etl_dan
Offline Send Email
Nov 8, 2007
1:38 pm

Hi, Please try WebAii from www.artoftest.com I have used it and it is really good.It can be run inside the NUnit framework,supports AJAX testing. And it can be...
ketan kalia
ketan_kalia
Offline Send Email
Nov 8, 2007
7:30 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help