desmond

Stories submitted by desmond

Using HtmlUnit on .NET for Headless Browser Automation(blog.stevensanderson.com)

submitted by desmonddesmond(2009) 1 year, 10 months ago

A common way to test web applications is through browser automation. In this article, Steve Sanderson shows how you can convert Java's powerful HtmlUnit library into a .NET assembly and then use it with NUnit, XUnit, etc, as a faster and more powerful way to simulate a browser hitting your application. read more...

add a comment |category: |Views: 194

tags: another

Deleporter: Cross-Process Code Injection for ASP.NET(blog.stevensanderson.com)

submitted by desmonddesmond(2009) 1 year, 11 months ago

Deleporter is a little .NET library that teleports arbitrary delegates into an ASP.NET MVC/WebForms application in some other process (e.g., hosted in IIS) and runs them there. This is very useful for integration testing: it means you can do cross-process mocking, change the application configuration on the fly, or run custom teardown logic (such as flushing caches) at the end of each test. read more...

add a comment |category: |Views: 36

tags: another

Behavior Driven Development (BDD) with SpecFlow and ASP.NET MVC(blog.stevensanderson.com)

submitted by desmonddesmond(2009) 1 year, 11 months ago

How does BDD compare with TDD, and how can you use BDD-style tools such as Cucumber and SpecFlow with ASP.NET MVC? Steve Sanderson considers the options, and provides an example of combining ASP.NET MVC 2, SpecFlow, and WatiN. read more...

1 comment |category: |Views: 548

tags: another

Measuring the Performance of Asynchronous Controllers(blog.codeville.net)

submitted by desmonddesmond(2009) 2 years ago

It's easy enough to start using Asynchronous Controllers with ASP.NET MVC 2.0. But how do you know whether it's giving you any benefits? You might be surprised to learn that, in many default scenarios, you won't get any benefit unless you also make some crucial configuration changes. In this blog post you'll see a simple way to load test your asynchronous controllers, and find a rundown of important configuration options that will dramatically affect their behavior. read more...

add a comment |category: |Views: 210

tags: another

Selective Unit Testing – Costs and Benefits(blog.codeville.net)

submitted by desmonddesmond(2009) 2 years, 3 months ago

Test Driven Development is widely regarded as a hallmark technique of professional software development, but should you really do it all the time? Steve Sanderson argues that unit tests yield significant practical business value only for certain kinds of code. This blog post suggests what might be the underlying forces that determine whether unit tests will justify the long-term expense of creating and maintaining them. These ideas are then applied to structuring an ASP.NET MVC application. read more...

add a comment |category: |Views: 291

tags: another

xVal v1.0 is now released(blog.codeville.net)

submitted by desmonddesmond(2009) 2 years, 4 months ago

In case you’re not aware, xVal is a validation helper for ASP.NET MVC that lets you use your own choice of server-side validation framework (e.g., Microsoft’s DataAnnotations attributes, or Castle Validator, or NHibernate Validaion) and dynamically generates client-side validation code from your rules. Version 1.0 adds new features including dynamic client-side validation summaries and remote (ajax) validation rules. read more...

add a comment |category: |Views: 218

tags: another

Writing Great Unit Tests: Best and Worst Practises(blog.codeville.net)

submitted by desmonddesmond(2009) 2 years, 5 months ago

A suite of good unit tests is immensely valuable: it documents your design, and makes it easier to refactor and expand your code while retaining a clear overview of each component’s behaviour. However, a suite of *bad* unit tests is immensely painful: it doesn’t prove anything clearly, and can severely inhibit your ability to refactor or alter your code in any way. How can you be sure to write unit tests that contribute positively to your project and don't end up being a liability? read more...

add a comment |category: |Views: 648

tags: another

Integration Testing Your ASP.NET MVC Application(blog.codeville.net)

submitted by desmonddesmond(2009) 2 years, 8 months ago

Unit tests are great for proving the correctness of a single component. But how can you prove that you whole ASP.NET MVC application hangs together properly - including its view templates, configuration settings, and database schema? Integration tests cover what unit tests can't - Steven Sanderson shows one way to approach it with ASP.NET MVC. read more...

add a comment |category: |Views: 397

tags: another

First steps with Lightweight Test Automation Framework and ASP.NET MVC(blog.codeville.net)

submitted by desmonddesmond(2009) 2 years, 10 months ago

Microsoft's newly-Codeplexed Lightweight Test Automation Framework lets you test UI behaviors in ASP.NET applications. But what does it actually do? How does it work behind the scenes? How do you use it with ASP.NET MVC? This post explains the architecture and provides a downloadable demo project. read more...

add a comment |category: |Views: 260

tags: another

xVal 0.8 improves client side validation in ASP.NET MVC(blog.codeville.net)

submitted by desmonddesmond(2009) 2 years, 11 months ago

xVal is an open source validation framework bridge for ASP.NET MVC. Its new release, version 0.8, became available this morning and adds the following features: Support for NHibernate.Validator, Internationalization, Custom validation logic, Fluent syntax for defining ad-hoc validation rules, Comparison validators, and more. read more...

1 comment |category: |Views: 275

tags: another

Video: ASP.NET MVC - Show me the code!(blog.codeville.net)

submitted by desmonddesmond(2009) 3 years ago

If you’re new to ASP.NET MVC and are wondering what it’s all about, or if you have colleagues who don’t yet get it, then this video might help. It’s a recording of a talk by Steven Sanderson at the DDD7 conference in November 2008, covering the following: * Why ASP.NET MVC is worth caring about [first 10 minutes with Powerpoint]; * What ASP.NET MVC is like to use [remaining 42 minutes of pure coding] In the talk, Steve builds a sample file-hosting application that demonstrates ASP.NET MVC’s approach to tidy code structure, clean URLs, full control over HTML markup, and simple Ajax. read more...

add a comment |category: |Views: 29

tags: another

Editing a variable-length list of items in ASP.NET MVC(blog.codeville.net)

submitted by desmonddesmond(2009) 3 years, 1 month ago

It’s always awkward to create the right UI for variable-length lists, because you don’t know how many input controls to render. How would you do it with ASP.NET MVC? Steven Sanderson shows a fairly elegant technique, including a live demo. read more...

add a comment |category: |Views: 291

tags: another

jQuery Ajax uploader plugin (with progress bar!)(blog.codeville.net)

submitted by desmonddesmond(2009) 3 years, 2 months ago

Do you want your HTML file upload controls to show a progress bar during the upload? That's always been tricky. Here's a cool jQuery plugin that gets the job done, along with a demo app written in ASP.NET MVC. read more...

1 comment |category: |Views: 2193

tags: another

Combining independent widgets on ASP.NET MVC pages(blog.codeville.net)

submitted by desmonddesmond(2009) 3 years, 3 months ago

As great as ASP.NET MVC is, it doesn't have such an easy way to set up reusable controls or "widgets". Steven Sanderson explains a technique similar to MVC Contrib's "subcontrollers", but much simpler. read more...

add a comment |category: |Views: 903

tags: another

ASP.NET MVC Screencast: Model-based client-side validation(blog.codeville.net)

submitted by desmonddesmond(2009) 3 years, 9 months ago

A very sweet and simple way to get validation into an MVC app, just by specifying rules as attributes on model objects (e.g. [ValidateEmail]). Client-side validation happens automatically... read more...

add a comment |category: |Views: 101

tags: another

ASP.NET MVC: Making strongly-typed ViewPages more easily(blog.codeville.net)

submitted by desmonddesmond(2009) 3 years, 11 months ago

Check out FlexiViewPage - a quick and neat way to work with strongly-typed MVC ViewPages more easily. read more...

add a comment |category: |Views: 21

tags: another