Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.
Discussion List
How to stub fscanf?
I am trying to stub fscanf using stub callback but I can't get access to the variadic arguments within the callback function. Anyone knows a way to stub fscanf?
How to access private function from a stub callback?
I have a private function that needs to be called normally or needs to be stubbed depending on the test case. So, I either need to be able to apply the stub of the private function only to specific test case or be able to call the original private function from within the stub callback. Anyone knows how to do either?
Define Multiple Stub Callback Functions in a Single File?
Hello, I'm trying to use stubs with Dynamics Stubs Configuration enabled. All the stubs are created using "Create User Stub" option, and each are in Cpptest_Stub_(functionName).cpp files. The user manual stated that I should put Stub Callback functions in test suite files and define the stub logic there. However, instead…
How to use Parasoft Dynamic stubs #6
Hello Community, I am a first time user of Parasoft's dynamic stubs. I am evaluating this feature as an alternate to using Google mock. If I have several Eclipse projects all containing different code, but the code under test calls a common function and I want to create a stub for that function that can be used by all…
How to use Parasoft C++ Dynamic stubs
Hello Community, I am a first time user of Parasoft's dynamic stubs. I am evaluating this feature as an alternate to using Google mock. If I have a function: void Func3() { int b = 1; Func4(*b); Func5(b); } In my test case for testing 3 what is the appropriate Dynamic Stubs calls to have Func4 output the value of b to 5…
How to use Parasoft Dynamic stubs #4
On https://docs.parasoft.com/display/CPPDESKE1033/Working+with+Complex+Types, can you provide an example of the stub for Line moveLine(Line line, int xoff, int yoff); but using the “Basic Approach to Working with Complex Types”?
How to use Parasoft Dynamic stubs #5
Hello Community, I am a first time user of Parasoft's dynamic stubs. I am evaluating this feature as an alternate to using Google mock. Can stubs be created for functions in the same class (C++) or same the same file(C)?
How to use Parasoft Dynamic stubs #3
Hello Community, I am a first time user of Parasoft's dynamic stubs. I am evaluating this feature as an alternate to using Google mock. When generating stubs, does C++Test automatically generate the code inside the stub to support Dynamic Stubing or does have a human have to write the code for the dynamic stub? As an…
how to use Parasoft Dynamic stubs #1
Hello Community, I am a first time user of Parasoft's dynamic stubs. I am evaluating this feature as an alternate to using Google mock. If I have a function: void Func1() { int a = 1; Func2(a); a++; Func2(a); } In my test case for testing Func1, what is the appropriate Dynamic Stubs calls to validate the first time Func2…