answersLogoWhite

0


Best Answer

Unit testing may not be possible in all situations. When object-oriented software is considered, the concept of unit testing changes. Encapsulation drives the definition of classes and objects. This means that each class and each instance of a class packages attributes and the operations that manipulate these data. An encapsulated class is usually the focus of unit testing. However, operations within the class are the smallest testable units. Because, a class can contain a number of different operations, and a particular operation may exist as a part of a number of different classes, the tactics applied to unit testing must change.


You can no longer test a single operation in isolation, but rather as part of a class. To illustrate, consider a class hierarchy in which an operation X is defined for the superclass and is inherited by a number of subclasses. Each subclass uses operation X, but it is applied within the context of the private attributes and operations that have been defined for the subclass. Because the context in which operation X is used varies in subtle ways, it is necessary to test operation X in the context of each of the subclasses. This means that testing operation X in a stand-alone fashion is usually ineffective in the object-oriented context.




User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is unit testing possible or even desirable in all circumstances?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is it possible that you have a heart problem even after your medical check up?

It depends on what testing was done during your check up. If the check up was just with your general physician with no additional tests or if the right tests were not done it is possible.


What is component testing in software testing?

Testing a specific part of a system or even a program. That would be called a component. So it is component testing.


Do you need a cat to like them?

You can like cats, without having one. Sometimes circumstances dictate that is it may not be possible or practical to have a cat, but you still like them, even so.


Why power sharing desirable?

its not desirable coz it reduces peoples powers especially with people who have huge positions whether in church,politics,schools and even in our homes


Why power sharing not desirable?

its not desirable coz it reduces peoples powers especially with people who have huge positions whether in church,politics,schools and even in our homes


What is the antonyms for despicable?

Adorable or desirable. Perhaps honorable would be even better.


Do you have to know Visual BASIC to be a tester?

It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.


What would I do to make you want a Veblen good even more desirable?

Raise its price


What makes wind tunnel testing different from testing during an actual flight?

Without wind tunnel testing and other testing, testing in flight would be even more dangerous to the test pilot, and anyone killed should the aeroplane crash.


Is animal testing worth it?

No, because they mostly die after testing and the testing is for human medicine. So, even if the testing works on the animal it may not work on us because of different body systems. So again, the answer is NO!


How is animal testing bad?

You could harm them or even kill them.


Is there testing for exposure to herpes even if you test negative?

Unfortunately, no.