Anand
Anand

Reputation: 31

how to perform Nunit after asp.net web application is created

I have created one web application which includes login page and several other pages which include input controls.How i can perform Nunit testing on this pages.

It will be very helpful if you provide guideline for just only login page. Login page is created using Login.aspx and Login.aspx.cs file.

It is not created using MVC.

Upvotes: 1

Views: 845

Answers (1)

SOReader
SOReader

Reputation: 6007

You are confusing unit testing with automated UI testing. NUnit, as its name states is for creating automated tests for separated pieces of code. With this tests you check if concrete piece of code does what it should do. To check this you substitute all its dependencies (all classes/interfaces it interacts with) with stubs/mocks (more) which place the role of placeholders for real functionality. Thanks to this you can check if tested class behaves the way you expect it to behave because you have full control over its dependencies, so the only "unknown behavior" comes from object under test.

If you, however would like to automatize tests of user interface you can use special environments dedicated for this task. You can easily find dozens of frameworks for this, one of which is FitNess

Upvotes: 2

Related Questions