Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin


 One Stop Testing ForumTypes Of Software Testing @ OneStopTestingUnit Testing @ OneStopTesting

Message Icon Topic: What Does A Unit Test

Post Reply Post New Topic
Author Message
priyanka
Newbie
Newbie


Joined: 03Apr2007
Online Status: Offline
Posts: 15
Quote priyanka Replybullet Topic: What Does A Unit Test
    Posted: 03Apr2007 at 12:34am

This is perhaps the most important question, and the question most difficult to answer.  Simply put, the unit test verifies that the requirements are being met.  Easy to say, but it's really hard to identify what the requirements are and which requirements are worthy of testing.

Customer Requirements

Customer requirements typically specify some combination of function, performance, data, and workflow.  A general template for this can be illustrated as:

The customer typically thinks in terms of the user interface, clicking on a button that does something, and having the user interface change as a result.  The customer also specifies the data, from the presentation level perspective.

The program implements this workflow by decomposing the workflow into a set of processes (typically determined by the customer as well, because the customer wants the processes in the workflow to remain familiar).  Each process is then decomposed into a set of functions, again, often functions familiar to the customer.  Automated workflows (in which the entire workflow is a black box to the customer) are less coupled to the customer's concept.

Unit testing of the customer requirements therefore consists several things, each at a different quantization.  From bottom up:

  • Testing each function

  • Testing each process

  • Testing the workflow

It should be understood that unit testing on the function level is not sufficient.  The process level integrates the functions, just as the workflow level integrates the processes.  Just because the functions are working doesn't mean that the programmer put together the processes correctly, and the same for a workflow built out of the processes.  Keep in mind that the term "function" relates to the customer's concept and does not necessarily map one for one to class methods.




Post Resume: Click here to Upload your Resume & Apply for Jobs

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.094 seconds.
Vyom is an ISO 9001:2000 Certified Organization

© Vyom Technosoft Pvt. Ltd. All Rights Reserved.

Privacy Policy | Terms and Conditions
Job Interview Questions | Placement Papers | Free SMS | Freshers Jobs | MBA Forum | Learn SAP | Web Hosting