Posts

Showing posts with the label Unit Testing

What is Software Testing?

Software testing is a process of executing a program or application with the intent of finding the  software bugs . It can also be stated as the  process of  validating  and  verifying   that a software program or application or product: Meets the business and technical requirements that guided it’s design and development Works as expected Can be implemented with the same characteristic. Let’s break the definition of Software testing into the following parts: 1)   Process:   Testing is a process rather than a single activity. 2)    All Life Cycle Activities:  Testing is a process that’s take place throughout the  Software Development Life Cycle (SDLC) . The process of designing tests early in the life cycle can help to prevent defects from being introduced in the code. Sometimes it’s referred as  “verifying the test basis via the  test design ” . The  test basis  ...

What is the Software Development Life Cycle (SDLC)?

What are the Software Development Life Cycle (SDLC) phases? There are various software development approaches defined and designed which are used/employed during development process of software, these approaches are also referred as “Software Development Process Models” (e.g.  Waterfall model ,  Incremental model ,  V-model ,  Iterative model ,  RAD model ,  Agile model ,  Spiral model ,  Prototype model  etc.). Each process model follows a particular life cycle in order to ensure success in process of software development. Software life cycle models describe phases of the software cycle and the order in which those phases are executed. Each phase produces deliverables required by the next phase in the life cycle. Requirements are translated into design. Code is produced according to the design which is called development phase. After coding and development the testing verifies the deliverable of the implementation phase agai...

What is Dynamic Testing?

What is Dynamic testing technique? This testing technique needs computer for testing. It is done during Validation process. The software is tested by executing it on computer. Example of this  Dynamic Testing Technique :  Unit testing ,  integration testing ,  system testing .

What is Unit testing?

Image
A  unit test  is the smallest testable part of an application like functions, classes, procedures, interfaces. Unit testing is a method by which individual units of source code are tested to determine if they are fit for use. Unit tests are basically written and executed by software developers  to make sure that code meets its design and requirements and behaves as expected. The goal of unit testing is to segregate each part of the program and test that the individual parts are working correctly. This means that for any function or procedure when a set of inputs are given then it should return the proper values. It should handle the failures gracefully during the course of execution when any invalid input is given. A unit test provides a written contract that the piece of code must assure. Hence it has several benefits. Unit testing is basically done before integration as shown in the image below. Method Used for unit testing:  White Box Tes...