Questions tagged [black-box-testing]

"Black box" testing tests a device, program, application, etc., as a whole. Inputs are provided and the results monitored. The internal workings of the tested item are not relevant and may be unknown. "Functional testing" is a type of "Black box testing", but not all "black box" tests have to be "functional".

Black box testing tests a device, program, application, etc., as a whole.

Inputs are provided and the output results monitored. The internal workings of the tested item are not relevant and may be unknown.

Black box testing and Functional testing are sometimes used synonymously, but Functional testing is really a subset. "Non functional" tests, like Stress testing are often done in a "black box" manner.

Compare and contrast to Unit testing and White box testing.

References:

  1. Black-box testing on Wikipedia
114 questions
1
vote
1 answer

Result Execution and Presentation when Blackbox Testing

I have developed a Blackbox Test Environment in Python 3.2 for testing a piece of hardware. In this environment I have a TestExecution.py module where I run my tests as follows: while(True): TestWithRestart("Test122") …
Baz
  • 12,713
  • 38
  • 145
  • 268
1
vote
3 answers

Unit testing a method with delay in Objective-C

I'd like to write black-box unit tests for a method that calls another one with a delay. It kinda looks like this: - (void) doSomething { // Do something [self performSelector:@selector(doSomethingLater) withObject:nil…
hpique
  • 119,096
  • 131
  • 338
  • 476
1
vote
1 answer

Prometheus x509: certificate signed by unknown authority

I was trying to monitor one of our webservices by using Prometheus but I faced some problem for some our endpoints. my prometheus.yml job_name: 'blackbox' metrics_path: /probe params: module: [http_2xx_example] static_configs: - targets: #…
1
vote
1 answer

Automated input generator for black-box testing

I am a newbie for software testing. I want to know, is there any open source tool for automated test case generator black-box testing. I found this tool KLEE: unassisted and automatic generation of high-coverage tests for complex systems programs,…
Maggie
  • 5,923
  • 8
  • 41
  • 56
1
vote
0 answers

Test Method relies on order of a privately constructed object

source code/instructions (pages 20 and 21): https://github.com/head-first-csharp/fourth-edition/blob/master/Downloadable_projects/Chapter_9_project.pdf I am building the GoFish project from Ch9 of the HeadFirst C# (4th Edition) textbook and cannot…
1
vote
1 answer

Binary search on array with duplicate

First time posting here, so apologies in advance if I am not following best practices. My algorithm is supposed to do the following in a sorted array with possible duplicates. Return -1 if the element does not exist in the array Return the smallest…
bbt_wb
  • 11
  • 2
1
vote
1 answer

Prometheus blackbox exporter failing https but not http

I have the below config for a module. The only thing this module is used for is a website that returns a 403. When using http it works fine when using https it fails. proxy_http_4xx: prober: http timeout: 5s http: …
1
vote
0 answers

Are there efficient methods of black box testing that can avoid redundancy?

I've been conducting black box testing for a software program that does engineering analysis on different types of concentrated solar power (CSP) models. The quality assurance testing I've been conducting has involved only changing one default…
1
vote
3 answers

What is the difference between black box testing and end-to-end testing?

Both of them check the application from the user's point of view, so, what it's the difference between them?
ALopez
  • 121
  • 1
  • 13
1
vote
1 answer

How to correctly logout when using roles

when using roles in TestCafe I can't seem to get roles to correctly logout. Or, more importantly I can't get two consecutive tests to execute using the same Role. A little background: I am testing an enterprise website (Sorry, cannot share) that…
1
vote
0 answers

Unable to Launch Application through Test application by Robotium

I'm trying to write a black box test for android application of which i only have the APK (no source code) using the Robotium. I am using android studio 3.1.2. Here the code snippet, import android.test.ActivityInstrumentationTestCase2; …
1
vote
2 answers

How can I use a HashMap to mock out my Mongo DB repository

I am trying to figure out a way to create a mock implementation of my Mongo DB repository that used a HashMap under the covers. This way, I wouldn't have to mock out every single database call and could simply let the database act as a black box and…
Thom
  • 14,013
  • 25
  • 105
  • 185
1
vote
1 answer

How to test RDP port is up using Prometheus Blackbox

I have been struggling to implement an RDP probe to check multiple ports in Windows machines using Prometheus Blackbox. So far I manage to check DNS, ping, ports 80,8080 but I cannot manage to test 3389! As a rule of thumb I would like to be able to…
Up_One
  • 5,213
  • 3
  • 33
  • 65
1
vote
3 answers

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(String numberAsString, String numberAsString) { ...…
1
vote
1 answer

How to test for numerical stability?

Given an function F that performs a numerical computation on 32-bit IEEE-754 floating point numbers, what would be the (best) way to test if F is numerically stable? Is there a black-box test that does not need to know more about the function other…
Daniel Lovasko
  • 471
  • 2
  • 10