Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

In my project, we need to generate the jacoco report for the external tests for the application/service deployed in AWS. In local system when making the service up by running the jar using java -jar ...
Chandru's user avatar
2 votes
0 answers
112 views

1. def is_prime(n): 2. if n <= 1: 3. return False 4. if n == 2 or n == 3: 5. return True ...
Arsenic's user avatar
  • 121
0 votes
1 answer
92 views

Hello everyone in the community, does anyone know about CFG (Control Flow Graph)? Can you please tell me how to represent the DFG for a foreach loop? This is a sample code: $array = [1, 2, 3, 4, 5]; ...
Lê Hoàng Quốc Thanh's user avatar
0 votes
0 answers
427 views

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
1 answer
194 views

In some references, I have found that white box testing is sometimes called glass box testing. I would like to know what are the reasons behind that.
Ravindu Abeywardane's user avatar
1 vote
1 answer
1k views

As per my knowledge of Statement coverage and branch coverage Answer should be (a) .But to be very frank still flow chart for this is not clear to me. Can someone pls help me with flow chat.
Pushpanjali's user avatar
0 votes
0 answers
283 views

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 vote
1 answer
755 views

I do not understand how symbolic execution is different from Whitebox fuzzing? From what I understand, Whitebox Fuzzers symbolically execute the code with some initial input format. Additionally, it ...
Madhuparna Bhowmik's user avatar
0 votes
0 answers
43 views

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
1 vote
0 answers
39 views

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 votes
1 answer
49 views

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
  • 65k
0 votes
2 answers
2k views

I apologize ahead as I'm very new to software testing. But I have what looks like a simple code to create a White-box test cases with 100% code coverage: 01 public class ShapeAreas { 02 03 public ...
jaggsharry's user avatar
2 votes
0 answers
94 views

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
1 vote
1 answer
1k views

As the title mentions, I'm using PowerMockito to test a class that contains an inner private class. The inner class has a constructor that has an 'int[]' parameter. Below is the code. final Class ...
user3050101's user avatar
0 votes
2 answers
881 views

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
0 answers
49 views

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
  • 12k
2 votes
0 answers
6k views

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
  • 595
0 votes
1 answer
2k views

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 ...
Fernando Barbeiro's user avatar
1 vote
0 answers
827 views

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 votes
1 answer
235 views

Can someone tell me if my whitebox testing is correct? Can I put 2 arrows entering for statement 8 ? Code being tested: Whitebox test:
SorryToDisturb's user avatar
0 votes
1 answer
414 views

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
1 vote
2 answers
5k views

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 ...
user3624146's user avatar
3 votes
1 answer
1k views

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
0 votes
2 answers
523 views

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, ...
a Learner's user avatar
  • 5,052
2 votes
2 answers
4k views

I got following types of white box testing list: Control flow testing Data flow testing Branch testing Statement coverage Decision coverage Modified condition/decision coverage Prime path ...
fatherazrael's user avatar
  • 6,027
0 votes
2 answers
78 views

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
1 answer
2k views

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. ...
Gloria Rampur's user avatar
0 votes
0 answers
421 views

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
1 answer
866 views

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
3 answers
135 views

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 ...
Anuj Kalra's user avatar
1 vote
2 answers
12k views

Hello everyone in these days i am preparing ISTQB exam and i am stuck with one of the questions. mock exam QUESTION 16 Question is ( originally copy paste) here: Given the following code, which is ...
limonik's user avatar
  • 499
1 vote
1 answer
1k views

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
1 answer
3k views

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 ...
Christian's user avatar
  • 6,480
4 votes
1 answer
2k views

When checking statement coverage for my code: double programme(double x, double y) { double z if(x>=5){ z = 15; } else if(x>=3){ z= 10; } else { z=0;...
Cormac Hallinan's user avatar
0 votes
1 answer
253 views

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
  • 697
0 votes
1 answer
88 views

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
1 answer
114 views

I was just wondering what is the difference between the statment coverage/decision coverage/condition coverage from the following code. public static void main (String args []) { char letter=' '...
user avatar
0 votes
2 answers
2k views

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
1 answer
2k views

We are studying various testing techniques in Software Quality Assurance course and i got confused when came across "basis path testing" and "control flow testing". Both these techniques apparently ...
mujtabaidrees94's user avatar
2 votes
5 answers
14k views

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
0 votes
1 answer
866 views

Suppose I have a function function f_createScriptElement(f_url) { var script = d[CreateElement](Script); script.type = "text/javascript"; script[Src] = f_url; script....
Swaraj Chhatre's user avatar
0 votes
1 answer
2k views

I'm new android testing and for a while I'm using Android test framework to test my code(with the help of ProviderTestCase2, AndroidTestCase, activityinstrumentationtestcase2,etc) I want to know what ...
Simz's user avatar
  • 15
1 vote
2 answers
3k views

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,813
2 votes
1 answer
880 views

I want to test a couple of functions in my source code with unit tests. Now If I run my test I don't get any test results. Here is a simple Code Snippet what I try to do: #include <iostream> ...
Kipcak08's user avatar
  • 323
10 votes
1 answer
1k views

The Art of Software Testing contains several references to "ON-units". Here is an example from the section on test-case design: Decision coverage usually can satisfy statement coverage. Since every ...
Matthew's user avatar
  • 29.4k
4 votes
6 answers
21k views

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
7 votes
2 answers
18k views

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
  • 341
1 vote
3 answers
4k views

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,588
1 vote
1 answer
519 views

I am reading a book where I am getting stuck at few white box testing concepts. The article in the below link is taken exactly from the book. http://testdesigners.com/testingstyles/ControlFlowTesting....
rockbala's user avatar
  • 2,373
0 votes
1 answer
562 views

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