The most recent content from our members.
In one of the functions, one portion of code looks somewhat like below, somefun(){ int a=1; if(a!=1){ cout<<"this is executed"<<endl; } } how can i have the cout executed from the test suite.
For example, class A has a public function foo(). class A { public: int Foo(); } I add the stub like this: void CppTest_Stub_Foo() { CPPTEST_STUB_CALLED("A::Foo"); int __return = 0; if (CPPTEST_STUB_HAS_CALLBACK()) { CPPTEST_STUB_CALLBACK(int __return, const A __this); CPPTEST_STUB_INVOKE_CALLBACK(&__return, this); } } But…
I'm trying to write a test that runs through a C++ class that tests a persistence counter. Is there any way to set up a Data Source or Parameter block so that the class memory is not wiped between step calls? I've tried putting in multiple Call blocks, which does at least get me to the end of the logic, but doesn't allow…
Getting Error[Li006]: duplicate definitions for APIs in .o file. Help me out to resolve this.
Hi parasoft family, Do you know whether or not parasoft c/c++ test encompass data and control coupling? Best Regards, -BA
Hi great parasoft family First of all I wish good and health days, I really need help,the errors and warning as follows, C/C++test analysis errors in /deneme09042021 1. Test execution: error linking test executable for Test unit for selected sources. error #10198-D: no input section is linked in warning #10202-D: no…
I have a C++ project that is built in Eclipse with GCC/G++ compiler. The project can be compiled successfully and run without problems, but when I try to perform static analysis via cpptestcli, the report generated show the following error: ........./ConfigMgr/Common/ConfigParser.cppBugDetective checker: could not build…
hi, I am using c++ test 10.4.2 in VxWorks 7. in my project I am using atomic operations (using the #include <"atomic">, if I remove the atomic there is no issue) the project compiles in the VxWorks but once running the c++ test on the project I am receiving the following setup error:
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?
Hello everybody, I have a problem when i want to execute unit test cases on a folder of resources. I generated the test cases and tried to execute them, parasoft tells me there are 32 files in scope of the tests, which is correct, but it does not execute any testcase. I copied the generate unit tests and run unit tests…
It looks like you're new here. Sign in or register to get started.