-
API to build a virtual asset from component virtual assets
Hello, I would like to build a virtual asset using APIs from two or more component virtual assets. Please advise. Thanks.
-
How should regex suppresion be used?
The C/C++Test Parasoft tool gives various ways of suppressing alerts. One of them is to define a regex pattern, which is matched on every analyzed code line. Unfortunately I have trouble using this functionality. I want to supress alerts produced by some macro: define FOO syslog ... I included following lines in my…
-
Setting Flow Analysis Depth without DTP
Hello, is it possible to set the Flow Analysis manually, without the DTP server? The guide only speaks about setting it through the server.
-
Configure Proxy for DTP
Hello, I am using the C/C++Test commandline tool, and I have configured the cpptestcli.properties file to connect to a DTP server. Unfortunately, a connection is not possible, as the server is only reachable through a proxy. I searched for proxy settings, but found only proxy configurations for the used JRE…
-
how to generate local variables in the test cases and test code dependent on local variables?
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.
-
"incomplete type is not allowed" error when generate the Unit Test case
In my project,there is one cpp file used two .h files.The files are like attachment.When I execute Generate Unit Tests command,it shows an error like this: "/tools/Kepler8.2/kepler/kepler-sdk/0.2.16202.0/kndk/platforms/0.2/x86_64/usr/i [C/C++test] [tuner.cpp] nclude/apmf/dso.h", line 35: error: incomplete type is not…
-
stm32 generate unit test cases and run
I'm encountering errors when attempting to perform unit tests on an STM32 project![] . The issue seems to stem from xHarness not recognizing .obj files, resulting in an error message stating "line 1: error: unrecognized token." I've included the error details for reference. help me with this
-
use __va_list_tags instead of va_list when autogenerate unit test case
In my code there is a function like this: static void vhal_log(const char *file, int line, const char *tag, int level, const char *fmt, va_list args) the last param args is a va_list type.But when I use builtin rules:Generate Unit Tests to auto generate unit test case for this function, the result like this: struct…
-
Using GCC Linker and options are not recognized
I am using Parasoft 2020.1 and in my project I am using a .BDF file. The compiler family is the GNU GCC 4.9.x. The problem I am having is when I put in a linker option it is not being recognized. My current state of my project the Static Code analysis is working and so is Stub Generation. But when I run a unit test during…
-
My parasoft test check un-reachable code, how to disable it?
I get misra2012 errors from code that is not suppose to be compiled. for example - returns it is a fact that only 1 line can be in the compiled code. thus parasoft test shall return only 1 error. but for some reason I get 5 errors, no matter what is the defined value. how to disable this behavior?
-
Best and Fastest way to do assertions
I would like to know what other people do for validations for large result set's (Service 1 and Service 2). If I have a a message with over a 100 values I want to validate, instead of doing it one by one using JSON or XML assertor, what do others do? I have used XSLT in past to get both messages into same format and then…
-
cpptesttrace: command not found
I have used Ubuntu OS and tried to create bdf file with command cpptesttrace. But it turns out like cpptesttrace: command not found. (I have already added PATH in .bashrc as well) Here is the command I executed. $ projectName=test1234 $ bdfOutPath=$gitHubWork/$projectName.bdf $ rm -rf $bdfOutPath $ cpptesttrace…
-
When installing Parasoft, the option to install the Visual Studio plug-in is not shown
First off, I hope that this is the correct forum. I am referring to the static code analysis tool, which we just refer to as Parasoft in our team. I am following a How To guide, complete with screenshots, which shows the option to install a plug-in into VIsual studio. I do not see this option. Can anyone advise?
-
Testcase iteration for assertion validation
Hi all, Using scripting how to iterate the testcase for performing validations for Assertion for error codes , my requirement is I would be creating a custom assertion code using groovy where it will be fetching the errors codes from writable datasource ( where we will be storing 10-20 api error codes) . Now once the rest…
-
MakeFile connect problem
I want to proceed with the project static analysis in the built-in version of visual studio. IDE has been delivered to MLXIDE (based on eclipse) and compiler information to eclipse 4.3, and there is an error that does not currently receive #define content. As the header file containing #define content is #included and…
-
Unable to get code coverage report from parasoft
Hi there, I have followed this guide to generate the unit test cases and static analysis https://docs.parasoft.com/display/JTEST20232/Testing+and+Analysis+with+Ant There is this part about getting the coverage which I have attempted and unable to retrieve the code coverage in terms of a report. So do I need to run jacoco…
-
Stub function are not executing.
In our test application, We have multiple test suits, We created stub for mq_timerecived function used in file many source file. When we executed test application, Stub is called only on 1 test suites and for other test suites even though we registered Stub callback function in test cases, Its not calling stub and stub…
-
unknown target 'gcc_ntoaarch64'
While running the Unit Testing for QNX app I am facing the below issue: * Test execution: error linking test executable for Test unit for selected sources. cc: unknown target 'gcc_ntoaarch64' cc: targets available in C:/Users/t0075a4/qnx710/host/win64/x86_64/etc/qcc/gcc: 8.3.0,gcc_ntoaarch64le 8.3.0,gcc_ntoaarch64le_cxx…
-
Why does the C/C++ test link to files not in scope when running unit test (file scope)?
I am following the instructions at this link: https://docs.parasoft.com/pages/viewpage.action?pageId=134835090 I am doing a unit test only on a single file selected in the project explorer. I am creating stubs for this file and then running unit test. However, on executing run unit test (file scope), the C/C++ test is…
-
Changing compiler options in settings
I'm trying to use cpptestcli for Unit Testing and I need to add the -DCPPTEST_THREADS=1 option during compilation. The documentation only describes how to add this option inside the IDE and for a single project, but by exporting its build settings and by locating the property to modify I managed to use it on the CLI by…
-
Cannot connect to license server error
Hello, I have the setup, where I'm connected to the RedHat server from my Windows machine through the Visual Code. I am using the OIDC authentication to connect to the parasoft license server. When I run the parasoft docker image from the RedHat server, the license is obtained from my employers server, but when I run the…
-
Software Testing Institutions
Hi guys, looking for quality education for manual testing (QA), but I don't want to learn in groups of more than 20 to 30 people. Is there some online school where there are not more than 15-20 people in a group and a lot of practice? Can you share your experience with me pls? Thanks!!
-
cpptest failing on command line but working with Eclipse
Using the Parasoft plugin for Eclipse, I am able to run Parasoft test configurations successfully. Trying to run the same test configuration using cpptestcli results in a error message and a stack trace in the error log. The Parasoft version is C++test Professional 2020.2.0 (10.5.0.20201022B1126). The error output is…
-
C/C++ Test Desktop: Set the ruleset inside project.properties
I'm using C/C++ Test Professional 2022.1 (Eclipse). Is there a possibility to set the ruleset inside the project.properties and execute the tests from the GUI without having to select a ruleset every time? We want to make sure that the same ruleset is always used.
-
Test unitaire en c
Bonjour s’il vous plaît je suis débutante en c et j’aimerais apprendre à ecrire des programmes test
-
ExecutedTestsDetails is empty in report.xml after upgrading
We were using the Parasoft version 10.4.3 and then we upgraded to 2020.2.0 version. After upgrading the report doesn't display anything related to the Executed test Result, When i check the report.xml the ExecutedTestsDetails tag is empty but it is working good in 10.4.3. Other than Test execution details all the other…
-
Anyone used MCUXpresso and Parasoft?
My target platform is an NXP 1064, MCUXpressso is an Eclipse based IDE from NXP. It takes the Parasoft Plugin.
-
Data Collection Window
Is there any way to increase the size of the Data Collector Diagnostics window?
-
cpptestcli -input cpptest.bdf : Bypass desktop open
Hello, I created bdf from Makefile and ran cpptestcli. I'm running this from an ssh console connected to a virtual Centos 7.2 host. All I need is a report. But for some reason, cpptestcli is trying to open a display and fails. Can you please advise ? Thank you, Zvika
-
How can we generate a .properties file in desired location?
Using: Eclipse with parasoft plugin. I am using Data source as input for my test suite (test cases), while adding data source to test suite level a .properties file gets generated. Issue I am facing is: to generated Test Suite I am using a external folder which was initially not inside the project scope, I have added the…
-
Why trying to build runtime library in uVision (Keil) IDE fails?
Hi, I am trying to build the runtime library project provided by Parasoft for Vision Keil IDE. I chose a different MCU than the original one set in the project. I chose cypress CYBLE-224110-00. When I try to compile there are compilation errors that result from missing definitions for UART2 etc which I will fix. But the…
-
Test execution: error preparing instrumentation / symbols data for file upon including glib header
**Test execution: error preparing instrumentation / symbols data for file. "/usr/include/glib-2.0/glib/gspawn.h", line 76: error: expected a "}" G_SPAWN_ERROR_2BIG __attribute__((__deprecated__("Use '" "G_SPAWN_ERROR_TOO_BIG" "' instead"))) = G_SPAWN_ERROR_TOO_BIG, ^* Test execution of my code fails in parasoft tool…
-
"No Projects Found" when trying to import IAR project to parasoft C/C++test
Hi, I am trying to import an IAR project into parasoft according to the instructions written here: https://docs.parasoft.com/display/CPPDESKE1033/Importing+Projects+with+IAR+Embedded+Workbench+Support I enter the path and click refresh and no project is found. I even tried selecting in the path the actual project files…
-
Write to output file from XML transformer into different worksheets under same workbook in EXCEL?
Example: "12345" is the answer from a XML transformer of a field called "ABC". Now I want this ABC field to be written into CSV file using "write tool" feature. Its writing , but instead of saving it as different csv files , every time I run it has to either go to next row in the same excel [ basically appending] or write…
-
How to switch between licenses that are on a DTP server?
Hi, I have Parasoft C/C++ test Professional version 2021.1.0 (10.5.1.20210505B1390) I also have DTP server installed on a local network server. On the DTP server we have two client licenses each with access to different features. Basically, the first license is for unit tests and the second license is for static analysis.…
-
C/C++ Test Case Report Macros
Hi, I'm trying to include some logging into test cases using the CPPTEST_REPORT_* macros and I can't seem to find a way to view those log messages. When I generate a report, I can see messages included in a failure message with CPPTEST_FAIL("my failure") but nothing regarding from the CPPTEST_REPORT_* logs. Ideally, I'd…
-
Extension tool for supporting Parasoft C/C++ test
Hi, Our company is focusing on analyzing software requirements due to Parasoft features. We would like to use Parasoft to do static code analysis for C, C++ and also assembler code. There is one requirement that we have to check if all assembler code is documented in the code but it seems that this check is not included in…
-
How to solve the "Invalid compiler config file error" in "Flow Analysis Standard" test
Hi I am using Flow Analysis Standard in parasoft 10. My c project has been compiled in keil without any error and I imported it to parasoft using uvision keil project file. Then I run the Flow Analysis Standard but it issued this error "Invalid compiler config file" for all source files. Two tipical error messages are as…
-
How do I configure cpptestcli to control what is included ?
I have problems with following error message: Test execution: error preparing instrumentation / symbols data for file. In file included from C:\BuildRoot\IO\FCI\CI846\MainTrack\Dev\Current\MCU\Workspace_UnitTests.cpptest\FCI_PROFINET\file-data\CCRC32.cppc160100f\bundled_CCRC32.cpp:4:…
-
metrics report with raw values for each C-function
At the end of my Parasoft C/C++test Report, there is a Metrics Summary section. It is an array with a line for each metric and 4 columns for statistic values (like average and Min & Max). I would like to get rid off such statistics. How could I please get the raw computed value for each item of my project/workspace? For…
-
Handling IN OUT parameters in DB Tool Stored Procedure calls
I have a Oracle DB Stored Procedure with the following signature SCHEMA.PACKAGE.PROCEDURE(IN VARCHAR, IN VARCHAR, IN VARCHAR, IN OUT VARCHAR, OUT VARCHAR, OUT VARCHAR, OUT VARCHAR, OUT VARCHAR, OUT INTEGER, OUT VARCHAR). As you can see, there is one parameter that is both an input AND output parameter. I have tried…
-
com.parasoft.xtest.test.product could not be found
I run soatestcli on windows and it bumps into this message and shuts down !ENTRY org.eclipse.equinox.app 0 0 2020-07-13 11:07:12.701 !MESSAGE Product com.parasoft.xtest.test.product could not be found. any suggestions ?
-
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???
-
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?
-
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.
-
Define Multiple Stub Callback Functions in a Single File?
Hello, I'm trying to use stubs with Dynamics Stubs Configuration enabled. All the stubs are created using "Create User Stub" option, and each are in Cpptest_Stub_(functionName).cpp files. The user manual stated that I should put Stub Callback functions in test suite files and define the stub logic there. However, instead…
-
Parasoft creation of .bdf file using bitbake.
I'm looking to setup c/c++ test to do static analysis, but my build uses bitbake to compile instead of a straight-up make command. Is there any trick to get this to create the .bdf with cpptestscan or cpptesttrace, or is there some way I can perform some level of static analysis without doing the build?
-
Possible division by zero - fails to detect
Hello. I am running a static analysis checks with Parasoft C/C++ test. And I encountered the following issue: passing a zero parameter to a function which afterwards uses it to divide is not always detected/reported. For example: void some_function() { test_function(0); } void test_function(int parameter) { int var = 5 /…
-
Cannot find function
When creating a test case for a function (without processing), the C++ test tool cannot find the target of the corresponding function in the Drop-down menu.
-
Creating data.json for java project
Hi, I worked your example project demo which was java project. It included "demo.data.json" file. I did static analysis with using this "demo.data.json" file. I am trying to analyse my java project with Jtest static analysis and I need myproject data.json file. I don't know How can create "myproject.data.json" file. Could…