-
Disable rule for specific library function
Throughout our code we do not check the return code on memcpy and memset. This is causing rule violations to be reported. We can prevent the warning by adding "(void)" before each function or by adding a parasoft comment before each call but this is not an ideal solution. What we would like to do is disable the rule for…
-
Autogenerated stubs not getting included in build
I have a file with several undefined reference errors (the function definitions of these functions are within another file which is not part of my current module). To resolve these I generated auto stubs and rebuilt my project again. But the undefined reference errors are not going away. How do I resolve this? Thank you
-
Code to save Traffic's Element View Response in file.
Hi Guys, I'm looking for a code which let me save rest service Element View response in some txt file.
-
How to remove "Read-only"
My colleagues sometimes send me Excel files, that are available only for reading. What should I do to become able to edit it?
-
same payload to run multiple time
Is there a way to run the same payload multiple times?
-
Data Source - Validate Contents
Is there some way to validate the contents of the data source when the virtual asset is deployed? I have a situation where data source correlation is failing and based on several tests I have set up it seems like the data sources are not getting populated. The issue just started happening on a virtual asset that has been…
-
Managing DTP Projects and Filters
What is best practice for creating and managing projects and filters in DTP? Should a project in DTP represent a development project, a product, or a version of a product? What if a project includes multiple products? Or what if a product has multiple releases across multiple projects? Lets say I have the following…
-
Parasoft Findings plugin and DTP
About DTP DTP is a Centralized Reporting Dashboard that can display back the results received from the Parasoft tools and provide advance analytics to verify quality in your application. It provides Widgets to be placed on a personalized dashboard that show a piece of the applications quality to help the user see what…
-
License: Activation failed: Encryption failed.
We don't have any issue to access the TDP license server until recently and we can not connect to the license server as below. It would be nice to have more detail information about "License: Activation failed: Encryption failed." and are there any settings I can take a look at to fix this "Encryption failed"? ./cpptestcli…
-
load test
I got a soatest payload. I was wondering if you can run 10tps using the same payload again and again. I am not familiar how to use the load test. Can you point me at the right direction. How I can start to do this.
-
Announcing Parasoft Selenic 2021.1
The latest release of Parasoft Selenic (2021.1) is now available. In this release, we focused on the following areas: * Ability to integrate Selenic with tests run using the Cucumber CLI runner * Ability to integrate Selenic with tests run in parallel using JUnit, TestNG, or Cucumber * Support for new IDE versions o…
-
URL Rewrite
Is there an easy way to rewrite the URL of a request using one of the available tools? I have a situation where I'd like to drop the first segment of the /context. For example: original path: /foo/bar/operation Tool rewrites the path to: /bar/operation Thanks, JT
-
Increase integer range in SOATest
While performing JSON Schema Validation in the SOATest tool through "JSON Validator" feature, I am encountering the following error: com.fasterxml.jackson.databind.node.jsonNodefactory.numberNode(Ljava/math/BigInteger;)Lcom/fasterxml/jackson/databind/node/NumericNode; In the root cause analysis, I found that in the JSON…
-
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…
-
Comparing values
I have a set of values from one rest call. I need to verify if they exist in another rest call. First call may have 5 values and second call may have 15. What is the best way to validate if the first value(s) is contained in second? Sample Data: below data returned as a JSON array. First Call Second Call 100 345 200 77 300…
-
CTP : How to configure JAVA class file in CTP
I have a Virtual Asset which has a extensiontool chained using Java Language to send response back to client. I also have the java project inside the same SOAtest project. I added the classPath to the system properties and class loader , it works fine. But when i deployed the asset to SOAVirtualizeServer , I could not find…
-
Update bdf file for imported project via command line
Hi, I have parasoft professional version. I have imported a project using a bdf file. However, I have changed the project and would like to update the bdf file for the imported project. I can update the bdf file easily. But how do I update the already imported project? If I type: cpptestcli -bdf "cpptestscan.bdf" -data…
-
cpptestcli doesn't function properly
I recently received a license for parasoft and I set everything up on my machine. I even ran a flow analysis on my code with the desktop app together with the local parasoft rep. I am now trying to run parasoft using the command line using cpptestcli. I set things up as written here:…
-
virtualize ISO message
Is there a way that virtualize support ISO message request/response
-
Comparing many fields between API and UI
Data in a distributed system can be transformed and presented in a variety of ways. For example, an API might return data with different cases, leading/trailing whitespace, etc. Also, a UI may present data in an HTML table with additional characters (e.g. nbsp;). Furthermore, if you are trying to validate hundreds of such…
-
Missing symbol definition
I have created project using .bdf file for KEIL project. I am able to generate Unit tests successfully. I am facing issue for "Build and Run test executable using uVesion Simulator". It gives me error for not able to find variable from startup file even though startup file is included in project folder. Is there specific…
-
Looping through DS uses last occurrence of variable in subsequent runs
When looping through a datasource, such as per user login, and utilizing the same variable in multiple steps, the last variable assignment from the first run is used in all subsequent runs. In the attached, i am simulating the looping through a user list (datasource), which I assigned as a header for ease of tracking.…
-
How to test a persistence counter
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…
-
how to generate Loadtest logs for Support
If there is unexplained behavior in Loadtest, we can generate a debug log before contacting Support to reduce emails going back and forth and thus the total time taken resolve the problem. To generate a debug log for Loadtest, please launch Loadtest with the following argument on command line. [SOAtest installation…
-
Continuous Integration for Virtual Services
Dear All- I'm looking for best practices/suggestions on implementing Continuous Integration from source control to the Virtualize server. I m aware we have a support for SOATest integration with Jenkins. Pl. advise for virtualization project with pva files and data sources. Thanks !
-
Passing Environment variable from Jenkins to CTP job
Currently, we setup individual CTP jobs for various environments, but I was wondering if it would be possible to setup a single job in CTP, and then pass the env Variable Set based on the jenkins job (script or cmd line) rather an defining individual builds within CTP?
-
capture the incoming header fields
Is there a way to capture the incoming header data fields and store them in XML data bank. I would use them in the response.
-
virtualize extension tool scripting and storing to json databank and use it on response
I have created an extension tool to generate a few variables and store them in JSON databank. When it responded back the values are not set. Is there something else I am missing.
-
dDuplicate definitions errors
Getting Error[Li006]: duplicate definitions for APIs in .o file. Help me out to resolve this.
-
Deferred initialization of Runtime Library
In some cases where runtime library during initialization needs to have some software/hardware components to be up and running and initialized prior to initialization. e.g.: RTOS. By default: When collecting application level coverage, runtime library is being initialized as early as fist instrumented line of code is being…
-
Create XML File With Variable Information
I have a SOATest test suite with a test will drop an XML message on a message queue. The processing of this message is what the test suite will be testing. The issue is that I need to replace one of the elements in the XML message with a value that is generated at run time earlier in the test suite. That value is stored in…
-
Running Application Monitoring on QT apps
Managed to build the Application however now i am stuck at this when i tried to run application monitoring on it Any ideas on how to solve this?
-
Creating Responder Suites via REST API
I am trying to create a nesting of Response Suites using the REST API. I can successfully create the first suite using the http://10.143.146.19:10000/soavirt/api/v6/suites/responderSuites call. However when I try a subsequent call to create a suite within the newly created suite it fails. It does not seem to recognize the…
-
Scope not speciefied
INFO: Scope not specified: No resources specified as scope, using all workspace projects as selected scope. Hi everyone, I am running unittest and for the scope I have given "-data ${CPPTEST_WORKSPACE}" but I got that error. I have tried also with "-resource ${CPPTEST_WORKSPACE}" but it didnt help. Does anybody know why…
-
How to Properly Extract Values from Incoming Request Header
I have a case where I would need to extract a couple values from the incoming request and parameterize it in the response. I am not entirely clear on how to do this in Virtualize, as the docs page regarding the Header Data Bank Tool offers more information regarding its usage in SOAtest and not in Virtualize. What is the…
-
New User, errors running C/C++ Static Analysis for my chosen coding standard
Hi, When I build my project from within Eclipse, it finishes with: 07:39:00 Build Finished. 0 errors, 0 warnings. (took 14s.306ms) However, when I try to "Test using coding standard", I get the following error repeated for ~50 .c files in my project. Reporting Parasoft C/C++ Metrics Analyzer results... The following setup…
-
XML response not visible in traffic viewer but saved as write file
Hi Team, While testing my service I can see the XML response which I saved using write file , but in Traffic viewer it comes as blank. When I manually beautify in traffic response then the response gets loaded. Because of this, in report as well the test case details are not coming up. Only no. of test cases passed and…
-
instance of xxx.pva
I was wondering if there's a way to have two ports running on the same instance of pva file. If not what's the best approach in creating two separate ports one pointing to dev and other one is pointing to sit
-
Moved: multiline parasoft tags to suppress violations
This discussion has been moved.
-
multiline parasoft tags to suppress violations
Hello, I'm working under open-source C project, that is not using // style comments/ In some cases, description in the tag is very long, and can't be placed into one line. I want to know will Parasoft Static analysis tools will detect multiline tags like: /* parasoft suppress item MISRAC2012-RULE_20_4-a * "Trick compiler…
-
using plain XML responder without pretty print when sending the response
I notice this while using the plain XML Response on the response. The XML message is pretty printed ( broken down to element line by line). Is there a way to have them in one line removing spaces or carriage return below sending the message out?
-
using plain XML Message responder
This is odd, may be just my configuration. I have literally copied the response and past to input mode literal Then I change it to the following input mode below. When the input mode is form input. The data source works fine as well as the generating script works based on the data source. However, the issue I encounter…
-
virtualize reponse scripted XML
I never had created a scripted XML using groovy or jython for the whole response. I am wondering if you can share some script for the below output. John Doe parasoft
-
virtualize response
I copied a response message and the message does not come with the tag soap envelope and soap body. I literally change this to form input so I have the flexibility of add and removing elements. When I send the response to the system. The system would not understand the soap envelop and soap body where the response messages…
-
virtualize delay response
I store a value on data source for timer delay value. How do I use this value (10000) before sending the message response?
-
"No tests were executed" msg in Jobs while running the Job in CTP
Hi Team, I am trying to run a job where I have saved my tst file in Test scenario and executing the job from the system in CTP. I am getting msg as "No tests were executed". Although i have uploaded the tst file the same way like others it is not working. If I execute the tst from Test Scenarios, I am seeing the tests are…
-
request and response log traffic viewer
I have started my virtualize server and was able to send requests and mock the response coming back. I have enabled the traffic object ->traffic viewer, under the responder to catch the request and response to troubleshoot some issues. However, I could not see the mock request and mock response on the traffic object. Is…
-
Unable to open .tst file in the explorer
I am getting the below error when i tried to open the .tst file. Soatest is unable to read the fil *** due to the following error. java.io.IOException: com.ctc.wstx.exec.WstxlOException: Unexpected end of ZLIB input stream
-
Error Refreshing CTP
Good morning, When I attempt to refresh CTP I am receiving the error "An error has occurred handling the request in SOAtest." with no additional details. When I check the catalina log file on the CTP server, I am seeing this error repeating. 08-Jun-2021 09:51:14.752 INFO [http-nio-8080-exec-327]…
-
how to enable/disable an optional element on virtualize response
I would like to use only one responder for mocking response. In the response, there are two fields that are optional elements. In case, the datasource values are blank. I don't want them to be send out as part of the response. However, if there are value in my datasource. I would like them to be send out. This works on…