Reset RunId inside Dynamic Stubs

choner22choner22 Posts: 15

I am running Unit Testing in the following environment:

Eclipse: Kepler
Parasoft: 10.3.4

I am using dynamic stubs to do unit testing. I am calling the same function multiple times inside a single test case, and that function calls additional sub-functions that are stubbed. I know that I can set the Run Ids to control the return value of those sub-functions from the test suite on the first call, but I would like to reset the RunId call count each time I iterate over the loop and call the function so I don't have to have multiple CPPTEST_ON_CALL statements for each function for each iteration to set the behavior.

Is there a mechanism inside Dynamic Stubbing that will allow me to do this?

Sign In or Register to comment.