All Questions
Tagged with white-box-testing unit-testing
18
questions
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
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 ...
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 ...
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 ...
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
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
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
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
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 ...
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 ...
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....
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>
...