Skip to main content
The 2024 Developer Survey results are live! See the results

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
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)&...
venkatesh kambakana's user avatar
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 ...
Christian's user avatar
  • 6,360
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;...
Cormac Hallinan's user avatar
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 ...
kk.'s user avatar
  • 687
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 ...
user3605138's user avatar
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=' '...
UnholySalmon's user avatar
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 ...
user3583710's user avatar
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 ...
mujtabaidrees94's user avatar
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 ...
syiannop's user avatar
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....
Swaraj Chhatre's user avatar
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 ...
Simz's user avatar
  • 15
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 ...
Polaris's user avatar
  • 3,733
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> ...
Kipcak08's user avatar
  • 313
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 ...
Matthew's user avatar
  • 28.9k
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 ...
KB7's user avatar
  • 41

15 30 50 per page