-
Report Count and GUI Count Inconsistent
I am running Static Analysis across an entire workspace worth of projects with some key characteristics: Eclipse: Kepler Parasoft: 10.3.4 Number of Projects: ~160 Number of Files: ~ 1000 .c/.cpp and ~1000.h Configuration Properties: 1. Limit is not set on number of violations per rule 2. Check box for "static/Flow Analysis…
-
Parasoft Static Analysis Jobs are Inconsistent
Hello, I am running Static Analysis across an entire workspace worth of projects with some key characteristics: Eclipse: Kepler Parasoft: 10.3.4 Number of Projects: ~160 Number of Files: ~ 1000 .c/.cpp and ~1000.h Configuration Properties: 1. Limit is not set on number of violations per rule 2. Check box for "static/Flow…
-
Inconsistencies in Counting Inside Static Analysis Report
Hello, I am running Static Analysis across an entire workspace worth of projects with some key characteristics: Eclipse: Kepler Parasoft: 10.3.4 Number of Projects: ~160 Number of Files: ~ 1000 .c/.cpp and ~1000.h Configuration Properties: 1. Limit is not set on number of violations per rule 2. Check box for "static/Flow…
-
C/C++ Unit Test runtime error (Keil, ARM, CMSIS)
Hello, we used the QuickStart MDK-ARM unit test example and applied it to our project. We are using Keil uVision 5.26.2 with Parasoft C/C++ Test 10.4.1. The project builds in Keil and executes on the target without any issues. The Parasoft project (Keil uVision import using Batch File output) is setup for Static Analysis…
-
auto-generate test for an individual unit within a module (C/C++ 10.4.1)
Hello, I am able to auto-generate test cases at a module level (c-file) by using the Generate Unit Tests (Generation, say 3 test cases per function). This generates test cases for all units within the module. Is there a way to isolate and generate test case of a single unit (function) within a module? I'm using C/C++…
-
Error reading test log for Test unit for selected sources.
I build my unit test from eclipse base ide ds5 (Build test executable - generic embedded system ) then ı take ' test log for Test unit for selected sources' error. How can I Solve this problem? Could you give me quickly answer? Thanks
-
Error reading test log for Test unit for selected sources.
I build my unit test from eclipse base ide ds5 (Build test executable - generic embedded system ) then ı take ' test log for Test unit for selected sources' error. How can I Solve this problem? Could you give me quickly answer? Thanks
-
Merging test coverage status across tests in different projects
We have source files in a common library project that contain functions called by source code in other projects but we only have Integration Tests for Project A and Project B: Project CommonLib – contains a function common(int c) Project A – contains a function a() that calls common(0) Project B – contains a function b()…
-
AUTOSAR C++14 release version?
Which AUTOSAR C++14 release version does the tool support?
-
Default host-based unit testing with DS5
Hi, I have no embbedded support feature that is my license does not contain this feature. Therefore I want to run my unit test via "Default host-based unit testing" option which is shown in the attacehed DSC_0103 image. Firstly I create autogenerated unit tests. then I want to run them. When test file is excluded from the…
-
Line suppression in the source code
When we want to suppress a violation in the source code, is it okay to add a comment '// parasoft-suppress...' that is "not" in continuation to the line we want to suppress? Can we insert the comment on top or split it in multiple lines, for the suppression to work? The reason I ask this is because we use a tool that…
-
Should we check for a return statement for void function? Is this critical and affects the quality?
Similar to AUTOSAR rule A8_4_2-a (All exit paths from a function with non-void return type shall have an explicit return statement with an expression), should we also check for a return statement for void function? Is this critical and affects the quality?
-
DS-5 Unit Test Execution
I am working with Arm DS-5. I use Eclipse IDE for Arm DS-5 I use Arm C Compiler 5 and I use cortex A9. I easily generate unit test via generate unit test feature of Parasoft. I can reach generated test from Test case explorer. But I can not run these test. When I run the tests, the console part of IDE does not affect.…
-
Adding new Rule via RuleWizard
Briefly, I want to learn RuleWizard to create my rules via RuleWizard for Static Analysis in C/C++Test. But I have an issue about it. For example, I want to check a case which is given in below. void Trial(INT32U x){ //violation ( bracket should be put in new line not after the function) ... } void Trial(INT32U x)…
-
Keil UVision Parasoft Plugin
I work with Keil uVision v5 ide and I want to plugin yhis ide to parasoft. But I think this ide is not eclipse based. Therefore when I run the installation about parasoft c++test eclipse plugin setup file and proccess ended parasoft view does not appear on toolbar of keil uvision ide. How can I plug Parasoft with Keil…
-
Disable Static Analysis violation to 1000
Hi , Today when we scan to Parasoft with MISRA C 2012 Rules , we have a limit of 1000 Violations. How can remove the limit ? Thanks :) Chen
-
Configuring the Jenkins Global properties through powershell
I want to run automated selenium tests on different browsers and would like to pass the browser through as a parameter in my PowerShell script that triggers the tests to run. The browser is currently determined by the value of my 'Browser' variable in the global properties in Jenkins. Is there a way to assign the value…
-
Is it possible to ignore compilation flags that block (try-catch)
Hi, C++Test 10.4.1. IAR compiler. Is it possible to ignore compilation flag that ignores blocking try-catch flag. Is it possible to writes rules that ignore such blocking try-catch flag. Thanks
-
Can Flow Analysis be performed across multiple Eclipse projects?
The project code (C/C++) is structured into multiple projects. To create the program, 1 very small project is the executable and that links to a number static libraries. The libraries then reference each other. The Flow Analysis will flag many "function is not used in the testing scope" errors as, apparently, the scope…
-
Using Parasoft gcc7
Hi, I'm trying to understand if I'm able to use Parasoft C/C++test. My understanding right now is that I can not use Parasoft with my gcc7 C++ source because Eclipse currently does not support gcc7? Any information is much appreciated. Thanks, Steve
-
Misra rule violation shows up when not running static test on full project
Hi, when running static analysis with misra rules we get a lot of extra rule violations when running the analysis on a single module (single folder). The rule 20.9 "macro might not be defined" accounts for all of the extra violations. When the analysis is run on the full project, these do not show up. The project was…
-
Different result outputs while running Unit Test on full project
When we run a Unit Test by selecting our project in Eclipse it generate different result for each run cycle. e.g. sometime ‘Function A’ is reported to be failed and sometimes ‘Function B’. We have fairly large codebase and it's all C/C++ code for ARM platform.
-
Stubbing functions which are not declared in header file
Is there any way to stub a class member function which has been defined in CPP files completely. The code is very old and we cannot modify the structure of code for the sake of unit testing.
-
Test-Case Execution
Hi @Bogdan Czwartkowski @Mirek , Currently i am working on the ADSP_sc584 ez board. i am able to generate the test cases .but when i am running the test-cases i am getting error which i have attached in this discussion. i've created custom compiler and my base compiler is : Analog Device C/C++ compiler 7.0 for SHARC .…
-
Test case generation
Hello @Mirek , i am facing issue to generate the test case which is integrate with the SHARC Processor ADSP-sc 584 EZ board. not able to generate the test cases even i had created the custom compiler also, i am getting this error which is attached in this Discussion. please help me out and give me some solution as soon as…
-
Code coverage on static library
Hello, I'm working with Parasoft C++test 9.5. I have two projects: -one to build a static library -one to build a main program to be linked with the static library I succeeded to do code coverage on the main program only, but I don't know how to do code coverage on the static library as well... How should the static…
-
C++
I want to learn c++ language but I do not understand from where will I start from?
-
Auto Test case Generation
Hi @Mirek @Bogdan Czwartkowski I have a general query for auto test case generation. On which basis, C++ test tool generate the test case . How to identify from where it is taking the input for test case generation .
-
IAR Embedded Workbench Support - Details
Hi, Parasoft C/C++test Professional 10.4.1 . Regarding IAR support. I understand the support in compilers , but how it supports in environment , according to: https://docs.parasoft.com/display/CPPDESKE1041/About+EWARM Can the product support IAR IDE ? Thanks
-
Modify value of output parameter in Test Case Editor ??
Hello, I have a stubbed function like this : int StubFunc(short * param) (Which is supposed to store a value at the address pointed to by param, so, an output parameter) In order to correctly cover my code, I need to be able to modify the value of param when a stub call is made like the original function would do. However…
-
Debugging UT with GDB unable to find libcpptestruntime64.so
After following the Parasoft guide to debugging a test with GDB on 64-bit Ubuntu 18 (https://docs.parasoft.com/display/CPPDESKE1040/Exercise+15+-+Debugging+Unit+Tests+With+GDB), I'm having an issue where both GDB and Eclipse's built in debugging are not launching properly. In both situations it seems that there's an issue…
-
Unable to generate stubs
Hello, I've integrated the Parasoft plugin into Atollic TrueSTUDIO - an eclipse-based IDE for developing ARM cortex devices. I am attempting to generate unit tests and stubs as a file scope configuration, however it results in a lot of setup problems: Test execution: error preparing instrumentation / symbols data for…
-
About Stub function
Hi everyone, I am a newbie here and I surfed lots of articles in 'help contents', but still got little sense about stub functions. Suppose that I have a source data library and use it in a Test Case writen by my own. And I want to know more information(for instance, the variable values calculated in one section inside the…
-
Is there possibility to create Cobertura report ?
Hi, Is there possibility to create Cobertura report ? to the static analysis reports ? Thanks
-
Violation Report
Hello every one, i need one help while generating the report for static analysis. i ran the static analysis with MISRA C 2012 safety standard compliance rule :-it reported 2025 violation. while i have imported the .BDF file of same source code then i ran the static analysis then it reported 2030 violation. i checked both…
-
IDE License Release
We noticed that when we deactivated the license from within the Eclipse IDE plugin for C/C++test, the license is not released on DTP. It appears to hold onto that session for about 10 more minutes or so, before it is released. Is that the expected behavior? If another user were to come in and that deactivated license was…
-
.bdf file creation.
how to create bdf file in parasoft c/c++ test 10.4. i am not able to understand also i refer the user guide. so anyone please help me on the same with example. i had run the following command but i am getting error. [princekumar@localhost src]$ cpptesttrace…
-
Ruining c++ from Eclipse - /usr/include/c++/5.4/string:38:28: fatal error: bits/c++config.h: No such
Hi, I created a simple C++ Hello world project under eclipse on Ubuntu 16. I run Parasoft from the GUI. Where should I update the path for parasoft ? Thanks
-
How to test multiple classes within a project?
I am testing a project that contains multiple classes. I have generated a stub file for the project to cover all calls to methods in other projects and I have generated stub files for each class where necessary to cover calls to other public class methods within the project. When testing the project, this approach does not…
-
CPPTESTCLI - Is there support for IAR project under Windows ?
Hi, IAR project under Windows , Is there support for cpptestcli command line for IAR ? Thanks
-
OutOfMemoryError : How to increase the memory for C/C++test Standard
If you see an OutOfMemoryError in the cpptest.log, you might need to increase the max heap memory for the analysis: install_dir/etc/cpptestcli.jvm In this example we suggest doubling the size of the heap.
-
How to obtain and display multiple code coverage types
C/C++test Professional supports many code coverage metrics. You can see the list of all metrics enable any of them in your Test Configuration: You can review and enabled all required coverage metrics. Be advised that adding more instrumentation affects the size and performance of the test executable. After you executed the…
-
Unable to specify cpp sln to run Parasoft test on command line
Hi all, I tried to run parasoft test on command line with the following commands but failed to do so, can anyone advice me on this? it returns >> Option -solution is not supported. Use -data instead And how do I use -data command? I try to use -data and point to the path directory (ie -data "C:\XXX"), and it is able to run…
-
Stubbing out Internal Functions inside Static Library
My code under test calls another function, I'll call function A. Function A lives in a linked in static library called SL. Function A inside SL calls Function B directly which also lives in SL. I want to stub the call to function B. In this configuration, is this possible? In more general terms, can I stub an internal…
-
Stubbing Fails to Find Functions
I ran the "Collect Stub Information" Built-In test configuration on a project. Inside this project, there are a series of both static and non-static functions. However, when I run that test configuration, it fails to find any non-static symbols (functions). What, if anything in terms of code or project configurations,…
-
What specific functionality does the "Instrument Selected Source File(s)" Check Box have?
By default, when a file is imported into an Eclipse Project, this box is checked. I have looked in your documentation to try to get a specific idea on what "Instrumentation" means and what impact it will have on things like code coverage, static analysis, stubability, etc. For example, if I don't want a file included in…
-
Copy Constructors and Copy Assignment Operators Static Analysis Rule [MRM-49]
Rule: MRM-49-3 --> A copy constructor and a copy assignment operator shall be declared for classes that contain pointers to data items or nontrivial destructors. This Static Analysis rule requires that I have to adhere to the Rule of 3 (now rule of 5 if moves are included). We have a destructor defined, but not the copy…
-
Why Disable Parasoft extension doesn't operate on VS 2017
I am trying to disable Parasoft ext on my VS 2017 , Parasoft extension on VS 2017 doesn't disable . even after VS restart.
-
Parasoft support for Oracle Java in 2019 and beyond
Beginning in January 2019, Oracle will no longer release updates to Java 8 for commercial use (see https://www.oracle.com/technetwork/es/java/javase/documentation/eol-135779.html). Some Parasoft products (SOAtest, Virtualize, C/C++test, and DTP) currently ship Oracle Java 8 as part of the installation. As of January 2019,…
-
How to customize Quality Tasks eclipse view.
Quality Tasks view can be customized to report static analysis violations and test results. By default, the Quality Tasks view is showing the hierarchy starting from file level: If you'd like to display the violations by any other criteria (e.g. Severity ), then you can customize the view by following those simple steps:…