-
Setup problems
I have just started to test C++ coding standarts with using parasoft. When I open Hello World C++ project and try to test it, parasoft gives me setup problems. Hello World C++ project is a main example but this doesn't work correctly when I try to test this project. Error : C++test analysis errors in…
-
Error during parsing file
com.parasoft.xtest.standards.api.cpp.CppCodingStandardsFileChecker$CppCodingStandardsFailedException: Coding Standards checker: error during parsing file. at com.parasoft.xtest.standards.api.cpp.CppCodingStandardsFileChecker.runRules(CppCodingStandardsFileChecker.java:280) at…
-
CPPTEST_ACCESS_VIOLATION reported when test trys to read from data source
what could be the possible causes of this exception? the data source is there, column names are matching.
-
[WEBINAR] Introducing the new C/C++test Desktop (10.3.2) - what’s new and migration how-to
With the latest release of Parasoft’s suite of development testing tools, we’re introducing the C/C++test 10.x Desktop for C and C++ developers. The new desktop takes all the powerful test creation capabilities from the 9.x platform and combines it with the upgraded static analysis engine and advanced analytics of the new…
-
Integrating Parasoft C++ test tool to ARM DS-5 Development Studio IDE..?
****Hi, I have integrated c++ test tool to DS-5 IDE by using parasoft plugins and Imported the ARM example project (startup_Cortex-A9_AC5) in parasoft c++ test tool. Later I run the static analysis, it works fine. Then Generated Test cases but while running the unit testing for generated test cases getting error message "…
-
Moved: Is there a way to get the URL to a published DTP report immediately after running cpptestcli?
This discussion has been moved.
-
C++test skips files
Hi, I imported the ATM project example, then I right-click "ATM.cxx", Parasoft>Test using Parasoft Recommended Rules. But the file is skipped. How can I get it to scan the file? I'm using C++test 9.6. Thanks
-
cpptest warning report format
I need to create "text based" warning report from cpptest analysis. Is this possible? it seems that other formats are supported (e.g PDF and XML) , but not text. Any idea?
-
CPPTest 9.6.1.97 for Visual Studio 2015 Update 3
Hello all, I would like to know if Parasoft’s CPPTest 9.6.1.97 plugin works for Visual Studio 2015 Update 3. I tried running the static test but encountered setup problems pointing to errors in some of the include files in VS2015 such as xtr1common, xstddef and type_traits.
-
Flags for controlling cpptest.log output
Hello, Are there any flags that can be used when executing cpptestcli Static Analysis from the command line to suppress various messages from from the cpptest.log? For example INFO and DEBUG messages to NOTbe output to the log file.
-
Modify stub call parameters' values
Hello, I have a stub function like this: stub_func(uint8_t * data); (this is an output parameter). I need to modify the parameter in a unit test. I tried to set the value in this way: uint8_t ptrData[] = {0x1, 0x0, 0x1, 0x4}; CPPTEST_ON_CALL("stub_func")->Arg("data")->Assign()->UCharRef(ptrData); but I don't see the…
-
Unit test problem with original method stub files
Hello to everybody. I encounter a problem during the unit test of a software developed in Tornado environment with Vxworks 5.5 for a PowerPC embedded system. I import the project in Parasoft cpp test (in Eclipse IDE) with the wizard and the project compiles correctly. When I create the Unit Test I encounter a problem by…
-
DTP Engine - custom folder for user rules
Is there a parameter that can override the default user rules directory? By default - it's here: [INSTALL_DIR]\rules\user\ What if I want to put my user rules under version control and map to some other directory?
-
Test stops with message Setup Problem
Hi I am getting below errors while running a static analysis using cpptest. C/C++ code checker: error during parsing file (ignored - "Analyze files with parse errors" option is enabled). "/usr/include/c++/4.4.7/bits/cpp_type_traits.h", line 71: error: expected a ";" template This interface file is from tool and I don't…
-
Test execution: error linking test executable for Test unit for selected sources.
What is this error, what is the resolution for it? the error "Test execution: error linking test executable for Test unit for selected sources." comes while running the unit tests.cannot open output file C:\Aegis\Workspace.cpptest\Component_U\unit-data\current_tubf179707\Component_UTest.exe: Permission denied collect2: ld…
-
When are you planning to adopt VS2017
-
cpptesttrace --cpptesttraceTraceCommand setting
My build command, under Windows, use several different compilers toolchains (gcc, ARM, Microsoft VS), building several different components at once. I would like to collect traced commands only from particular compiler toolchain using cpptesttrace tool. The cpptesttrace trace/collect data from all toolchains (predefined…
-
Cannot start process. Executable not found.
Hi, When I run a c++ test with Parasoft (static analysis), I always get the following message: "C++test analysis errors in MyTest/MyTest/Source Files/MyTest.cxx 1. C/C++ code checker: general failure. Error: Cannot start process. Executable not found." Does any of the members know what may be wrong? Thank You.
-
Static report
Why are my files getting skipped and not checked while testing with the rules? [Static Coding standards 1/21 Skipped:21 Failed Runs:0 Violations found: 0 Number of Rules violated:0]
-
Creating a Rule for C code
A rule to identify this violation has to be created. "Every file shall have a file header. It should basically detail about information contained in that file in a specific format". Can we try adding a simple python method to do this? or is there a specific node method to be followed. For a template refer attachment
-
Resolving OutOfMemoryError: Java Heap Space or GC Overhead
Description: When running a Parasoft Test based product, you may see the error: "java.lang.OutOfMemoryError: Java heap space". or "An internal error occurred during: "Building workspace". GC overhead limit exceeded" Cause: This error occurs when Java runs out of memory. Resolution: To resolve this issue, you have two…
-
C/C++test Data Flow Analysis Performance Debugging Log
To get information about how long it takes to process each file and how long it takes to do each of the Data Flow (Bug Detective) analysis phase, set up the following flags in the Parasoft > Preferences > Technical Support > Advanced options (make sure Advanced options are enabled): CPPTEST_TIME_STATISTICS_PER_FILE=true…
-
Clean Parasoft Registry for C++test Visual Studio Plugin
When installing a new version of C++test on Visual Studio, it is recommended to remove the old version with the uninstaller since we can only have one version of C++test on Visual Studio. However, if the uninstallation is completed but when installing a new version of C++test, a error message displays that "Cannot install…
-
When attempting to generate C++ stubs, especially safe stubs, C++test attempts to compile user hea
Check to make sure the user has not redefined assert.h. In the cases that triggered this article the user had their own version of assert.h and the safe stubs build included that file rather than the standard C library file. The user version contained C++ code that the C compiler could not build causing a compiler fail.…
-
How to determine if an environment is supported by C/C++test
The post below assumes all the software and hardware requirements for host machine (where C/C++test is installed) on are met, which is a prerequisite for all testing with C/C++test. Please see the "Installation and Licensing" page in the C/C++test Help documentation for the detailed requirements. The information you will…
-
Unrecognized command line option "-m32"
This message occurs because C/C++test will implicitly change the compilation line to add the "-m32" compiler option for some compilers. This is generally not an issue, however sometimes the user is using a compiler that does not support this "-m32" option (This usually means that an "unsupported" compiler is being used.…
-
Unable to uninstall Parasoft Test 9.5 after uninstalling C++Test 9.5
uninstall issueI've had Parasoft test 9.5, C++Test 9.5 and dotTest C++ 9.5 installed and using them from VS 2013. We are upgrading to version 9.6 so I uninstalled dotTest, then C++Test. But when I try to uninstall Parasoft Test I get an error message "Cannot unregister Parasoft Test from Visual Studio 2013 because other…
-
File scope test with symbols in 2 .cpp files
I have the following: IWidget.h: class IWidget { virtual ~IWidget(); }; IWidget.cpp: #include "IWidget.h" IWidget::~IWidget {} Widget.h: #include "IWidget.h" class Widget : public IWidget { virtual ~Widget(); }; Widget.cpp: #include "Widget.h" Widget::~Widget() {} When I try to write a test for the Widget class, I get…
-
Links to test file locations
Following the paragraph "Executing Existing CppUnit Test Cases" from the C++_userguide I added test files into tests subdirectory of my project. The "Test suite file search patterns" is set to "${project_loc}/tests/*". The problem is that files in the tests directory which are linked to somewhere else are not executed.…
-
Running test executable on target device
Hello All, I have created a simple c application and test cases for that. Now i want to build test executable for that and run it on another machine through TCP/IP communication. Can anyone help me out with that as I am not able to generate test executable. Thanks
-
Information on project_loc variable
I am running VS 2008 with the integrated C++Test. Sometime when I run C++Test everything is fine, but other times, I have to remove the ${project_loc} and replace it with a hardcoded path. How and where is project_loc defined within C++Test? Not sure why it is getting overwritten or why C++Test can not recognize the…
-
Code Coverage other than Line Coverage
Is there an option in the parameter file that will allow for the running the code coverage to be something other than "Line Coverage", for example "Modified Condition/Decision Coverage"? If so what is the option? When running the unit tests can you have one pass of the unit tests report on all the types of coverage or do…
-
C++Test Rule for indentation
Checking indentation level for public/protected/private & switch cHi all, Does anybody have a C++Test rule to check the indentation level of public/protected/private keywords and switch cases? Our coding standard requires these to be in the following form: CODEclass MyClass { public: int foo(int x); protected: private: int…
-
Local pathnames in the .parasoft file.
Sharing projects and test assets through source control requires checking in a .parasoft file (if present) among others, but sometimes it contains local pathnames. For a number of technical reasons, when updating that .parasoft file, C++test will dump all (internally registered) properties (with their default values, which…
-
Parsing comment with RuleWizard
Hi, One of our organizational rules state that the file name shall be included in a Doxygen style comment, like the following: /** * @file filename.ext * * file_description */ I have created the rule to verify everything until the name of the file, however I wasn't able to check if the added filename.ext in Doxygen comment…
-
Runtime exception in the test case generated!
Exceptions in QString in the test cases generated...Consider the following code Snippet!! - Its a Qt based application... In one of the generated test case, we have: CODE ... .... const ::QChar * _arg1_0 = 0 ; /* Initializing constructor argument 2 (unknown) */ int _arg2_0 = cpptestLimitsGetMaxInt(); ::QString _text…
-
Timeout is normal
I have a piece of code that should wait on a semaphore for forever if everything is working OK. /*Setup threads and wait*/ sem_wait(&semaphore); //Wait for forever unless program termination is required. /*Case for exit conditions*/ and should only fail if one of the child threads releases the semaphore, meaning some…
-
LNK 2001 and LNK 2019 errors
link time error at test case compilationHi everyone, I would like to introduce you my brand new link time problem. And here it is. LNK 2001 and LNK 2019 errors. Here, you can find my ProjectConfigurations/LinkerOptions tab settings; At User Libraries combobox; LINKER OPTIONS /INCREMENTAL /NOLOGO /LIBPATH:"C:\Qt\4.2.1\lib"…
-
How to initialized QApplication object.
Qt auto generated test case do not playThe ability to unit test with QT headers and libraries is unique. Because without a correctly constructed QApplication object. The automatic test cases generated by C++Test may not run during test case execution, thereby showing no execution results. In order to properly test a QT…
-
How to examine data that was sent standard out
Data sent to standard out from a file1. Create a simple function that will accept two arguments, a filename and mode File: try.c -------------cut---------------------- /* try.c */ #include <stdio.h> /* the foo function will accept the name of the file and the mode as arguments*/ /* and pass the values to fopen, then prints…
-
Unix debugger
Is it possible to change the default debugger from gdb to ddd?
-
Function templates
Hello, I am having difficulty matching code patterns involving function templates using the rule wizard. It seems that context a(b) does not work when "a" is function template. Here is the template: template <typename object> void ptr_remove(const object*& to_remove) { if(to_remove != NULL) delete to_remove; to_remove =…
-
Unexpected paths?
Unexpected paths?What, by definition, are 'unexpected paths' ? From what I can tell, the manual does not say. I am speculating that, in the case of an if () {} else {} construct, the 'if' path is the 'expected' one and the 'else' path is the unexpected one. Is this the case? If so, where does this terminology come from?
-
C++ Test Data Source Generation Issue
C++ Test Data Source Generation IssueWhat headings do I need to use in a CSV file to enable setting of Buffer[0], Buffer[1], etc. for the following function: unsigned char CalculateChecksum(unsigned char *Buffer,unsigned char Length).
-
Question about coverage metric scc and mc/dc
I think when simple condition coverage(scc) reaches 100%, then the mc/dc will also be 100%, is this correct? if this is not true, does anyone have some code snapshots to illustrate? thanks.
-
How do I change the rule description in RuleWizard
Change rule description in RuleWizardRight click in the rule area not on any of the elements and select Properties. This will bring up a window from which you can edit the rule description, severity, ID, author, language (C or C++), and the heading.