Skip to main content

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
0 votes
0 answers
390 views

Calculate minimum number of test cases for statement coverage and condition coverage respectively

Could someone draw a flow graph and explain how I get the answer to this question? Question: Calculate the minimum number of test cases for statement coverage and minimum number of test cases for ...
Edward Stalley's user avatar
0 votes
1 answer
124 views

Why is white box testing sometimes called glass box testing?

In some references, I have found that white box testing is sometimes called glass box testing. I would like to know what are the reasons behind that.
Ravindu Abeywardane's user avatar
1 vote
1 answer
970 views

Statement Coverage and Decision Coverage - I am not able conclude which is the correct answer.-Need help wrt flow chart

As per my knowledge of Statement coverage and branch coverage Answer should be (a) .But to be very frank still flow chart for this is not clear to me. Can someone pls help me with flow chat.
Pushpanjali's user avatar
0 votes
0 answers
256 views

How to write test cases using Equivalence Class, Boundary value, and Basis Path Testing

I have a method isPerfect(x) (with 4<=x<=10000) below, how to write test cases based on Equivalence Class, Boundary Value, and Basis Path Testing: public boolean checkPerfectNumber(int x) { ...
ranmeo123's user avatar
1 vote
1 answer
520 views

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 ...
Madhuparna Bhowmik's user avatar
0 votes
0 answers
38 views

I am trying to learn statement coverage analysis

I am trying to learn code coverage analysis; I am bit confused because the following code has loops. Example if the code like this read a; read b; i=0 if a>b while(to i<a) print(i) i++; end ...
Rashmika gamage's user avatar
1 vote
0 answers
33 views

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() { @...
Febryan Asa Perdana's user avatar
-1 votes
1 answer
39 views

Should I add white/black box rendundant Unit Tests?

I've written black-box unit tests for my project. After a refactoring, I've adopted a strategy pattern in my code. This code is covered by the black-box unit test, even after the refactoring. ...
aneuryzm's user avatar
  • 64.2k
0 votes
2 answers
2k views

White-box test cases with 100% code coverage

I apologize ahead as I'm very new to software testing. But I have what looks like a simple code to create a White-box test cases with 100% code coverage: 01 public class ShapeAreas { 02 03 public ...
jaggsharry's user avatar
2 votes
0 answers
78 views

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 ...
KiririIG's user avatar
  • 321
1 vote
1 answer
1k views

PowerMockito - Whitebox Get Constructor of inner class with int[] parameter

As the title mentions, I'm using PowerMockito to test a class that contains an inner private class. The inner class has a constructor that has an 'int[]' parameter. Below is the code. final Class ...
user3050101's user avatar
0 votes
2 answers
643 views

I have a few question about MC/DC and piarwise testing

Recently, I started working on software testing, and I had some questions. Pairwise testing is the combination of all the values that this parameter can have, and is it also applicable to Boolean ...
Won Hee Lee's user avatar
0 votes
0 answers
46 views

Is unit testing always white box testing? [duplicate]

I've recently seen several references that indicate or mention off-hand in an article that unit testing is always white box testing. Since black-box testing is simply looking at the specification or ...
LightCC's user avatar
  • 11.1k
2 votes
0 answers
6k views

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 ...
S Kumar's user avatar
  • 585
0 votes
1 answer
2k views

Undoing Whitebox.setInternalState in a @AfterMethod without setting original state

I have a class which I cannot easily use a dependency injection to mock due to an obligatory implementation of an interface - in a nutshell, for that reason I will be using Whitebox and my concern ...
Fernando Barbeiro's user avatar

15 30 50 per page