White-box testing is a method of testing software that tests internal structures or workings of an application as opposed to its functionality i.e. black-box testing
Questions tagged [white-box]
43 questions
0
votes
2 answers
Object reference not set to an instance of an object
Hello am calling from a class to test my product however i keep getting this error:
"Object reference not set to an instance of an object."
Testing:
global::OfficeSystem.Employees employees = new…

debug345
- 1
0
votes
0 answers
How to write unit test for a Button using white box?
I have a list of rows in the table and a moveUpButton, it will move selected rows to one step up. It works fine but I need to write unit test using white box for this method.
Here is my code:
public void registerMoveUpBut(final Button moveUpBut){
…

putin
- 21
- 6
0
votes
1 answer
Can black box testing alone catch all errors that white box testing catches?
Is possible to find an error with white box testing that cannot be found with black box testing?
If it is, then why?
As I understand it, this is not possible, but I'd like to know for sure.
0
votes
1 answer
Why does PowerMock's example for use of Whitebox.invokeConstructor() throw a ConstructorNotFoundException?
When I then try to run the second example from PowerMock's Bypass Encapsulation docs, using PowerMock 1.5.2 (which we use at my company), I immediately get a ConstructorNotFoundException thrown. I tried switching to version 1.6.2, with the same…

Christian
- 6,070
- 11
- 53
- 103
0
votes
0 answers
Is testing through secondary testing app white box testing?
So this software has zero unit tests. Basically you can't test this software unless the whole system is built and running. (This is crap I know)
They way these "white box" tests work:
while the whole system is running, we inject basically a…

Nah
- 331
- 2
- 9
0
votes
1 answer
what is the best tool for unit test in VB?
have to check some formulae whether they are providing correct result, these formula are written part of a VB program, what is the best tool\method to unit test these formula?

Onnesh
- 1,169
- 3
- 15
- 31
0
votes
1 answer
Stubbing/Mocking a private method
I am currently testing a method updateIssuesTable(). this method is a private void method. Even worse, inside this method is a call to getConnection(), which returns a Connection, and is dependent on several private variables, which are dependent on…

DanGordon
- 671
- 3
- 8
- 26
0
votes
1 answer
Must Follow rules of FxCOP
I´m using FxCOP and I want to know which are the most important rules or the rules that anybody can´t miss when using this tool.
I´m looking for some article or page with a list of rules that must be used in fxCop, this tool has a lot of rules and…

Ocepeda
- 37
- 5
0
votes
1 answer
Which are the “Must Follow” rules of PMD?
I´m starting to use PMD and I really want to know which are the most important rules or the rules that anybody can´t miss when using this tool.
I´m looking for some article or page with a list of rules that must be used in PMD, this tool has a lot…

Ocepeda
- 37
- 5
0
votes
3 answers
Powermock Whitebox invocation with null parameter
I'm trying to test a private method and have the following setup:
public class MyClass {
private boolean myprivatemethod(ClassB classBObject, boolean b) {
// do stuff here
someOtherMethod();
}
private void someOtherMethod() {
//…

JayTheKay
- 1,463
- 12
- 22
0
votes
2 answers
Decision/condition coverage
Is there a tools which shows the number of test cases to provide decision/condition coverage ?
for ex:
if(x>0)
if(x<=10 && y>0)
3 cases are enough for decision/condition coverage.
if(x>0)
if(x<=10 || y>0)
4 cases are enough for…

user1439532
- 13
- 3
0
votes
2 answers
Dynamic Black Box testing vs Static White Box testing
If we had to make a choice between Dynamic Black Box testing vs Static White Box testing which one should we prefer ?
Dynamic Blackbox testing is testing without having an insight of the underlying code whereas Static White box testing is code…

Pradit
- 709
- 5
- 12
- 27
0
votes
1 answer
UIImagePickerController white screen?
Good morning.
I'm having trouble with a UIImagePickerController not showing anything other than white. I have a 320x320 UIImageView, in my main header file:
IBOutlet UIImageView *_cameraView;
Along with:
@property (nonatomic, retain)…

mrEmpty
- 841
- 4
- 19
- 36