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

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 checks the internal structure of the software. White box testing can be started only after the coding is been completed. Tester who has knowledge of coding performs white box testing. Its advantage is that it checks the internal structure of the system at the basic level and gets it improvised, But the disadvantages is that mostly it does not concentrate on whether the system satisfies users needs or no.

White box test techniques

  1. Statement Coverage
  2. Branch coverage/ Decision Coverage
  3. Path Coverage
  4. Condition Coverage
54 questions
10
votes
1 answer

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 statement is on some subpath emanating either from…
Matthew
  • 28,056
  • 26
  • 104
  • 170
6
votes
2 answers

Test cases for a Singly Linked list

What are some good testcases for a Linked list problem in general? for example test cases for a function which finds and eliminates duplicates and returns the pointer to the first node. Some core cases could be: the function is in c# or Java and not…
RashMans
  • 321
  • 1
  • 4
  • 17
6
votes
2 answers

Multiple Condition Coverage Testing

When using the White Box method of testing called Multiple Condition Coverage, do we take all conditional statements or just the ones with multiple conditions? Now maybe the clues in the name but I'm not sure. So if I have the following method void…
Robben_Ford_Fan_boy
  • 8,494
  • 11
  • 64
  • 85
4
votes
6 answers

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 functionality and is performed without knowing the internal…
KB7
  • 41
  • 1
  • 1
  • 2
4
votes
1 answer

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; } if (y>z) { z=y; } return…
Cormac Hallinan
  • 187
  • 1
  • 12
3
votes
1 answer

White-box and Black-box testing of recursive functions

I learned white-box and black-box testing in terms of iterative functions. Now i need to do white-box and black-box testing of several recursive functions (in F#). take the following recursive algorithm for gcd: gcd (m, n) if (m % n) = 0 then …
sss
  • 115
  • 6
3
votes
6 answers

Disadvantage of White Box Testing?

Can you think of any disadvantages of White Box testing - other that the tester needs to know and understand the code (which may have a cost)? Thanks,
Robben_Ford_Fan_boy
  • 8,494
  • 11
  • 64
  • 85
2
votes
0 answers

White Box Testing - Basis Coverage

What does it mean, when you do a white box test : "cover the edges with a basis, if possible. Otherwise cover the paths with a set of arbitrary test cases". What I usually do in this kind of exercises is to compute the cyclomatic complexity of my…
KiririIG
  • 321
  • 2
  • 5
  • 11
2
votes
0 answers

How to mock private methods using Whitebox(org.powermock.reflect)

I want to mock a private method which has been called inside another method. Following is the sample code, I have written. Java code: package org.mockprivatemethods; public class AccountDeposit { // Instantiation of AccountDetails using some…
S Kumar
  • 555
  • 7
  • 21
2
votes
2 answers

What is difference between Prime Path Testing and Path Testing?

I got following types of white box testing list: Control flow testing Data flow testing Branch testing Statement coverage Decision coverage Modified condition/decision coverage Prime path testing Path testing Could anyone give me example…
fatherazrael
  • 5,511
  • 16
  • 71
  • 155
2
votes
1 answer

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 look same even their steps are also almost same but…
2
votes
5 answers

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 give me an example of a simple code for the both…
syiannop
  • 87
  • 1
  • 1
  • 9
2
votes
1 answer

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 using namespace std; namespace UnitTest { …
Kipcak08
  • 313
  • 2
  • 4
  • 13
1
vote
1 answer

How is Symbolic Execution different from Whitebox Fuzzing?

I do not understand how symbolic execution is different from Whitebox fuzzing? From what I understand, Whitebox Fuzzers symbolically execute the code with some initial input format. Additionally, it will be helpful if someone could differentiate…
Madhuparna Bhowmik
  • 2,090
  • 4
  • 12
  • 22
1
vote
0 answers

Cyclomatic Complexity Calculation on Presenter Methods and Callbacks

everyone. I need help in determining the cyclomatic complexity regarding this tested method. @Override public void renderData() { mRepository.render(new TvShowsRepositoryCallback() { @Override public void onRenderingData() { …
1
2 3 4