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

All Questions

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) { ...
ranmeo123'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.3k
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
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 ...
LoganLaFollette's user avatar
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 ...
sss's user avatar
  • 115
-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 ...
natasha's user avatar
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
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
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
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
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
6 votes
2 answers
17k views

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 ...
RashMans's user avatar
  • 331
1 vote
3 answers
4k views

should unit tests be black box tests or white box tests?

Say I have three methods, all very similar but with different input types: void printLargestNumber(int a, int b) { ... } void printLargestNumber(double a, double b) { ... } void printLargestNumber(...
Brad Cupit's user avatar
  • 6,560
0 votes
1 answer
552 views

Errors caught by WBT, but not BBT and vice versa

Can you think of one type of error that might be found using White-Box testing, and one type using Black-Box testing. i.e. an error that would be found by one and not the other. For WBT there would ...
Robben_Ford_Fan_boy's user avatar