Submit and vote on feature ideas.

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.

Reset RunId inside Dynamic Stubs

choner22 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?