Questions tagged [black-box]

A black box is a device, system or object which can be viewed in terms of its input, output and transfer characteristics without any knowledge of its internal workings.

  • In computer programming and software engineering, black box testing is used to check that the output of a program is as expected, given certain inputs.[4] The term "black box" is used because the actual program being executed is not examined.
  • In computing in general, a black box program is one where the user cannot see its inner workings (perhaps because it is a closed source program) or one which has no side effects and the function of which need not be examined, a routine suitable for re-use.
  • Also in computing, a black box refers to a piece of equipment provided by a vendor, for the purpose of using that vendor's product. It is often the case that the vendor maintains and supports this equipment, and the company receiving the black box typically are hands-off.

http://en.wikipedia.org/wiki/Black_box

67 questions
36
votes
9 answers

What's wrong with "magic"?

I'm trying to decide whether to use a Rails or a Django guru to create a web app for me. I've been recommended to use Django because it uses less "magic". From my perspective however, the "magic" of Rails seems like a good thing since it could make…
Gosuda
31
votes
6 answers

Equivalence Class Testing vs. Boundary Value Testing

I understand how equivalence testing works. How is it the same or different from boundary value testing?
neuromancer
  • 53,769
  • 78
  • 166
  • 223
13
votes
3 answers

What are good algorithms for detecting abnormality?

Background Here is the problem: A black box outputs a new number each day. Those numbers have been recorded for a period of time. Detect when a new number from the black box falls outside the pattern of numbers established over the time…
Joseph Garvin
  • 20,727
  • 18
  • 94
  • 165
11
votes
3 answers

Control flow graph & cyclomatic complexity for following procedure

insertion_procedure (int a[], int p [], int N) { int i,j,k; for (i=0; i<=N; i++) p[i] = i; for (i=2; i<=N; i++) { k = p[i]; j = 1; while (a[p[j-1]] > a[k]) {p[j] = p[j-1]; j--} p[j] = k; } } I…
AJ.
  • 2,561
  • 9
  • 46
  • 81
9
votes
4 answers

REST client that can handle login via oauth

I am working as a tester on a system based on a Rest API. Part of my job is to use different applications to POST files to the Rest API and then accessing the API directly via a Rest Client to verify that the XML is correct. So far I have been using…
Jonas Söderström
  • 4,856
  • 2
  • 36
  • 45
8
votes
1 answer

In initWithCoder: what are the keys in the NSCoder (a UINibDecoder)? (for UIImageView)

Specifically, I'm trying to find the image path. This would be a super useful thing to be able to get, and as far as I've found nobody knows how. I've looked at the generated nib file for keys, and I'm able to see the image URL in there (test.jpg)…
Eli
  • 4,874
  • 6
  • 41
  • 50
7
votes
3 answers

Find $secret in $a == md5($b . $secret)

A function is: $a == md5($b . $secret); You can choose $a and $b You don't know $secret You get the value of the function for the $a and $b you choose as either true or false. Is there any better attack than brute force to find the $secret in…
Niklas
  • 3,753
  • 4
  • 21
  • 29
6
votes
2 answers

Mathematica: Evaluation order during numerical optimisation of black box functions

I am attempting to perform a numerical optimisation of a "black box" function in Mathematica. Schematically it goes like this: NMinimize[{comb[x,y,z], x > 0}, {x,y,z}] where comb[x,y,z] is defined similarly to this: comb[x_,y_,z_] := Module[{}, …
6
votes
6 answers

Is it fair to accuse Rails of "magic"?

When I first started looking into Rails and Django I was steered away from Rails by Django developers who felt that Rails was a black box which uses an excess of "magic" (leaky abstractions). Upon exploring Rails further I wonder whether this is an…
Gosuda
6
votes
1 answer

Can I get Safari Dev Tools to ignore / blackbox jQuery scripts?

Is is possible to setup Safari's web inspector to ignore jQuery while stepping thru JavaScript?
Arthur S
  • 61
  • 2
6
votes
8 answers

What is black box testing and white box testing

I'm trying to understand one in terms of how it compares to the other. Is white box testing where you can see the code and black box testing where you don't look at the code?
neuromancer
  • 53,769
  • 78
  • 166
  • 223
5
votes
2 answers

Is JUnit black-box or white-box testing?

Is JUnit black-box or white-box testing? I think that it is white-box but i am not sure. I am looking for that but I can't find a clear answer. Even a simple discussion about that would be useful.
anna
  • 745
  • 2
  • 9
  • 30
4
votes
3 answers

Python CLI Progress bar/spinner WITHOUT iteration

There are numerous existing questions regarding the display of progress bars in the terminal while a Python script executes, but every one of them is based on a loop where you perform an operation and then update the progress graphic.…
Steve R
  • 131
  • 2
  • 11
4
votes
1 answer

Hide CMD window after execute command line by the RUN

How to hide CMD/BAT (the black box) WITHOUT using Vbscript, I dont like using VBSCRIPT because it slows down application before it autorun. So if you have a code to put into batch or CMD to hide the CMD/Bat file WITHOUT using VBScrpit. please let me…
Num Educ
  • 55
  • 1
  • 1
  • 6
3
votes
0 answers

How to do black box testing?

Opposed to white-box / API testing, which is covered here There are many interviews, both for developers and qa, where you are asked to test smth out. A classic is to test the save dialog from notepad. Here is a list of tests I can come up with,…
Bogdan Gavril MSFT
  • 20,615
  • 10
  • 53
  • 74
1
2 3 4 5