-
VS 2017 help
Hi, I am using VS2017 and installed Parasoft C++ test v10.4.2 and after installation the Parasoft still doesn't appear in the menu/ What can be the reason for that issue? Thank Sharon
-
ERROR: Error: No valid license (MachineId: LINUX2-188da250)
Recently we migrated our build machines from RHEL 6.9 TO rhel 7.9. After this we are unable to run static analysis. Even in RHEl 6.9 machine, we hit the same issue given below. ERROR: Error: No valid license (MachineId: LINUX2-188da250) We use parasoft/cpptest/9.5.6.26/run_sa_par.sh. Kindly
-
linking failure while running unit testing: cannot find -lstdc++
I'm getting the following error while trying to run the generated unit tests: [cpptest_testrunner.cpp] Checking dependencies for C:\Users\userid\myworkspace.cpptest\project\unit-data\current_tubf179707\cpptest_testrunner.cpp ... [cpptest_testrunner.cpp] ...done. [cpptest_testrunner.cpp]…
-
Structural code coverage with Code Composer Studio
I try to carry out structural code coverage with Parasoft code composer plugin I am using Code Composer Studio v8, My target has Flash memory (KB)=32 , RAM (KB)=12. Parasoft C/C++ makes static analsys very well (And also Visual studio plugin works very well) but when I try to carry out " Run TI CCS v4+ application with…
-
Data and Control Coupling
Hi parasoft family, Do you know whether or not parasoft c/c++ test encompass data and control coupling? Best Regards, -BA
-
error #10010: errors encountered during linking;
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…
-
generating BDF files.
I have an ubuntu1804 system, I am using docker for Parasoft integration with Jenkins. The Parasoft version I use is "parasoft_cpptest_standard-2020.1.0-linux.x86_64.tar.gz" and I have a flutter project and I build a project with Makefile's make commands. I have a DTP server connected and when I try to run cpptestcli…
-
Functional testing in Parasoft
Hello Everyone, I would like to test in Parasoft the whole functionality - not the single file but e.g. 2 or 3 files working together as a black box (these files exchange data using some internal c interfaces). Of course I will provide some inputs using stubs and check the outputs on the other side but I don't want to test…
-
Parasoft Clion Support
Hi, May I plug Parasoft with Clion IDE. Is it possible?
-
Help with error: IPro: could not get list of included headers
Hi, We have a project that we want to analyze. We used the cpptesttrace tool to create the bdf file, but when running the cpptestcli tool using that bdf file - we got this error: ' IPro: could not get list of included headers'. The compiler is ceva and it's been recognized as 'gcc_5-64' (using the detect-compiler). The bdf…
-
Best Way to Learn C++
Hello All, I am looking to best c++ course and I am confused to choose the right one as a beginner point of view.
-
fatal error C1083: Cannot open include file: 'vector': No such file or directory
Hi: I am using parasoft cpptest standard to do static analysis for my visual studio project, when I run it in command line, it should it can't find the system headers like stdio.h, vector etc. I already put the vc include path into system path, but it seems not working, any ideas? thanks. "C:\Program Files…
-
Static Analysis with Bazel
Hi, I have a project using bazel for the build system. Unfortunately, it looks like the trace functionality doesn't work with bazel. I've been searching around and haven't found any solutions for handling this case. Is there a suggested way to incorporate static analysis into bazel builds?
-
Generate Unit test
I have a question. when parasoft generate test for input argument.what is the procedure of generate values to test argument.for example consider func foo1() int foo1(int x) { if (x < 10) return 1; else if (x >10 and x < 20 ) return 2; else if ( x > 20 ) return 3; else return 0; } for test x values that may be generate is :…
-
Unit test Generation method in Parasoft
hello every one.. it is my question...is unit test generation in parasoft based on decision path in function or not , only based on Input value of function? in the other word i want to know parasoft in unit testing consider the decision path and condition statements and generate test case or not only Input argument are…
-
secondary report generated
The current automated process is configured to provide the analysis reports in html format. Is there a solution available to generate a pdf formatted report in addition to the current html, at analysis-run-time? If NOT, what is the mechanism to access and use (off the standard package) the embedded pdf-converter so that…
-
Professional plugin @Eclipse: project environment variable(s) made visible to Parasoft plugin
I have defined a project environment variable (USER: CONFIG type, via [ Project > Properties > C/C++ Build > Environment ] ) that is supposed to be dereferenced inside the "Build data file:" configuration, as follows: PATH_TO_BDF = BuildOutputs/parasoft ${project_loc}/${PATH_TO_BDF}/cpptestpscan.bdf It seems that "Parasoft…
-
Import Test Configuration from Rule Names
Is there a means to import a file that has a list of the rule names, i.e. BD-API-NEGPARAM, to create a test configuration?
-
C++ test Report: Could not build Analysis data
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…
-
gitlab C/C++ static code analysis integration
I saw that gitlab integration is supported, but I cant find any documentation about it. Could you provide me information how it is done? I would really like to use this tool, because it has a full support of CERT C rules.
-
How to install C++ Test Professional on multiple IDEs
We have C/C++ Professional. It is currently installed on TI Code Composer Studio IDE. I would also like to have it installed on NXP S32 Design Studio. How can this be done?
-
Setup error
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:
-
Report Generation Parasoft GUI
I wish to store reports from Static Analysis, Test Case Execution etc. automatically in seperate locations using properties file. Is it possible to do this in Parasoft Eclipse Plugin? Does report.location parameter apply for GUI as well? Greetings, Tejashree
-
remove() may lead to race conditions
Hello, I'd use the function remove() in order to delete a file in my project. I tried also with unlink() but I have the same violation: Usage of functions prone to race is not allowed (SECURITY-19-2) This file removal is in the main thread, so I can suppress that rule, but it will be nicer if I will found an alternative.…
-
Tasking - running UT on simulator
In the "Run Altium TASKING CTC Tests" configuration there are couple of steps that I don't really understand: Here is what we see in customer's console log: ...done. Copying file... "C:\work\unit_test\megartos\MConfig" -> "C:\Users\bhopkins\parasoft\workspace.cpptest\vdm_x2_proj\unit-data\current_tubf179707\MConfig" Source…
-
Display code coverage for CppUTests
My Goal: My project consists of three C++ libraries and a set of existing CppUTest tests that unit test the classes in those libraries. My goal is to see the code coverage, in the libraries that is caused by running the CppUTest tests. The libraries and test are built by CMake. This is in a CentOS-7.2 Linux environment.…
-
Rules Suppression Question, Source of a warning from a #define MACRO.
Question: Can we place the suppression in the MACRO and will the Parasoft tool recognize it, and suppress the warning in consuming .c files? We are struggling to get this construct to work. We want to be able to suppress the warnings from where the Macro is defined in the header file, instead of having to modify 1000's of…
-
Missing CWEs from security compliance pack
I'm trying to configure custom tests for C/C++ static analysis. I'm using Mitre CWE's library and some are in the CWE Top 25 + On the Cusp 2019. I do have the Security Compliance pack installed. However, some CWE which are listed on the Top 25 + On the Cusp 2019 are not shown in the rule tree in test configuration. For…
-
Collect Stub Information Fails To Find Identifier
Hello, I am using Parasofts C/C++ Test in an embedded environment; * IDE: Code Composer Studio v8.2.0.00007 * Device: TMS320f28075 * Compiler: ti-cgt-c2000_18.1.3.LTS * Product: Parasoft C/C++ Test Professional 10.4.2 Whilst trying to run the built in "Collect Stub Information" operation Parasoft cannot find certain…
-
How do I define the execution sequence of the test cases in a test suite?
I need to run test cases in order. How do I do that? I have tried ordering the macros and the testcases in the testsuite source file but that didn't work.
-
Support for unit tests using Green Hills development tools for a PPC target?
I need to run unit tests on my target system (custom, using a PPC core.) We are using the Green Hills dev tools to build our production code, and I need to integrate the C/C++ Code into that build system. I'm down to two unresolved externals: cpptestTestCaseSlave() stubCallInfo() These are directly referenced by my unit…
-
Unitary test dedicated Team?
Hello, whaht is the advantages/desadvantage of dedicated unitary Test Team? what is the better that developers do the unitary test or dedicated team to do it? best regards Atef
-
Highlight "Not covered conditions" not working.
Having both covered and not covered selected shows no highlight at all. Having only not covered selected shows no highlight as well. Having only covered selected shows highlight. What is going on???
-
Undefined Reference to CPP Test Functions
Hi, Im running into an issue with CPP Test, it seems that whatever i try when running unit testing i get 'Undefined Reference to cpptestTestSuiteBegin and an array of others, ive checked all the settings against the install guide and it seems to be correct. Im running Parasoft C/C++test Professional - Version:…
-
Missing "proceed" button at the bottom of the test panel. Why?
Hi, After "successfully" building a test application, running it, then loading the tlog and clog files using test configurations, the bottom of the test panel shows no "proceed" or "configure..." buttons and I can't get the report to appear. Why is that?
-
ArrayList and LinkedList in Java
Hello Everyone, I am confused to understand why does ArrayList takes more time to insert elements at the beginning than LinkedList in Java? Can anyone know the exact comparison between ArrayList and LinkedList?
-
How to stub fscanf?
I am trying to stub fscanf using stub callback but I can't get access to the variadic arguments within the callback function. Anyone knows a way to stub fscanf?
-
How to access private function from a stub callback?
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?
-
Test cases are not executed
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…
-
Maven install errors
while installing plugin https://docs.parasoft.com/display/FINDS/Parasoft+Findings+for+Jenkins i got 2 errors. i'm not able to understand how to resolve it? [FATAL] Non-resolvable parent POM for com.parasoft:parasoft-findings:10.4.5-SNAPSHOT: Could not transfer artifact org.jenkins-ci.plugins:plugin:pom:3.49 from/to…
-
cpptestcli does not fail if a test suite has a compilation error
When using cpptestcli from the Processional version of C/C++test, I've noticed that if a test suite has a compilation error, no failures are generated by cpptestcli and the other test suites are executed. The only way to determine that a test suite didn't run is by looking at the number of tests executed. When ruining unit…
-
how can i run unit test on xillinx SDk ?
hi , i want to generate and run unit test on a target based on Zynq 7000 chip(Zybo) with xillinx SDk tools. I know that this platform is not supported by parasoft c++ test by default, but i want to know how i can do it.please hep me. thanks a lot.
-
Custom compiler with cpptestcli
Is there a way to specify the custom compilers path when using cpptestcli from version 10.4.2 of the professional edition? I've tried setting the value in the Parasoft/Configurations screen and then exporting the localsettings with Configurations selected, but no values are exported. We would prefer to not have to manually…
-
How do I create a custom static analysis rule to check that a variable is of a certain data type?
More specifically, how do I check that the variable in an if condition is of a pointer type, when the variable is a pointer dereference? I have tried "left hand side:variable" > "filter:pointer", "left hand side:variable" > "type:pointer" and "left hand side:pointer", and none of them works. This rule wizard is proving to…
-
How do I create a custom static analysis rule to count the number of pre-compilation directives?
Hi, how do I create a custom rule to count the total number of pre-compilation directives in my entire software using the Rule Wizard? I had spent an entire day attempting only to fail.
-
Bitfield not compliance with MISRA 2012
Hello, I try to wrote this struct : struct toto { _Bool TEST : 1; }; But Cpptest tell me that TEST should be a int signed or not following Rule 6.1. But Misra tell us that it is allowed to use _Bool. So what's wrong ? Thx.
-
Parasoft plugin 10.4.3 for visual studio skips all files
I was using 10.4.1 previously and had no issue with running static analysis. However, once I updated to 10.4.3, all the tests skips all the files, checking 0/0 files. Is there some incompatibility between the 2 versions or is there some necessary steps to be taken for updating from 10.4.1 to 10.4.3?
-
MISRAC2012-RULE_1_1 Compliance Pack settings for C99
Hi, There are two sets of rules for this Rule: two for C90 and two for C99. I am developing my program using C99 standard. Shall I unmark the two C90 rules and leave only C99 rules? (both 4 are marked by default) Thanks, Ritchie
-
Trouble executing with stubs
I've made a couple of stubs using the "Lesson 15: Configuring Stub Behavior in Source Code" chapter in "C++test Host-Based Unit Testing" guide. After running "Collect Stub Information" I created User Stubs for the functions I needed to stub. Trying to execute my test case give the error: function…
-
Memory test cases using Parasot C++test
I am looking for creating unit test cases for memory testing especially checkered box or galpat test. I did research in parasoft documentation however there is no such example. Did anyone got to create any tests using parasoft?