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
0
votes
0
answers
392
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 ...
0
votes
1
answer
126
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.
1
vote
1
answer
981
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.
0
votes
0
answers
258
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) {
...
1
vote
1
answer
525
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 ...
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 ...
1
vote
0
answers
34
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() {
@...
-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.
...
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 ...
2
votes
0
answers
79
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 ...
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 ...
0
votes
2
answers
650
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 ...
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 ...
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 ...
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 ...
1
vote
0
answers
706
views
How to suppress parsing, preprocessing of code with the signature "__ASM volatile rbit(x)"
I am unit testing embedded code on a host environment (vectorcast).
The code is devloped using an arm-eabi compiler on the target hardware. We are testing it on desktop without any simulator or ...
-1
votes
1
answer
223
views
Whitebox testing with break
Can someone tell me if my whitebox testing is correct? Can I put 2 arrows entering for statement 8 ?
Code being tested:
Whitebox test:
0
votes
1
answer
399
views
Black box/White box testing contradictions
So I already know the difference between white box and black box testing, but I am looking for fairly straightforward examples of situations where White box says "everything is OK" and Black box ...
0
votes
2
answers
4k
views
Coverage: Branch and path coverage test case
I need to implement the Division by Zero operation in a method such that
(1) every test suite that achieves 100% path coverage reveals the fault and (2) it is possible to create a test suite that ...
3
votes
1
answer
1k
views
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 ...
0
votes
2
answers
506
views
purpose of white box testing
I have read about whitebox testing. Statement coverage, branch coverage, path coverage done at unit, integration levels. In this we derive test cases to obtain maximum coverage for statements, ...
2
votes
2
answers
3k
views
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 ...
0
votes
2
answers
69
views
Drawing a program graph: What line is visited after a conditional or loop is not called?
Just wanted to check whether the way I am thinking is correct.
Here is an example method:
1 public static boolean isCircle (int M, int m) {
2 boolean result = false;
3 if (M == m & M > ...
0
votes
1
answer
1k
views
React Application Unit Testing
I am currently testing a React app using Selenium for Functional Testing. Selenium is used to launch the app on the browser, and simulate user actions and keep asserting/verifying at each step.
...
0
votes
0
answers
417
views
Which methods are to be considered in method coverage
I have a confusion regarding the method coverage calculation.
consider the code below.
function A (n1)
{
if (n>1)
C();
else
print n1;
}
Now, My test case calls A() as
A(1)
It means ...
0
votes
0
answers
24
views
Relaying on typhoon in tests with "White-box" approach
I've got following solution for white-box tests:
Typhoon - DI framework
KIF - tool for interacting with UI
To test every single important edge case, i sometimes have to "stub" response from backend....
0
votes
1
answer
825
views
how to manually calculate code coverage percentage for path coverage?
I am manually creating the white-box testing for our system and I have issues with automated coverage testing tools. This is a Java-based system.
Path coverage % = (Total paths exercised / total ...
-5
votes
3
answers
267
views
What do the terms "white box testing" and "black box testing" mean?
Hi everyone my question is not about programming. Rather it is on software development plans. Can someone explain these 2 to me am getting a bit of confusion:
White box testing
Blackbox testing
...
0
votes
3
answers
112
views
How to test a java software?
We have been assigned an open source software to test!
The software has 3 packages and each package has 10 or more classes and each class might have dozens of methods.
My question is that before I ...
1
vote
2
answers
12k
views
statement and branch coverage
Hello everyone in these days i am preparing ISTQB exam and i am stuck with one of the questions.
mock exam QUESTION 16
Question is ( originally copy paste) here:
Given the following code, which is ...