views:

88

answers:

3

hello friends..

i need to write a use cases to test the asp.net mvc applicatoin.. please can anyone help me out.. thanks

+1  A: 

use cases and tests are slightly different things

A use case defines what an application should do / its requirements

So a use cases might be

"User can sign up to a website" "User wants to recover/reset password"

etc..

in asp.net mvc you should have controllers that satisfy your use case requirements and can write unit tests to validate that they do the right thing.

or you can use something like Watir or Selenium to validate a running website

or perhaps even something like Fit over the top of that to have use case traceability to tests.

Keith Nicholas
hmm thanks for your time..here my requirement is to create use cases and created some prototypes for the application..i am think from you i got pretty much answer.. i will post if i need more about this.. thanks for your answer
kumar
A: 

Just further to what @Keith has said, Use Cases should be platform independant and should be the same for Web, Windows Apps, Cars etc etc.

Writing a use case should be a simple set of tasks that can be extrapolated into a feature of the application you are writing.

If you are writing test cases then that's different. We write our tests here to test individual functionaility and then we write further tests to test integration which ensures two things.

Firstly that the actual methods perform as expected and any changes to code in or away from these methods does not break them or if they do break then they are modified accordningly.

Secondly that the integration of our various layers work as advertised and any changes made to core methods does not break the core architecture.

griegs
+1  A: 

Writing Effective Use Cases should demistify use cases for you. Also, check out Asp.Net MVC Test Driven Development and The Art of Unit Testing

Athens