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

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
19 questions with no upvoted or accepted answers
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 ...
KiririIG's user avatar
  • 321
2 votes
0 answers
6k views

How to mock private methods using Whitebox(org.powermock.reflect)

I want to mock a private method which has been called inside another method. Following is the sample code, I have written. Java code: package org.mockprivatemethods; public class AccountDeposit ...
S Kumar's user avatar
  • 585
1 vote
0 answers
34 views

Cyclomatic Complexity Calculation on Presenter Methods and Callbacks

everyone. I need help in determining the cyclomatic complexity regarding this tested method. @Override public void renderData() { mRepository.render(new TvShowsRepositoryCallback() { @...
Febryan Asa Perdana's user avatar
1 vote
0 answers
706 views

How to suppress parsing, preprocessing of code with the signature "__ASM volatile rbit(x)"

I am unit testing embedded code on a host environment (vectorcast). The code is devloped using an arm-eabi compiler on the target hardware. We are testing it on desktop without any simulator or ...
yash's user avatar
  • 19
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)&...
venkatesh kambakana's user avatar
0 votes
0 answers
392 views

Calculate minimum number of test cases for statement coverage and condition coverage respectively

Could someone draw a flow graph and explain how I get the answer to this question? Question: Calculate the minimum number of test cases for statement coverage and minimum number of test cases for ...
Edward Stalley's user avatar
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
0 votes
0 answers
38 views

I am trying to learn statement coverage analysis

I am trying to learn code coverage analysis; I am bit confused because the following code has loops. Example if the code like this read a; read b; i=0 if a>b while(to i<a) print(i) i++; end ...
Rashmika gamage's user avatar
0 votes
2 answers
650 views

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 ...
Won Hee Lee's user avatar
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
0 votes
2 answers
69 views

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 > ...
Luke's user avatar
  • 1
0 votes
0 answers
417 views

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 ...
sheldon cooper's user avatar
0 votes
0 answers
24 views

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....
user3292998's user avatar
0 votes
1 answer
825 views

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 ...
makingitwork's user avatar
0 votes
1 answer
247 views

Code coverage of a daemon in Windows

I need to do code coverage on a daemon. The daemon application is written in c++. We test the daemon features with a client test program that has its own libraries. The libraries communicate with the ...
kk.'s user avatar
  • 687

15 30 50 per page