Explain briefly unit testing.

1 Answer

Answer :

(a) Unit Testing is a level of the software testing process where individual
units/components of a software/system are tested.
(b) The purpose is to validate that each unit of the software performs as designed
(c) A unit is the smallest testable part of software.
(d) It usually has one or a few inputs and usually a single output.
(e) In procedural programming a unit may be an individual program, function, procedure,
etc.
(f) In object-oriented programming, the smallest unit is a method, which may belong to a
base/super class, abstract class or derived/child class.
Advantages
(a) Unit testing increases confidence in changing/maintaining code.
(b) If good unit tests are written and if they are run every time any code is changed, the
likelihood of any defects due to the change being promptly caught is very high.
(c) If unit testing is not in place, the most one can do is hope for the best and wait till the
test results at higher levels of testing are out.
(d) If codes are already made less interdependent to make unit testing possible, the
unintended impact of changes to any code is less.
Codes are more reusable. In order to make unit testing possible, codes need to be
modular. This means that codes are easier to reuse.
(f) The cost of fixing a defect detected during unit testing is lesser in comparison to that
of defects detected at higher levels.
(g) Compare the cost (time, effort, destruction, humiliation) of a defect detected during
acceptance testing or say when the software is live.
(h) Debugging is easy. When a test fails, only the latest changes need to be debugged.
With testing at higher levels, changes made over the span of several days/weeks/months
need to be debugged.

Related questions

Description : What is alpha-beta testing?

Last Answer : Alpha Testing: -The alpha test is conducted at the developer's site by a customer. The software is used in a natural setting with the developer "looking over the shoulder" of the user ... engineers make modifications and then prepare for release of the software product to the entire customer base.

Description : List four objectives of testing.

Last Answer : List of 4 objectives of testing 1. Testing is a process of executing a program with the intent of finding an error. 2. A good test case is one that has a high probability of finding ... the business and user requirements. 4. To ensure that it satisfies SRS that is System Requirement Specifications.

Description : Explain Deployment principles.

Last Answer : Deployment principle: 1. Principle 1: Manage customer's expectations. It always happens that customer wants more than he has started earlier as his requirements. It may be the case that customer ... software to the customer by giving assurance that the defects will be removed in next increment.

Description : Explain about software quality assurance

Last Answer : Software quality assurance (SQA) is a process that ensures that developed software meets and complies with defined or standardized quality specifications. SQA is an ongoing process within ... methods and measures, conducting formal technical reviews, and performing well-planned software testing.

Description : Explain SCM.

Last Answer : Software configuration management (SCM), also called change management, is a set of activities designed to manage change by identifying the work products that are likely to change, establishing ... of a software application  To Ensure that software quality is maintained as configuration evolves.

Description : Explain the waterfall model.

Last Answer : The waterfall model is a traditional method, sometimes called the classic life cycle. This is one of the initial models. As the figure implies stages are cascaded and shall be developed one ... useful in situation where the requirements are fixed and work proceeds to completion in a linear manner.

Description : Explain analysis modeling.

Last Answer : The analysis model and requirements specification provide a means for assessing quality once the software is built. Requirements analysis results in the specification of software s operational characteristics. ... no new information.  Only modeling elements that have values should be implemented.

Description : What are communication principles? Explain their meaning.

Last Answer : Principle 1. Listen. Try to focus on the speaker's words, rather than formulating your response to those words. Ask for clarification if something is unclear, but avoid constant interruptions. Never ... well, all parties have a common goal. Still, negotiation will demand compromise from all parties.

Description : Explain changing nature of software.

Last Answer : Changing Nature of Software: - Whenever one starts with the software implementation changes can occur any time. The software can be change due to any reason. But while implementing software one should ... a system succeeds, but they can also pose huge problems for those who build complex systems.

Description : Describe behavioral model.

Last Answer : Behavioral models are used to describe the overall behavior of a system. The behavioral model indicates how software will respond to external events or stimuli. To create the model, you should perform ... another. State charts, An integral part of the UML are used to represent state machine models

Description : Describe six sigma for software engineering.

Last Answer : Six Sigma is the most widely used strategy for statistical quality assurance in industry today. Originally popularized by Motorola in the 1980s, the Six Sigma strategy -is a rigorous and disciplined ... variation is sometimes called the DMADV (define, measure, analyze, design, and verify) method.

Description : What is better computer engineering or software engineering?

Last Answer : Computer Engineering have many parts in which one is software engineering, if your interest in software development then choose software engineering

Description : n The Roof Of A Pumping Station Explain Briefly The Components Of A Waterproofing System?

Last Answer : Answer : The components of a typical waterproofing system on the roof of a pumping station are as follows:  Right above the structural finish level of the roof ( concrete ) a uniform ... waterproof membrane. The insulation board helps in the maintenance of a stable temperature in both weathers.

Description : Describe Briefly The Advantages And Disadvantages Of Using Plastic And Timber Fenders?

Last Answer : Answer : The advantages and disadvantages of using plastic fenders are as follows: Plastic fenders are low in strength with a relatively high resistance to abrasion. Plastic fenders are resistant ... of contact. Also since they are made from recycled material they are environmental friendly.

Description : Describe Briefly The Various Methods Of Concrete Curing?

Last Answer : Answer : Curing is the process of maintaining the moisture and temperature conditions for freshly deployed concrete. This is done for small duration of time to allow the hardening of concrete. The methods that ... can be applied on curing surface. This keeps the surface wet for a very long time.

Description : Why Is The Use Of Granular Sub-base In Concrete Carriageways Not Preferred, Explain?

Last Answer : Answer : Some of the reasons why granular sub-base is not preferred in concrete carriageways:  Sub bases are permeable and hence water can seep through them easily. The soil particles get pumped ... sub-base. This can lead to the cracking of the carriageway when there is severe traffic loading.

Description : Explain Why Concrete Barriers Have Curved Surface Profiles?

Last Answer : Answer : The concrete safety fencings are made to contain vehicles in their carriageway being travelled so as to reduce the chances of rebounding into the roads leading to more hazards. In the case ... on the road by rebounds. This helps in vastly reducing the chances of other vehicle hazards.

Description : For What Purpose Bedding Is Used Under Storm Water Drains, Explain?

Last Answer : Answer : Beddings are primarily made up of granular or concrete materials. They are primarily used for the following purposes:  They are used to provide a more uniform support for the under ... sockets. Otherwise it can lead to uneven stress being induced on the pipes eventually damaging it.

Description : Explain The Mechanism Of Cavitations In Pipes And Drains?

Last Answer : Answer : The formation of air bubbles in a fluid due to low pressure conditions lower than the saturation pressure is known as cavitations. This is considered to be a high potential damage condition ... This leads to the damage of the pipelines as a high level of dynamic pressure is created.

Description : What Are The Steps Involved In The Concreting Process, Explain?

Last Answer : Answer : 1. Batching: The process of measurement of the different materials for the making of concrete is known as batching. batching is usually done in two ways: volume batching and weight batching ... performed. Compaction is generally performed in two ways: by hand or by the use of vibrators.

Description : Explain construction and working of two stage reciprocating air compressors.

Last Answer : Figure: Two Stage Reciprocating air compressor Construction and Working : It consists of two cylinders (L.P. and H.P.) with water cooled intercooler and air receiver. First of all fresh air is ... (ie second stage) from 3 to 4 is delivered by the compressor at pressure P3 & Temp T4.

Description : Explain the construction and working of Turbo-prop engine.

Last Answer : Turboprop Engine: Construction and working: It consists of diffuser, compressor, combustion chamber, turbine, nozzle and propeller. Figure shows a turboprop system employed in aircrafts. Here ... energy of the incoming air (equal to aircraft velocity) into pressure energy by diffuser.

Description : Explain the sources of air leakage in condenser.

Last Answer : Sources of air leakage in condenser 1. Air leak through joints and packing. Air leaks into condenser as pressure inside falls below atmospheric pressure. 2. Air also comes in condenser with the steam. ... separated at low pressure in the condenser 4. Air leaks if any bypass seal is broken.

Description : Explain two pass down flow surface condenser with a neat sketch.

Last Answer : Two pass down flow surface condenser: It consists of horizontal cast iron cylindrical vessel pack with tubes, through which the cooling water flows. The ends of the condenser are cut off by vertical ... convert into water; therefore whole condensate can be the reused in the boiler. 

Description : (i) Explain construction and working of geothermal power plant. (ii) Explain the construction and working of bomb calorimeter.

Last Answer : (i) Geothermal power plant: Construction and Working: geothermal power plant which consists of the following main components: Underground steam storage, steam separator, steam separator, turbine and Generator. Steam is ... . From the above data the calorific value of the fuel can be found. 

Description : Explain combustion chemistry of carbon, hydrogen and methane.

Last Answer : Combustion chemistry of carbon, methane and hydrogen: i) Carbon: Burning of carbon to carbon dioxide ( complete combustion )  That means 1 kg of carbon needs 2.67 kg oxygen and produces 3.67 ... equitation 1 kg of hydrogen combines with 8 kg of oxygen to produce 9 kg of steam. 

Description : Explain working of thermal power plant.

Last Answer : Working of thermal power plant: In this power plant, coal is used as a fuel for combustion in combustion chamber. After combustion of fuel the heat is generated and this heat is given to the ... by using cooling water and this condensate again used for the boiler with the help of feed pump. 

Description : Explain the factors affecting volumetric efficiency of reciprocating air compressor.

Last Answer : Factors affecting volumetric efficiency of reciprocating air compressor: 1) Clearance Volume 2) Restricted passage and leakage at inlet valves 3) Speed of rotation 4) Piston ring leakages ... wall, it get expanded, which decreases the charge taken in therefore volumetric efficiency decreases.

Description : Explain the working of La-mont boiler

Last Answer : La-mont boiler: Working: The La-mont boiler consists Boiler shell, combustion chamber, evaporator, economizer, circulating pump, super heater, and steam drum. This is modern high ... drawn through the super heater. The superheated steam so obtained is then supplied to the prime mover.

Description : Explain Otto cycle with P-V and T-S diagram.

Last Answer : This cycle is so named as it was conceived by Otto'. On this cycle, petrol, gas and many types of oil engines work. It is the standard of comparison for internal combustion engines. Figs. ... 4-1 shows the rejection of heat by air at constant volume till original state (point 1) reaches.

Description : Explain the phases of formation of steam.

Last Answer : Different phases of Formation of steam Consider formation of steam from ice at -200 C i)Solid phase- When the heat is added in ice which is at -20 0C, the temperature of ice increases ... the temperature of steam which is called as superheating and in this region only vapour is present.

Description : VM Player, longevity of testing software (30days)?

Last Answer : vorsprung durch technik

Description : With respect to GUI testing write the test cases for Amazon login form.

Last Answer : Test case ID Test case objective Input data Expected result Actual result Status TC1 Check cursor position at email or mobile number field Click on email or mobile number ... should redirect to respective page on click Cursor changed and redirects to other page. Pass

Description : State the testing approaches that are considered during client server testing.

Last Answer : Testing approaches of client server system: Component Testing: One need to define the approach and test plan for testing client and server individually. When server is tested there is need of a ... testing and compliance testing may be involved if needed, as per testing and type of system.

Description : Describe object oriented metrics in testing. 

Last Answer : Object oriented metrics in testing: OBJECT-ORIENTED METRICS AND MEASURES As object-oriented approach emerged to support major applications, the effectiveness of applying traditional software metrics ... within the hierarchy, the more methods the class can inherit, increasing its complexity.

Description : Differentiate between alpha and beta testing.

Last Answer : Alpha Testing Beta Testing Alpha testing performed by Testers who are usually internal employees of the organization. Beta testing is performed by Clients or End Users who are not employees of ... input on the product and ensures that the product is ready for real time users. 

Description : Enlist factors considered for selecting a testing tool for test automation.

Last Answer : The following factors are important during tool selection: i. Assessment of the organization's maturity (e.g. readiness for change); ii. Identification of the areas within the organization where ... the tool is another important point to be considered while selecting and deploying the test tool.

Description : Describe the use of decision table in black box testing with the help of suitable example.

Last Answer : I.Decision table testing is black box test design technique to determine the test scenarios for complex business logic. ii. Decision tables provide a systematic way of stating complex business rules, which is useful for ... when conditions are missed, it is easy to see.  Example : 

Description : State any eight limitations of manual testing.

Last Answer : 1. Manual testing is slow and costly. 2. It is very labor intensive; it takes a long time to complete tests. 3. Manual tests don't scale well. As the complexity of the ... Comparing large amount of data is impractical. 10. Processing change requests during software maintenance takes more time. 

Description : Enlist objectives of software testing.

Last Answer : Objectives of software testing are as follows: 1. Finding defects which may get created by the programmer while developing the software. 2. Gaining confidence in and providing information about the level ... . 6. To gain the confidence of the customers by providing them a quality product. 

Description : State any two examples of integration testing.

Last Answer : 1. Verifying the interface link between the login page and the home page i.e. when a user enters the credentials and logs it should be directed to the homepage 2. Check the interface link between the ... the interface link between the home page and the profile page i.e. profile page should open up. 

Description : Define static and dynamic testing. 

Last Answer : Static testing: In static testing code is not executed. Rather it manually checks the code, requirement documents, and design documents to find errors. Main objective of this testing is to ... this testing is to confirm that the software product works in conformance with the business requirements.

Description : Please ripley me due to emergency

Last Answer : To calculate the flux density in the ring, you need to use the following formula: B = (μ * I * N) / (2 * π * r) where: B is the flux density in the ring (in teslas) μ is the relative permeability ... 2 * π * 0.127 m) = 0.53 T So the flux density in the ring would be approximately 0.53 teslas.

Description : Is not asked

Last Answer : In manual feed turning, the operator manually controls the feed rate of the cutting tool by turning a handwheel or other manual feed mechanism. This allows the operator to adjust the feed rate ... hand, is generally faster and more consistent, but it requires more complex equipment and programming.

Description : Can a Schizophrenic study Engineering?

Last Answer : You can ask the university’s disability counselor. You might get an accommodation as a special student or take fewer classes, and go part time. Congratulations on improving your situation.

Description : Mechanical engineers: how should one think about using an electric motor actuator vs a hydraulic actuator powered by an electric pump?

Last Answer : Too much wear on gears (and they would have to be huge), much more power advantage with hydraulics. Less parts. And more cost effective. And take up less space.

Description : How long is the longest rope ever manufactured?

Description : Is it clear what a flying car is from the images in the following page?

Last Answer : Yeah. Why? And, I don’t know. If you’ve seen the ‘Blade Runner’, and some other science fictions series and films, it just looks neat. But I doubt we’ll have much of those things until the relatively distant future… if then.

Description : Does anyone have advice about building a new pole barn on my property?

Last Answer : So you intend to keep the current concrete floor?

Description : Do the new digital thermometers stay in your mouth when you use them?

Last Answer : They pop out of my mouth too. Yes, they need redesigned. I went back to the old fashion thermometers with mercury.