-
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
-
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…
-
Moved: multiline parasoft tags to suppress violations
This discussion has been moved.
-
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…
-
how to use datasource correlation virtualize
I have got a soap request with element id value of AAA1xxxxxxxxx. I only need to match the first four characters to correlate with the datasource (excel sheet). I don't see it's possible doing that data Correlation request Body ( as this take the xpath element) and Datasource Column Name only. Is there a way around this.
-
I have a requirement to send sync and async response for a single request in Virtualize
I have a requirement to send sync and async response for a single request in Virtualize. Please suggest me the way. The requirement is to send the sync reponse first then it will the the async one.
-
How to retrieve the newly inserted (using DB tool) data in bookstore using getItemByID operation
I inserted the data in to book store using DB Tool and I tried retrieving the data using getItemById operation which is present in bookstore wsdl. Though data is present in BOOK table i am receiving no book with the id 10 was found How do I retrieve the newly added data in BOOK table using webservice ? Do i have to…
-
Quick guide to setup C/C++test Professional (Static Analysis) on Jenkins
This guide will Comprise of 3 Major Parts: 1 - Initial Project Setup 2 - Running from a command line in Jenkins 3 - Setting up the license on the CI/CD (Jenkins) Machine Part 1 : Initial Project Setup Step 1.1 Creating your Build Data file (.bdf) This is the command I used to create the .bdf :…
-
slimboot bios code coverage
I am attempting to use parasoft code coverage for slimboot bios https://github.com/slimbootloader/slimbootloader it appears that code code coverage requires a test app to run on the target which makes use of a runtime library. Since slimboot is a bios. I do not know how to make that work. The slimboot build process…
-
Constant SoaTest Crashes
Lately, I have been experiencing more than usual crashes from parasoft. Now it appears to happen when I execute a test suite, and after 6 or 7 steps of the 50 or so complete Parasoft SOAtest & Virtualize: Version 2020.1.0 (9.10.9.20200430) -- Copyright (C) 2020 Parasoft Corporation## A fatal error has been detected by the…
-
Explicit Initialization rules are conflicting with Entity Framework
When trying to do code analysis on web services build using EF Core, I am constantly getting this violation For this code: This violation occurs because the DbSet object is build by the DBContext, which does not use explicit initialization This error is occurring every time I'm accessing a database, which is leading to…
-
Kerberos Authentication
I try to setup Kerberos Authentication but hit to the error below. The file krb5cc_ is available in the system, but not sure why SOATest cannot find it. Any idea on how to resolve it?
-
chasepaymentech CC encryption
I'm trying to dynamically encrypt credit card info before passing it t to our API's (simulating the process in the UI, using dynamically-generated PIE settings for the payment with our client chasepaymentech specific .js (https://safetechpageencryptionvar.chasepaymentech.com/pie/v1/~removed~/getkey.js). The sample results…
-
How to get array item count and then increased total count by +1
I've a scenario to add item into array using POST call. Now I've to validate whether the item is added into array list or not, so will check array size increased by +1 or not. I will use GET call to get count of array before and after POST call. Any solution? Here JSON Data Bank may not work, even if get a total count, but…
-
Unmarshalling error with virtual responder
Hello, I have a responder set up to simulate a service our web application depends on. However, when we use the responder in our application workflow we are receiving the following error: org.springframework.oxm.UnmarshallinFailureException: JAXB unmarshalling exception; nested exception is…
-
Getting IOConsole updater error when executing test more time by pounting to virtual server
Hi Team, I face one critical issue while executing the test repeatedly (300 to 500 transactions). The Parasoft server gets slow and some IOconsole updater errors occurred. when I reboot the server then again it's started working. but the same issue again when executed more runs. Refer to the below screenshots for the…