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.

How to access private function from a stub callback?

nokoru
nokoru Posts: 19

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?

Best Answer

Answers

  • nokoru
    nokoru Posts: 19

    How do I go about adding stub via test case editor? I can't seem to find test case editor anywhere.

  • Mirek
    Mirek Posts: 141 admin

    @nokoru,

    Please right-click on the test suite in the test case explorer > Add New > Test Cases Using Editor