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

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 checks the internal structure of the software. White box testing can be started only after the coding is been completed. Tester who has knowledge of coding performs white box testing. Its advantage is that it checks the internal structure of the system at the basic level and gets it improvised, But the disadvantages is that mostly it does not concentrate on whether the system satisfies users needs or no.

White box test techniques

  1. Statement Coverage
  2. Branch coverage/ Decision Coverage
  3. Path Coverage
  4. Condition Coverage
54 questions
0
votes
1 answer

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 Expression? For example, boolean expression is (A ||…
Won Hee Lee
  • 65
  • 2
  • 9
0
votes
0 answers

Is unit testing always white box testing?

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 requirements for that unit, and ensuring that it…
LightCC
  • 9,804
  • 5
  • 52
  • 92
0
votes
1 answer

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 here is not related to the design, instead it is…
Fernando Barbeiro
  • 762
  • 4
  • 15
  • 33
0
votes
1 answer

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 testing says "there is a problem here" - as well as…
0
votes
2 answers

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 achieves 100% branch coverage and does ​not​…
user3624146
  • 369
  • 1
  • 5
  • 16
0
votes
1 answer

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, branches and paths. But I want to ask what we do with…
a Learner
  • 4,944
  • 10
  • 53
  • 89
0
votes
2 answers

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 & m > 0) { 4 result = true; 5 } 6 …
Luke
  • 1
0
votes
1 answer

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. However it gets very tedious to debug these tests as…
Gloria Rampur
  • 353
  • 3
  • 12
0
votes
0 answers

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 function A will not call function C. Now, is method…
sheldon cooper
  • 455
  • 2
  • 8
  • 22
0
votes
0 answers

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. I made it by patching component ( here is full…
user3292998
  • 209
  • 1
  • 8
0
votes
1 answer

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 number of paths in program) * 100 I was able to…
makingitwork
  • 149
  • 2
  • 9
0
votes
3 answers

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 start structural (white-box) testing, do i need to…
Anuj Kalra
  • 73
  • 1
  • 8
0
votes
1 answer

Why does PowerMock's example for use of Whitebox.invokeConstructor() throw a ConstructorNotFoundException?

When I then try to run the second example from PowerMock's Bypass Encapsulation docs, using PowerMock 1.5.2 (which we use at my company), I immediately get a ConstructorNotFoundException thrown. I tried switching to version 1.6.2, with the same…
Christian
  • 6,070
  • 11
  • 53
  • 103
0
votes
0 answers

Is testing through secondary testing app white box testing?

So this software has zero unit tests. Basically you can't test this software unless the whole system is built and running. (This is crap I know) They way these "white box" tests work: while the whole system is running, we inject basically a…
Nah
  • 331
  • 2
  • 9
0
votes
1 answer

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 null else statements, but what would you catch with…
Robben_Ford_Fan_boy
  • 8,494
  • 11
  • 64
  • 85