-
Error in executing Java code with method arguments Object input & ExtensionToolContext context
I have a scenario where the xml file stored in local should be passed in one of the element of the SOAP Request in string format. Steps followed to achieve this task: 1. Added SOAP Request 2. Selected correct Data Source in SOAP Request 3. Written a Java code to read file from local & pass it in request tag 4. Xml file…
-
Announcing Parasoft dotTEST 2021.2
The new release of Parasoft dotTEST (2021.2) is now available. In this release, we focused on the following areas: * Integration with Azure DevOps and GitLab * Enhanced extension for Visual Studio Code the with the ability to import results from Azure DevOps * New and updated test configurations for CWE and OWASP Top 10 *…
-
Excluding resources from Unit Testing
Some users may not want certain resources or files included in the testing scope for their unit tests. These resources can be excluded to ensure that no extraneous data is present in the tests. To indicate which project resources should not be tested during Unit Test Execution follow the steps below for your Development…
-
Announcing Parasoft Jtest 2021.2
The latest release of Parasoft Jtest (2021.2) is now available. In this release, we focused on the following areas: * Integration with Azure DevOps and GitLab * Enhanced Unit Test Assistant * UTA now creates multiple test cases per method that cover different code branches in the method under test. You can create test…
-
How to access RestTest Header Values from Traffic view Objects
Hi, I am new to this forum and I really need help. I have 100 + rest test cases in my suite and I need to retrieve header value from Traffic Viewer Objects for Each Test Cases. Would you please give me a code for this?
-
CLI Fails to import project
I've got almost everything working - gui operation, licensing, bdf generation, but I'm failing at cpptestcli. cpptestcli" -data "/myWorkspace/" -config "myConfig.properties" -localsettings parasoft_CLI/parasoft_localsettings -appconsole stdout -showdetails -import "/myWorkspace/myProject/myDKM" -resource "MyDKM" -bdf…
-
Assertions Strategy using XSLT and diff tool
I am throwing this out here for the community on how they do assertions. I am not talking about validation 5 fields or so. What i do for assertions most of the time is using the diff tool. Lets say I have a service response to validate to a database. Native functionality of DB tool is to return in XML format. If the…
-
Original function not called despite not registering for stub callback in test case
I had created a stub to test function B. The original function of the stub was used to test function A in the past. Now with this newly created stub, the test case made for function A has broken due to the original function no longer being called, despite not registering for the stub callback. Can someone explain why it is…
-
Unable to get the specific columns from collection using mongodb query tool
Unable to get the specific columns from collection using mongodb query tool. In query field to fetch specific elements i have used {"date":true,"name":false} but not getting any data for "date" column.Can anyone help me to resolve this issue
-
Env Mgr - Changing Database Connection - MySQL Driver Issue
I want to change the database settings in the Environment Manager so that the event data coming from Virtualize is written to a MySQL database. I have done this in the past and it worked fine, however we are using newer MySQL drivers now and the CTP is giving me an error. I have placed mysql-connector-java-8.0.11.jar in…
-
Keil uVision Unit Testing ITM Simulator Starter Guide
In this tutorial, we'll be going over how to get C++test to run Unit Tests on Keil uVision projects. * In this example, I will be using the following: * Keil uVision MDK-ARM 5.26 * C++test 10.4.2 * Windows 7 64-bit * If you are familiar on how to import your Keil project and/or create a bdf file for Keil skip to step 7. *…
-
HyperSQL Connection from a Remote SQL Client
Is it possible to connect to and query the CTP HyperSQL database using a remote SQL client? If so, what connect string would be used? Thanks, JT
-
Writable Datasource Max length on column
I am pulling in a complex sql query that is over 800 characters long. I noticed it gets truncated when storing in a writable datasource. Is there any way to set max length on column? thx
-
Check if JSON Array is sorted by 2 elements
Using SOAtest 2020.2 Need to test if the a JSON Array is sorted. Assuming JSON array is like: [ {"id": 1, "folder": "fb\f2", "name": "n1"}, {"id": 2, "folder": "fa\f2", "name": "n2"}, {"id": 3, "folder": "fc\f2", "name": "n3"}, {"id": 4, "folder": "fb\f2", "name": "n4"} ] the sort should use only folder + \ + name So the…
-
Announcing the 2021.2 release of Parasoft SOAtest, Virtualize and Continuous Testing Platform
The latest release of the Parasoft Continuous Quality Suite of API testing tools is now available with updated versions of Parasoft SOAtest, Virtualize, and CTP. In this release, we focused on four primary areas. 1. Requirements view added in SOAtest to correlate tests with traceability workflows. 2. Increased accuracy…
-
Announcing the 2021.2 release of Parasoft SOAtest, Virtualize and Continuous Testing Platform
The latest release of the Parasoft Continuous Quality Suite of API testing tools is now available with updated versions of Parasoft SOAtest, Virtualize, and CTP. In this release, we focused on four primary areas. 1. Requirements view added in SOAtest to correlate tests with traceability workflows. 2. Increased accuracy…
-
Announcing the 2021.2 release of Parasoft SOAtest, Virtualize and Continuous Testing Platform
The latest release of the Parasoft Continuous Quality Suite of API testing tools is now available with updated versions of Parasoft SOAtest, Virtualize, and CTP. In this release, we focused on four primary areas. 1. Requirements view added in SOAtest to correlate tests with traceability workflows. 2. Increased accuracy…
-
Announcing the 2021.2 release of Parasoft SOAtest, Virtualize and Continuous Testing Platform
The latest release of Parasoft’s Continuous Quality testing tools is available with updated versions of SOAtest, Virtualize, and CTP. In this release we focused on API security testing; ease of use and improved user experience; and enhanced reporting. Here are just a few of the highlights: • Built-in SOAtest support for…
-
Regex support in Jenkins CTP Job execution setup
I was wondering if it was possible to use regex expressions in the Jenkins setup for CTP job execution, as listed in the fourth option, to loop through and run all ctp jobs that may match (the first three job execution setups)
-
forum SOAtest Scripting Examples forum
Looking in the Extension Tool mentions the forum, however unable to find it. What is the location?
-
Test execution:error reading test log for Test unit for selected sources error while mocking fopen
I'm new to parasoft tool. while writing unit test execution for cpp test I'm facing ****-Test execution:error reading test log for Test unit for selected sources error**** if I'm mocking fopen function in my test suite. Could anyone let me know is there a way to use fopen for writing unittest case for 100% coverage
-
Chrome infobar blocking playback, can we close it automatically?
Hi, We're using SOAtest 9.10.8 for a while now, combined with Chrome for web testing (v90 currently). Lately (probably since chrome v84+) we encounter problems during browser playback, on some systems... This is caused by the Chrome infobar, displaying something like: "Chrome is being controlled by automated test…
-
DB tool returning as blank where the SQL query in oracle returning null
Hi , We have connected to DB tool in Parasoft test to connect to oracle. When we run the query in DB visualizer connecting to oracle for one of the column its returned as null however when we run in DB tool its returning as blank. Is there any setting in DB tool tool return the column value same as returning in Oracle.…
-
How to use PARASOFT_CPPTEST macro in C/C++test Standard
By default the -DPARASOFT_CPPTEST is added in the project settings in Professional. But where is it defined in Standard Edition where there is no concept of eclipse project files? Here is the answer (thank you @Bogdan Czwartkowski for getting that info)! * Create a file called extras.psrc (name is arbitrary) * add the…
-
Using Parasoft with Lab windows CVI project
Hello, I am trying to configure Parasoft to work on a CVI prj project. I firstly create a .bdf file from my CVI project, then i imported it in Parasoft and tried to configure it. But when i trigger the Test; , i have the errors - Cannot launch process: clang.exe -cc1 "- and Access is denied ... And i can n ot figure where…
-
RabbitMQ Messaging Client Test failing in Bamboo pipeline
Hello I've a Messaging Client test to validate RabbitMQ messaging queue and it's details, which is working perfectly working as expected locally in SOATest (v10.5.1). I've checked-in the required .jar files (producer, listener and amqpclient) at project level path in to repo and added the references in…
-
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…