Difference between unit, assembly and regression testing, DOT NET Programming

Assignment Help:

What's the difference b/w Unit testing, Assembly testing and Regression testing?

The Unit testing is also known as the Component testing. The Unit testing ensures that the reliable program unit meets their requirements. The Unit testing is generally conducted by the programmer under the supervision of the project lead or the team Lead. The Main objective of this testing is to test every unit in isolation and individually. This is completed by knowing what the inputs to the unit are and what the expected outputs for the same. The Unit testing is a white box activity. The Unit test generally comes in the implementation phase of the project.

For illustrate in the figure below we are trying to do unit testing on the customer class. Therefore we create the object of Customer class assign "CustomerCode" and "Age" property and check for the response. For illustrate in this situation we tried to pass a non-numeric value to the "Age" property and the class threw an error by saying "Age should be numeric". So here the main basic unit testing entity is your class.

2228_unit testing.png

Figure: - Unit testing for sample Customer class

But the unit testing is not limited to a object, component or function. Therefore definition of a unit testing will depend on the approach. Some examples of unit testing are shown below:-

1) The Check points in UI such as tab orders, look and feel, and error messages etc.

2) The Class, object, component level testing as said earlier.

3) In case of a functional programming it can be a simple method or function.

4) The Logic testing for algorithms. Some projects can have some critical algorithm for an instance some kind of custom sorting, & security implementation etc. So that logic can be tested independently.

But the normal thumb rule of what is the Unit in Unit testing is that the module self contained and by itself.

The Assembly testing goes one step ahead than the unit testing. It describes that the modules interact in a stable, correct and proper manner as defined by the functional specifications provided by the client. The Assembly testing is Black box testing style and also termed as Integration testing. For illustrate in the above unit test of the "Customer" class, testing was completed in isolation. But in actually the "Customer" class is not going to be stand alone rather than it will be used more in conjunction with the "Product" class and also will have the UI to do the same. So in brief the "Customer" class will work with two more entity one is the "UI" & the other is the "Product" class. So generally assembly testing is completed through the UI but not necessarily.

1512_integration testing.png

Figure: - Integration Testing

The figure above defines a simple scenario for the integration testing. The same "Customer" class is now tested with the "UI" and "Product" to see if the interaction between them matches according to the functional specifications.

The Regression testing ensures that the application function properly even if there are changes or enhancements to the system. For illustrate  you change the "Product" class still you will run all the test cases for "Product" , "Customer" &  "UI" just to make sure that any changes in the "Product" class does not affect interaction with other entities. Therefore you will see that when testers do a regression testing they run all the scripts to ensure that nothing has been affected.


Related Discussions:- Difference between unit, assembly and regression testing

Costing, how much u guys cost for 5 pages website in .net?

how much u guys cost for 5 pages website in .net?

Name the proxy file to use a web service., Mention the name of the director...

Mention the name of the directory where it is essential to locate the proxy file to use a Web service. The proxy file must be kept in the /bin directory. This directory is situ

Mailer - mail sender, mailer - mail sender Project Description: I wan...

mailer - mail sender Project Description: I want a mailer: -run on Windows Server 2008 -use how many theard i need -more details speak on private Skills required

.net aplication with vbulletin paid subscribtion, .NET aplication with vBul...

.NET aplication with vBulletin paid subscribtion Project Description: I have an application in .net it's a simple client i have sheltered with net seal license system for aut

Advantages of sql 2000 over sql 7.0, What are advantages of SQL 2000 over S...

What are advantages of SQL 2000 over SQl 7.0? 1)User-Defined Functions: The User-Defined Functions (UDFs) -- one or moreTransact-SQL statements may be used to encapsulate the

Perform transactions in .net, How can we perform transactions in .NET? ...

How can we perform transactions in .NET? The common sequence of steps that would be performed for developing a transactional application is as follows: 1)In the first step o

Connection pooling, Explain the fundamental of connection pooling. When...

Explain the fundamental of connection pooling. Whenever a connection is opened first time a connection pool is created and is based on the exact match of the connection string

MySQL, deploying a mysql vb offline desktop application in new system that ...

deploying a mysql vb offline desktop application in new system that doesnot have any server or database created

Developer of a asp.net mvc4 entityframework, Small website using ASP.NET MV...

Small website using ASP.NET MVC 4 EntityFramework 5 Project Description: We are seeking a developer to a ASP.NET MVC4 EntityFramework website using the subsequent tools: Visu

Microsoft server and exchange, Project Description: I need to get lync s...

Project Description: I need to get lync server 2013 fixed the issues it has hit: 1) Can't connect to it outside network, I think small firewall problem with a little issue in

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd