Questions tagged [white-box-testing]
White box testing is a process of giving the input and checking how the given input is been processed to obtain the output from the system.
white-box-testing
51
questions
1
vote
1
answer
1k
views
unit testing Coverage Issue
my ultimate goal is to cover the below code (making complete code green). I am using cantata tool.
#define CHECK1 ((a == 1) || (a == 4))
void check_fun(int a, int b)
{
if((!CHECK1)&...
0
votes
1
answer
3k
views
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 ...
4
votes
1
answer
2k
views
Does statement coverage count false if statements?
When checking statement coverage for my code:
double programme(double x, double y)
{
double z
if(x>=5){
z = 15;
}
else if(x>=3){
z= 10;
}
else {
z=0;...
0
votes
1
answer
247
views
Code coverage of a daemon in Windows
I need to do code coverage on a daemon. The daemon application is written in c++. We test the daemon features with a client test program that has its own libraries. The libraries communicate with the ...
0
votes
1
answer
75
views
Which techniques for unit tests with poor functional requirements and no design specifications?
In my understanding, design specifications help to formulate unit test cases which make use of internal knowledge (white-box techniques), while if we only have functional requirements, the black-box ...
0
votes
1
answer
106
views
White-Box Testing
I was just wondering what is the difference between the statment coverage/decision coverage/condition coverage from the following code.
public static void main (String args [])
{
char letter=' '...
0
votes
2
answers
2k
views
JUnit blackbox/ whitebox to test Selection Sort?
I am attempting to understand and impliment blackbox / whitebox JUnit techniques on a SelectionSort class, but Im having trouble understanding what direction to take..
One of my failed attempts I ...
2
votes
1
answer
2k
views
Difference between control flow testing and basis path testing
We are studying various testing techniques in Software Quality Assurance course and i got confused when came across "basis path testing" and "control flow testing". Both these techniques apparently ...
2
votes
5
answers
14k
views
Whitebox and Blackbox testing
I ve been reading for the whitebox and blackbox testing.
If im not wrong:
Whitebox tests the implementation of a Software Program, but blackbox tests the inputs and outputs.
Can someone please ...
0
votes
1
answer
852
views
Test Javascript function which dont return a value in Qunit
Suppose I have a function
function f_createScriptElement(f_url) {
var script = d[CreateElement](Script);
script.type = "text/javascript";
script[Src] = f_url;
script....
0
votes
1
answer
2k
views
Android white box testing
I'm new android testing and for a while I'm using Android test framework to test my code(with the help of ProviderTestCase2, AndroidTestCase, activityinstrumentationtestcase2,etc) I want to know what ...
1
vote
2
answers
3k
views
Best Practice for Black Box testing [closed]
I have a couple of windows service applications that working with sql server. I would like to perform black box testing for my application. I don't want to use unit testing, because I haven't enough ...
2
votes
1
answer
846
views
Visual Studio 2010 Unit Test
I want to test a couple of functions in my source code with unit tests. Now If I run my test I don't get any test results.
Here is a simple Code Snippet what I try to do:
#include <iostream>
...
10
votes
1
answer
1k
views
What is an ON-unit?
The Art of Software Testing contains several references to "ON-units". Here is an example from the section on test-case design:
Decision coverage usually can satisfy statement coverage. Since every ...
4
votes
6
answers
20k
views
White-Box/ Black-Box Testing: static or dynamic?
Here is what I understand:
Dynamic testing is testing that is performed when the system is running.
Static testing is performed when the system is not running.
Black-Box testing focuses on ...